Change an X Ads campaign budget
x_ads_update_budgetSet an X Ads campaign's daily budget and optionally its total budget. Lowering runs immediately; raising returns a preview first and runs only on a second call with confirm=true after the user 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>",
"daily_budget": "<daily_budget>"
},
"name": "x_ads_update_budget"
}
}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 | ||
| campaign | Yes | Campaign name or ID. | |
| language | No | Language of the card: the language the user is writing in. | |
| daily_budget | Yes | New daily budget in the account currency. | |
| total_budget | No | Optional new total (lifetime) budget in the account currency. |