hermosodocs

delete_openai_ads_object

Archive (ChatGPT Ads’ delete) a campaign / ad group / ad destructive

Area: X ADS CUSTOM AUDIENCES + CONVERSION API · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
level"campaign" | "adGroup" | "ad"what to archive — default campaign
campaignIdstringcampaign id to archive; use with level campaign
adGroupIdstringad group id to archive; use with level adGroup
adIdstringad id to archive; use with level ad
confirmbooleanREQUIRED true — archiving cannot be undone
confirmNamestringthe object’s EXACT name, required when it has children or is live
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_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.

All 759 Ad campaign management tools · tools.json