# Hermoso: create_openai_ads_campaign · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/create_openai_ads_campaign/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / create_openai_ads_campaign

# `create_openai_ads_campaign`

Build a ChatGPT Ads campaign (paused) destructive

Area: X ADS CUSTOM AUDIENCES + CONVERSION API · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Build a campaign on the connected ChatGPT Ads account — the ads that appear below ChatGPT answers. ALWAYS created PAUSED at every level, with no override: it spends NOTHING until you activate it with set_openai_ads_status(confirm:true). The object graph is campaign -> ad group -> ad, and a campaign ON ITS OWN CANNOT SERVE AN IMPRESSION, so pass adGroup{name, contextHints, ad{creative}} and this builds the whole tree. BIDDING: leave the ad group’s bid out and it gets INTELLIGENT BIDDING (maximize_clicks / maximize_conversions, OpenAI’s renamed “Maximize results”), or a cost target (target_cpa + targetCpa, target_cpc + targetCpc); a fixed maxBid (Max Bid / Max CPC) is deprecated and ChatGPT Ads retires it on 2027-01-01. PRODUCT-FEED CAMPAIGNS: pass productFeedId, and adGroup.productSet to choose which products. THE CREATIVE IS A TEXT + IMAGE CARD AND NOTHING ELSE — title 3–50 characters, body 100 maximum, one landing page, one still image. THERE IS NO VIDEO ON THIS CHANNEL: never offer a video ad here, and if the brand only has video, pull a frame from it first. TARGETING IS SEMANTIC: context hints are natural-language descriptions of the conversations where this ad belongs (up to 2,000 per ad group). Geo (countries / locationIds) and PLATFORMS (which of the iOS app, Android app and web the ad runs on) are the only other dimensions — leave platforms out to run on all three. They guide matching, they are NOT exact-match keywords, and they do not guarantee delivery. OpenAI’s own guidance is BREADTH — many genuinely distinct hints and many distinct title/body angles beat one message repeated. The whole tree is VALIDATED before the first write; if a level below the campaign is still rejected, the campaign is left PAUSED (spending nothing) and the note says exactly what exists. Everything is READ BACK from OpenAI before you are told it exists: print the returned note verbatim, and if it says the campaign cannot serve yet, say that rather than calling it a finished ad.

## Parameters

Parameter Type Description

`name` required `string` campaign name, at least 3 characters

`description` `string` optional campaign description

`dailyBudget` `number` daily cap in the AD ACCOUNT’S currency — ChatGPT Ads’ own minimum for a DAILY budget is 25.00

`lifetimeBudget` `number` lifetime cap in the account currency — no 25.00 floor applies here, so use this to spend less than that in total. Pass this and/or dailyBudget; a budget is required.

`businessAgentId` `string` run a BUSINESS AGENT campaign (mode business_agent): the id from create_openai_ads_business_agent, which must be PUBLISHED

`objective` `"reach" | "clicks" | "conversions"` the campaign objective. objective "conversions" with billingEventType "impression" is the impression-billed, conversion-optimised shape

`billingEventType` `"impression" | "click"` what the campaign is billed on

`landingPageQueryTemplate` `string` query-string template appended to landing URLs (e.g. utm_source=chatgpt&utm_campaign={campaign_id}) — ChatGPT Ads’ landing_page_configuration.query_string_template

`biddingType` `"impressions" | "clicks" | "conversions"` default clicks (CPC). "conversions" is oCPC — you still pay per click, but ChatGPT Ads optimises toward a conversion event, and it REQUIRES conversionEventSettingIds naming exactly one active event setting.

`countries` `string[]` 2-letter country codes

`locationIds` `string[]` region or market ids from openai_ads_geo_search, up to 2,500; product-feed campaigns take them too

`excludedCountries` `string[]` 2-letter country codes to leave out

`excludedLocationIds` `string[]` region or market ids to leave out, e.g. one state of a targeted country

`productFeedId` `string` make this a PRODUCT-FEED campaign advertising this feed (list_openai_ads_feeds); fixed once created

