Delete a Meta ad set
ads_delete_ad_groupDelete one Meta ad set from ads_get_tree, with its ads. Irreversible, and stops its delivery at once; the campaign stays. Confirm the ad set 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": {
"adGroupId": "<adGroupId>",
"adAccountId": "<adAccountId>"
},
"name": "ads_delete_ad_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform | No | meta_ads, tiktok_ads or linkedin_ads. Needed only when the profile has more than one ad network and no accountId is given. | |
| accountId | No | The Facebook accountId from list_accounts. Without it, pass profileId to use that profile's Facebook connection. | |
| adGroupId | Yes | An ad set id from ads_get_tree. | |
| profileId | No | A profileId from list_profiles. Optional when accountId is given, which names its profile; if both are given they must agree. | |
| adAccountId | Yes |