delete_openai_ads_object
Archive (ChatGPT Ads’ delete) a campaign / ad group / ad destructive
Description
Retire a ChatGPT Ads campaign, ad group or ad. THE OPENAI ADVERTISER API HAS NO DELETE — archiving is its only teardown, and OpenAI’s own guidance is "only archive objects you have no further use for, as archiving isn’t reversible": there is no un-archive, not even through support. So say ARCHIVED, never "deleted". Pass level:"campaign" + campaignId, level:"adGroup" + adGroupId, or level:"ad" + adId. CALL IT WITHOUT confirm FIRST — nothing is archived and you get the object’s real name, status and child count read live from OpenAI; show the user exactly that. A target with children or live delivery additionally needs confirmName (its exact name) and confirmChildren (the count from that read-back). PAUSING stops all spend and keeps the object editable — offer that first whenever the user only wants delivery to stop. Archiving a campaign is not documented to cascade, so archive the children yourself if they should stop too. The result is READ BACK: it says archived only when OpenAI reports the archived status.
Parameters
| Parameter | Type | Description |
|---|---|---|
level | "campaign" | "adGroup" | "ad" | what to archive — default campaign |
campaignId | string | campaign id to archive; use with level campaign |
adGroupId | string | ad group id to archive; use with level adGroup |
adId | string | ad id to archive; use with level ad |
confirm | boolean | REQUIRED true — archiving cannot be undone |
confirmName | string | the object’s EXACT name, required when it has children or is live |
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_openai_ads_object.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"delete_openai_ads_object","arguments":{}}}
CLI
hermoso call delete_openai_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_openai_ads_statusActivate, pause or archive a ChatGPT Ads account / campaign / ad group / adupdate_openai_ads_accountUpdate the ChatGPT Ads account (brand / account / legal name, URL, favicon)create_openai_ads_conversion_api_keyCreate a ChatGPT Ads Conversions API keysend_openai_ads_conversionsSend server-side conversion events to ChatGPT Adspreview_openai_ads_adPreview a ChatGPT Ads adopenai_ads_conversionsChatGPT Ads attributed conversionsset_openai_ads_budgetSet a ChatGPT Ads campaign budgetupdate_openai_ads_objectEdit a ChatGPT Ads campaign / ad group / adupdate_openai_ads_feed_productsUpdate ChatGPT Ads product-feed variantsopenai_ads_bulk_jobRead a ChatGPT Ads bulk job