remove_extension
Remove an ad extension from a campaign by first disassociating it, then deleting it from the library; handles partial failures for safe retries.
Instructions
Draft removal: disassociate from campaign, then delete from library.
Live-verified 2026-07-30.
If the disassociation itself (step 1) comes back with a batch error, nothing landed — the apply aborts and the delete is never attempted (aborted=... in the result), nothing to reconcile.
On a mid-apply failure (delete raises after disassociation landed) the error carries what landed (disassociated=True, deleted=False) — reconcile account state before retrying (a retry re-runs ALL steps, including re-disassociating).
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": {
"extension_id": "<extension_id>",
"campaign_id": "<campaign_id>"
},
"name": "remove_extension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaign_id | Yes | ||
| extension_id | Yes |