Update campaign
x_ads_update_campaignUpdate an X ads campaign by changing its name or budget micros. Requires confirmation when altering spend; daily budget must not exceed total.
Instructions
Partial update of name and/or budget micros. Only change fields the user named. Daily must be ≤ total. Money-affecting: pass confirm=true.
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": {
"account_id": "<account_id>",
"campaign_id": "<campaign_id>"
},
"name": "x_ads_update_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| confirm | No | ||
| account_id | Yes | Ads API account id from x_ads_list_accounts, e.g. 18ce55v2od2 | |
| campaign_id | Yes | ||
| daily_budget_amount_local_micro | No | ||
| total_budget_amount_local_micro | No |