Approve (and activate) a campaign
ads_campaign_approve[writes · ads:manage scope] Approves a proposed ad campaign. With activate: true it also switches it on (needs ads:spend too), through the normal activation checks, when its daily budget is within the owner's agent activation ceiling. Inside the owner's agent ceiling it is applied at once; above it the result is approval_requested: tell the user the owner has an approval request in Ads > Agent activity, and repeat the same call once they approve. Pass agentName and reason; both are shown to the owner. Confirm with the user before activating.
(Wraps POST /api/v2/ads/campaigns/{id}/approve.)
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": {
"id": "<id>",
"agentName": "<agentName>",
"reason": "<reason>"
},
"name": "ads_campaign_approve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| reason | Yes | Why the agent is doing this. Shown to the owner and kept in the audit trail. | |
| brandId | No | A brand id (GET /api/v2/brands) or "personal"; default: the key owner's active brand. | |
| activate | No | Also switch it on. Needs ads:spend as well. | |
| agentName | Yes | Which agent is acting. Shown to the owner in Ads > Agent activity. | |
| idempotencyKey | No | Optional; repeats with the same key do not re-run the activation. |