create_rf_prediction
Generate a reach and frequency prediction for a Meta ad campaign by providing targeting JSON, budget in cents, and scheduling details.
Instructions
Create a new reach & frequency prediction. Provide targeting spec as JSON string, budget in cents, and scheduling info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budget | Yes | Budget in account currency cents | |
| stop_time | Yes | Prediction stop time (ISO 8601 or Unix timestamp) | |
| account_id | No | Ad account ID to create the prediction in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. | |
| start_time | Yes | Prediction start time (ISO 8601 or Unix timestamp) | |
| target_spec | Yes | JSON string of targeting specification | |
| frequency_cap | Yes | Maximum frequency cap per user | |
| destination_id | Yes | Destination ID (e.g. Facebook Page ID) |