`platforms` `"ios_app" | "android_app" | "web" | "desktop_web" | "ios_web" | "android_web"[]` WHICH CHATGPT SURFACES THIS CAMPAIGN RUNS ON — OpenAI’s “Eligible platforms”: ios_app (the ChatGPT iOS app), android_app (the Android app), web (ChatGPT in ANY browser), or narrower browser targets desktop_web, ios_web and android_web. OMIT IT to run everywhere, which is the default and almost always right; naming a subset STOPS the ad serving everywhere else. Never combine web with desktop_web / ios_web / android_web: web already includes them, and OpenAI says to name the individual browser values without web when narrowing (that combination is refused before anything is sent). There is no empty state — ChatGPT Ads refuses an empty list — so widening back means naming ios_app, android_app and web.

`customAudienceIds` `string[]` TARGET a CUSTOM AUDIENCE — ids from list_openai_ads_audiences (created with create_openai_ads_audience, then filled with members). Until 2026-08-12 an audience could be created AND uploaded and then pointed at nothing: this is the field that consumes them. Combines with geo — the ad reaches people in the named locations who are ALSO in these audiences.

`excludedCustomAudienceIds` `string[]` EXCLUDE custom audiences — same ids, opposite effect (suppressing existing customers, say). An id in BOTH lists is refused rather than resolved by a guess, because OpenAI does not document which side wins.

`conversionEventSettingIds` `string[]` REQUIRED when biddingType is "conversions" (oCPC): exactly one active conversion-event-setting id from list_openai_ads_conversion_events, the event ChatGPT Ads optimises toward. Ignored for clicks/impressions bidding.

`startTime` `number` unix seconds

`endTime` `number` unix seconds

`adGroup` `object` build the ad group (and its ad) in the same call — a campaign alone cannot serve

`adGroup.name` required `string` ad group name

`adGroup.description` `string` optional ad group description

`adGroup.maxBid` `number` DEPRECATED — Max Bid / Max CPC, retired by ChatGPT Ads on 2027-01-01: a fixed bid in the account currency (bidStrategy fixed_bid; on a conversions campaign it is the CPA bid). Needed only on an impressions campaign (per impression); otherwise use intelligent bidding or a target.

`adGroup.bidStrategy` `"fixed_bid" | "maximize_clicks" | "maximize_conversions" | "target_cpc" | "target_cpa"` HOW THIS AD GROUP BIDS. OMIT IT (and maxBid) and a clicks or conversions campaign with a DAILY budget gets INTELLIGENT BIDDING — OpenAI’s new name for “Maximize results”: maximize_clicks / maximize_conversions, no amount. From 2026-11-09 OpenAI adds COST TARGETS: target_cpa with targetCpa (conversions campaigns) and target_cpc with targetCpc (clicks campaigns); OpenAI may bid above or below the target in any one auction, so set it from the recent actual CPA/CPC in openai_ads_report. An account OpenAI has not switched on yet is refused with that date. fixed_bid (with maxBid) is Max Bid / Max CPC: DEPRECATED, retired by ChatGPT Ads on 2027-01-01 and refused from then — do not choose it for a new ad group except on an impressions campaign. The strategy must match the campaign: maximize_clicks / target_cpc need biddingType clicks, maximize_conversions / target_cpa need conversions.

`adGroup.targetCpa` `number` Target CPA in the account currency: the average cost per conversion OpenAI aims for (bidStrategy target_cpa, conversions campaign, from 2026-11-09). Billing stays per click. Not with maxBid.

`adGroup.targetCpc` `number` Target CPC in the account currency: the average cost per click OpenAI aims for (bidStrategy target_cpc, clicks campaign, from 2026-11-09). Not with maxBid.

`adGroup.billingEvent` `"click" | "impression"` what the ad group is billed on: click (default) or impression

`adGroup.contextHints` `string[]` up to 2,000 natural-language conversation/topic descriptions — make them genuinely distinct from each other

`adGroup.productSet` `object` which products of a product-feed campaign this ad group advertises; omit for every product in the feed

`adGroup.productSet.productFeedId` `string` the campaign’s product feed; omit to use it

`adGroup.productSet.filters` `object[]` a product must meet ALL filters. Several on one field are allowed and narrow each other (price gte 20 AND price lte 100). On an edit this list REPLACES the old one; [] removes them all

`adGroup.productSet.filters[].field` required `string` feed attribute: brand, price, product_category, item_id, star_rating, title, condition, or ads_metadata.custom_label_0

`adGroup.productSet.filters[].operator` required `"in" | "not_in" | "gt" | "gte" | "lt" | "lte" | "contains" | "not_contains" | "starts_with"` in / not_in match any listed value; gt / gte / lt / lte compare one number

