hermosodocs

delete_microsoft_ads_object

Delete a Microsoft Advertising campaign / ad group / ad / keyword destructive

Area: MICROSOFT AD INSIGHT · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
adAccountIdstringMicrosoft ad account id — omit to use the single shared account
accountIdstringolder name for adAccountId (MCP only)
level"campaign" | "adGroup" | "ad" | "keyword"what to delete — default campaign
campaignIdstringcampaign id (level:"campaign"; also the parent for level:"adGroup" if you know it)
adGroupIdstringad group id (level:"adGroup"; REQUIRED as the parent for level:"ad" and level:"keyword")
adIdstringad id (level:"ad" — pass adGroupId too)
keywordIdstringkeyword id (level:"keyword" — pass adGroupId too)
confirmbooleanREQUIRED true — the delete is permanent
confirmNamestringthe object’s EXACT name, required when it has children / is Active / has spent
confirmChildrennumberthe 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.

All 759 Ad campaign management tools · tools.json