Set campaign budget
set_budgetSets a campaign budget in the ad account currency and returns a confirmation plan before increases or lifetime-to-daily changes, so spending changes are reviewed before applying.
Instructions
Set a campaign budget in the ad account currency. Lowering it (same type) applies at once. RAISING it, or switching lifetime to daily, can spend more: without confirm it returns a plan (old and new amount, currency, campaign status); show it to the user, get an explicit yes, then call again with confirm: true and the plan_id. A lifetime budget cannot go below what was already spent, and a daily budget cannot switch back to lifetime.
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_id": "<campaign_id>",
"amount": "<amount>"
},
"name": "set_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | New budget, in major units of the ad account currency, e.g. "50" or "12.50" | |
| confirm | No | ||
| plan_id | No | ||
| budget_type | No | Default: keep the current type | |
| campaign_id | Yes | Campaign id |