openai_ads_bulk
ChatGPT Ads bulk create/update job destructive
Description
Create or update up to 1,000 ChatGPT Ads campaigns, ad groups and ads in ONE asynchronous job — the only way to build a whole tree in one call. It builds CHAT-CARD campaigns only: its campaign.create has no product-feed mode, and OpenAI’s spreadsheet bulk creation of product-feed campaigns and ad groups with auto-generated ad templates is an Ads Manager feature with no API. Build a product-feed campaign with create_openai_ads_campaign (mode product_feed), create_openai_ads_ad_group and an ad whose creative type is the product-ad template instead. Each operation is {operation_id, type, idempotency_key|target_resource_id, input}. Types: campaign.create, campaign.update, ad_group.create, ad_group.update, ad.create, ad.update. FORWARD REFERENCES are the point: set input.campaign_idempotency_key / input.ad_group_idempotency_key to another CREATE operation’s idempotency_key and the child attaches to the parent made in the same job (a key no operation mints is refused here, for free, rather than failing the whole job at OpenAI). EVERYTHING CREATED IS PAUSED and spends nothing — status:"active" on a create is overridden, and an UPDATE that would set "active" is REFUSED BY NAME, because one job could otherwise arm a thousand objects in a single call that no confirmation ever saw; turn things on one at a time with set_openai_ads_status. Use validateOnly:true for a FREE dry run (not update-target existence, image fetching or entity limits, so a validated job can still fail). Returns a jobId — poll it with openai_ads_bulk_job; an operation’s result is only final once the job is completed, partially_failed or failed. LIMITS (OpenAI’s): 1–1000 operations, 16 MiB body, 512 KiB per operation, 10 job creates per 10 s per ad account, budget ≥ 1000000 micros, titles 3–50, bodies ≤100. THE BULK API IS IN LIMITED PREVIEW AND ENABLED PER AD ACCOUNT: a 404 means this account has not been granted it (not a wrong path), and the refusal says so and names the per-object tools that do the same work.
Parameters
| Parameter | Type | Description |
|---|---|---|
operationsrequired | object[] | 1–1000 operations: {operation_id, type, idempotency_key (creates) or target_resource_id (updates), input:{…}} |
validateOnly | boolean | true = FREE dry run; nothing is created or changed |
partialFailure | boolean | default true (independent operations continue after an error). false skips later operations after a failure and does NOT roll back what already completed. |
idempotencyKey | string | request-level key that makes an uncertain retry safe. Reusing it with a DIFFERENT body is an error at OpenAI. To rerun a failed job, submit the same body with a NEW request-level key. |
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/openai_ads_bulk.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"openai_ads_bulk","arguments":{"operations":"<array>"}}}
CLI
hermoso call openai_ads_bulk --json '{"operations":"<array>"}'
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
create_openai_ads_campaignBuild a ChatGPT Ads campaign (paused)create_openai_ads_ad_groupAdd a ChatGPT Ads ad groupset_openai_ads_statusActivate, pause or archive a ChatGPT Ads account / campaign / ad group / adopenai_ads_bulk_jobRead a ChatGPT Ads bulk jobcreate_openai_ads_adCreate a ChatGPT Ads adupdate_openai_ads_feed_productsUpdate ChatGPT Ads product-feed variantsupdate_openai_ads_objectEdit a ChatGPT Ads campaign / ad group / adarchive_openai_ads_audienceArchive a ChatGPT Ads custom audience (permanent)set_openai_ads_budgetSet a ChatGPT Ads campaign budgetmerge_openai_ads_audiencesMerge ChatGPT Ads custom audiences