Pause or turn on X Ads campaigns and ad groups
x_ads_set_statusPause (runs immediately) or turn on an X Ads campaign or ad group. Turning on spends money: the first call returns a preview and changes nothing; call again with confirm=true only after the user explicitly agrees.
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": {
"campaign": "<campaign>",
"status": "<status>"
},
"name": "x_ads_set_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Client folder name. | |
| status | Yes | ||
| account | No | X Ads account name or ID. Optional when only one is enabled. | |
| confirm | No | ||
| ad_group | No | Optional ad group (line item) name or ID inside the campaign; omit to change the campaign itself. | |
| campaign | Yes | Campaign name or ID. | |
| language | No | Language of the card: the language the user is writing in. |