Create a campaign from a Page post
ads_create_campaignTurn an existing Page post into a new campaign, ad set and ad, created PAUSED, and return a preview. Nothing spends until ads_set_status sets it ACTIVE. Reuse the same idempotencyKey when retrying: a repeated key returns the first result instead of creating a second campaign. dailyBudget is in whole currency units.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | Yes | ||
| accountId | No | The Facebook accountId from list_accounts. Defaults to the profile's Facebook connection. | |
| profileId | No | Defaults to the profile your API key is bound to. | |
| startDate | Yes | ||
| pagePostId | Yes | ||
| adAccountId | Yes | ||
| dailyBudget | Yes | ||
| campaignName | Yes | ||
| idempotencyKey | Yes | A unique value per intended campaign, such as a UUID. Sent as the Idempotency-Key header. |