Delete in Microsoft Advertising
msads_deleteDeletes a campaign, ad group, ad or keyword in Microsoft Advertising. Irreversible: a deleted item cannot be restored (msads_set_status Paused stops it instead). An ad group needs its campaignId; an ad or keyword its adGroupId.
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": {
"adAccountId": "<adAccountId>",
"level": "<level>",
"id": "<id>"
},
"name": "msads_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the campaign, ad group, ad or keyword. | |
| level | Yes | What is deleted. | |
| accountId | No | Fezola accountId of the connected Microsoft account (type microsoft_ads in list_accounts). Optional: the adAccountId is looked up in every connected Microsoft account. | |
| adGroupId | No | Parent ad group Id (levels ad and keyword). | |
| campaignId | No | Parent campaign Id (level ad_group). | |
| adAccountId | Yes | Microsoft Advertising ad account id (Id returned by msads_list_accounts). |