Create a campaign from a Page post
ads_create_campaignTurn an existing Page post into a new engagement campaign, ad set and ad targeting the US, created PAUSED, and return a preview. For any other objective, targeting, a new image, video or carousel ad, or an Instagram post, use ads_create_meta_campaign. 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"adAccountId": "<adAccountId>",
"pagePostId": "<pagePostId>",
"dailyBudget": "<dailyBudget>",
"startDate": "<startDate>",
"endDate": "<endDate>",
"campaignName": "<campaignName>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "ads_create_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | Yes | ||
| accountId | No | The Facebook accountId from list_accounts. Without it, pass profileId to use that profile's Facebook connection. | |
| profileId | No | A profileId from list_profiles. Optional when accountId is given, which names its profile; if both are given they must agree. | |
| 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. |