Delete a campaign
ads_delete_campaignDelete a campaign from ads_get_tree, with all its ad sets and ads. Irreversible, and stops any delivery at once. Confirm the campaign by name with the user first.
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": {
"campaignId": "<campaignId>",
"adAccountId": "<adAccountId>"
},
"name": "ads_delete_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| campaignId | Yes | A campaign id from ads_get_tree. | |
| adAccountId | Yes |