Delete an X Ads campaign, ad group or custom audience
x_ads_removePermanently delete an X Ads campaign (with its ad groups), one ad group, or a custom audience (give audience instead of campaign; ad groups using it lose it). Requires the user's explicit yes: call first without confirm to preview, then with confirm=true and confirm_name equal to the exact name. Its history stays in reports.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "x_ads_remove"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Client folder name. | |
| account | No | X Ads account name or ID. Optional when only one is enabled. | |
| confirm | No | ||
| ad_group | No | Optional ad group name or ID; omit to delete the whole campaign. | |
| audience | No | Custom audience name or ID (x_ads_audiences) to delete instead of a campaign. | |
| campaign | No | Campaign name or ID. | |
| language | No | Language of the card: the language the user is writing in. | |
| confirm_name | No |