`adGroup.productSet.filters[].values` required `string[]` values as text, e.g. ["Acme"] or ["100"]

`adGroup.hideSalePrices` `boolean` Product display: true shows this ad group’s product ads at the regular price, never the feed’s sale price (for when a promotion has ended); false shows sale prices again. Read back.

`adGroup.hidePrices` `boolean` Product display: true shows this ad group’s product ads with no price at all. Read back.

`adGroup.ad` `object` the ad created inside the ad group; carries the creative

`adGroup.ad.name` `string` internal ad name; defaults to the title

`adGroup.ad.creative` required `object` title 3-50 characters, body up to 100, landing page URL and one still image; no video

`adGroup.ad.creative.title` required `string` the headline — 3 to 50 characters, enforced

`adGroup.ad.creative.body` required `string` the description under the headline — 100 characters maximum, enforced

`adGroup.ad.creative.targetUrl` required `string` the landing page (must not block OAI-AdsBot / OAI-SearchBot in robots.txt)

`adGroup.ad.creative.imageUrl` `string` public https URL of a STILL image — every text ad needs imageUrl OR fileId (ChatGPT Ads refuses an ad with no creative.file_id unless the campaign is a product feed; measured 2026-09-06); a video URL is refused, this channel has no video format

`adGroup.ad.creative.fileId` `string` reuse an image ChatGPT Ads already holds: the fileId list_openai_ads_campaigns returns for an existing ad (list with adGroupId). Wins over imageUrl; use it to copy an ad exactly

`adGroup.ad.creative.imageUrls` `string[]` 4–6 public https URLs of EXACTLY square (1:1) stills, in display order, for an ad with MULTIPLE images (one title, body and landing page shared by all). Each URL is measured before anything is uploaded: OpenAI refuses an image even 1 pixel off square, and a set of 16:9 images. OpenAI enables this per ad account, and with automatic bidding only if the account is also enabled for that — otherwise use a fixed bid. Not with imageUrl/fileId or price

`adGroup.ad.creative.fileIds` `string[]` the same as imageUrls with images already on the account (4–6 file ids); may be mixed with imageUrls, ids first. On an edit, omit both to keep the ad’s current images; a new list replaces them all

`adGroup.ad.creative.price` `string` optional price string shown on the card

## 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/create_openai_ads_campaign`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_openai_ads_campaign","arguments":{"name":"<string>"}}}`
**CLI**

`hermoso call create_openai_ads_campaign --json '{"name":"<string>"}'`

## 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](https://hermoso.ai/docs/credits/).

## Related tools

- [set_openai_ads_status](https://hermoso.ai/docs/reference/ads/set_openai_ads_status/) Activate, pause or archive a ChatGPT Ads account / campaign / ad group / ad
- [archive_openai_ads_audience](https://hermoso.ai/docs/reference/ads/archive_openai_ads_audience/) Archive a ChatGPT Ads custom audience (permanent)
- [create_openai_ads_ad_group](https://hermoso.ai/docs/reference/ads/create_openai_ads_ad_group/) Add a ChatGPT Ads ad group
- [merge_openai_ads_audiences](https://hermoso.ai/docs/reference/ads/merge_openai_ads_audiences/) Merge ChatGPT Ads custom audiences
- [create_openai_ads_ad](https://hermoso.ai/docs/reference/ads/create_openai_ads_ad/) Create a ChatGPT Ads ad
- [get_openai_ads_audience_operation](https://hermoso.ai/docs/reference/ads/get_openai_ads_audience_operation/) Check a ChatGPT Ads audience membership operation
- [openai_ads_bulk](https://hermoso.ai/docs/reference/ads/openai_ads_bulk/) ChatGPT Ads bulk create/update job
- [resume_openai_ads_audience_operation](https://hermoso.ai/docs/reference/ads/resume_openai_ads_audience_operation/) Resume a ChatGPT Ads audience membership operation
- [openai_ads_bulk_job](https://hermoso.ai/docs/reference/ads/openai_ads_bulk_job/) Read a ChatGPT Ads bulk job
- [cancel_openai_ads_audience_operation](https://hermoso.ai/docs/reference/ads/cancel_openai_ads_audience_operation/) Cancel a ChatGPT Ads audience membership operation

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
