delete_microsoft_ads_object
Delete a Microsoft Advertising campaign / ad group / ad / keyword destructive
Description
PERMANENTLY delete a Microsoft Advertising campaign, ad group, ad or keyword. This is a real delete — Microsoft removes the object and it stops being returned by every read, with no undelete and no documented recovery window. Pass level:"campaign" + campaignId, level:"adGroup" + adGroupId, level:"ad" + adGroupId AND adId, or level:"keyword" + adGroupId AND keywordId. CALL IT WITHOUT confirm FIRST: nothing is deleted, and you get back the object’s real name, its status and how many ad groups / ads / keywords go with it, read live from Microsoft — show the user exactly that. If the object has children, is Active, or has spent, confirming alone is NOT enough: you must also pass confirmName set to its exact name and confirmChildren set to the child count from that read-back, which is what proves you are deleting the object you think you are. A campaign that is paused, empty and never ran deletes on plain confirm:true. To stop delivery WITHOUT deleting, use set_microsoft_ads_status(status:"Paused") instead. The result is READ BACK from Microsoft: it says "deleted" only when the object no longer resolves, "not confirmed" if it does, and "could not tell" if the check itself failed — repeat that verbatim rather than claiming success.
Parameters
| Parameter | Type | Description |
|---|---|---|
adAccountId | string | Microsoft ad account id — omit to use the single shared account |
accountId | string | older name for adAccountId (MCP only) |
level | "campaign" | "adGroup" | "ad" | "keyword" | what to delete — default campaign |
campaignId | string | campaign id (level:"campaign"; also the parent for level:"adGroup" if you know it) |
adGroupId | string | ad group id (level:"adGroup"; REQUIRED as the parent for level:"ad" and level:"keyword") |
adId | string | ad id (level:"ad" — pass adGroupId too) |
keywordId | string | keyword id (level:"keyword" — pass adGroupId too) |
confirm | boolean | REQUIRED true — the delete is permanent |
confirmName | string | the object’s EXACT name, required when it has children / is Active / has spent |
confirmChildren | number | the exact number of children reported by the unconfirmed call, required when it has any |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/delete_microsoft_ads_object.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"delete_microsoft_ads_object","arguments":{}}}
CLI
hermoso call delete_microsoft_ads_object --json '{}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
set_microsoft_ads_statusActivate or pause a Microsoft Advertising campaign / ad group / adset_microsoft_ads_budgetSet a Microsoft Advertising daily budgetset_microsoft_ads_profile_targetingSet LinkedIn profile targeting on a Microsoft Advertising campaignlist_microsoft_ads_profile_targetingRead a Microsoft Advertising campaign’s LinkedIn profile targetingsearch_microsoft_ads_profilesFind Microsoft Advertising LinkedIn profile idsadd_microsoft_ads_keywordsAdd Microsoft Advertising keywordscreate_microsoft_ads_adCreate a Microsoft responsive search adcreate_microsoft_ads_ad_groupAdd a Microsoft Advertising ad groupcreate_microsoft_ads_campaignBuild a Microsoft Advertising campaign (paused)microsoft_ads_geo_searchFind Microsoft Advertising location ids