Increase or decrease ad budget
tg_ad_budgetIncrease or decrease a Telegram ad budget in account currency with confirmation and write-mode safeguards; decreasing requires the ad to be inactive for at least 10 minutes.
Instructions
Move funds into or out of an ad. amount is in the account currency and must respect its precision. Telegram only allows decreasing budget when the ad has been inactive for at least 10 minutes. Requires confirm: true and TG_ADS_MODE=write.
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": {
"ad_id": "<ad_id>",
"direction": "<direction>",
"amount": "<amount>"
},
"name": "tg_ad_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_id | Yes | ||
| amount | Yes | ||
| confirm | No | ||
| direction | Yes | ||
| account_id | No | ||
| include_targeting | No |