hermosodocs

update_openai_ads_object

Edit a ChatGPT Ads 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

EDIT an existing ChatGPT Ads object in place — rename it, change a campaign’s budget or geo targeting, rewrite an ad group’s context hints or bid, or replace an ad’s title, body, landing page or image. Pass level:"campaign" + campaignId, level:"adGroup" + adGroupId, or level:"ad" + adId. Only the fields you pass are changed, but note that context hints, bidding, TARGETING and the creative are REPLACED WHOLESALE rather than merged, so send the complete list. A patch that would silently DESTROY something is refused by name with what would have been lost, rather than going through: dropping a campaign’s geo, custom audiences or PLATFORM targeting, deleting an ad group’s max bid or cost target, or demoting a maximize_* / target_* bid strategy. The reply says if ChatGPT Ads stored a different bid than was sent, and flags a Max Bid / Max CPC ad group (retired 2027-01-01). Changing the budget, the bid or the creative of a LIVE (active) object changes what real money buys immediately — show the user the old and new values, get an explicit yes, then pass confirm:true. The object is READ BACK after the change.

Parameters

ParameterTypeDescription
level"campaign" | "adGroup" | "ad"inferred from which id you pass
campaignIdstringcampaign id to edit; use with level campaign
adGroupIdstringad group id to edit; use with level adGroup
adIdstringad id to edit; use with level ad
namestringnew name
descriptionstringnew description
dailyBudgetnumbernew daily budget in the account currency; campaign level
lifetimeBudgetnumbernew lifetime budget in the account currency; campaign level
countriesstring[]2-letter country codes; replaces the whole geo list, so send the full list
locationIdsstring[]region or market ids from openai_ads_geo_search; replaces the whole list
excludedCountriesstring[]2-letter country codes to leave out; replaces the list, [] clears it
excludedLocationIdsstring[]region or market ids to leave out; replaces the list, [] clears it
endTimenumberunix seconds when the campaign stops; campaign level
platforms"ios_app" | "android_app" | "web" | "desktop_web" | "ios_web" | "android_web"[]REPLACES which ChatGPT surfaces the campaign runs on (ios_app / android_app / web, or the narrower browser targets desktop_web / ios_web / android_web; never web together with those, since web already includes them). Wholesale like the rest of targeting: a patch that changes geo or audiences on a campaign that already restricts platforms is REFUSED by name rather than silently widening it back to every surface. There is no [] — name all three to go back to everywhere.
customAudienceIdsstring[]REPLACES the campaign’s targeted custom audiences. TARGETING IS REPLACED WHOLESALE, not merged — a patch that omits something the campaign already targets is REFUSED by name rather than silently dropping it, so restate it here or pass [] to clear it deliberately.
excludedCustomAudienceIdsstring[]REPLACES the campaign’s excluded custom audiences — same wholesale rule as customAudienceIds.
conversionEventSettingIdsstring[]NOT CHANGEABLE: ChatGPT Ads refuses a new conversion event on an existing campaign ("cannot be modified after creation"). Passing it is refused with the way forward: build a new campaign with create_openai_ads_campaign, move the ad group and ads, pause this one.
contextHintsstring[]REPLACES the existing list
productSetobjectwhich products of a product-feed campaign this ad group advertises; omit for every product in the feed
productSet.productFeedIdstringthe campaign’s product feed; omit to use it
productSet.filtersobject[]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
productSet.filters[].fieldrequiredstringfeed attribute: brand, price, product_category, item_id, star_rating, title, condition, or ads_metadata.custom_label_0
productSet.filters[].operatorrequired"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
productSet.filters[].valuesrequiredstring[]values as text, e.g. ["Acme"] or ["100"]
hideSalePricesbooleanProduct 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.
hidePricesbooleanProduct display: true shows this ad group’s product ads with no price at all. Read back.
maxBidnumberDEPRECATED — 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.
billingEvent"click" | "impression"required alongside a maxBid — bidding is replaced wholesale; maximize_* and target_* are click-billed and need no billingEvent
bidStrategy"fixed_bid" | "maximize_clicks" | "maximize_conversions" | "target_cpc" | "target_cpa"CHANGE HOW THIS AD GROUP BIDS. BIDDING IS REPLACED WHOLESALE, so a patch that moves the bid without restating the strategy would DEMOTE a maximize_* or target_* ad group, and one that sets a strategy without restating maxBid / the target DELETES it — both are refused by name with what would have been lost. To move an existing Max Bid / Max CPC ad group (fixed_bid, retired 2027-01-01) onto a target from 2026-11-09, pass bidStrategy target_cpa + targetCpa (conversions campaign) or target_cpc + targetCpc (clicks campaign); the old maxBid is dropped on purpose because OpenAI refuses both together. maximize_clicks / maximize_conversions is intelligent bidding.
targetCpanumberTarget 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.
targetCpcnumberTarget 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.
creativeobjectREPLACES the ad’s creative (text + image card only)
creative.titlerequiredstringthe headline — 3 to 50 characters, enforced
creative.bodyrequiredstringthe description under the headline — 100 characters maximum, enforced
creative.targetUrlrequiredstringthe landing page (must not block OAI-AdsBot / OAI-SearchBot in robots.txt)
creative.imageUrlstringpublic 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
creative.fileIdstringreuse 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
creative.imageUrlsstring[]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
creative.fileIdsstring[]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
creative.pricestringoptional price string shown on the card
landingPageQueryTemplatestringquery string added to every landing page click, e.g. utm_source=chatgpt&utm_content={ad_id}. Placeholders: {campaign_id} {ad_group_id} {ad_id} {ad_account_id} {oppref}; oppref and olref cannot be parameter names. On an update, an empty string clears it.
audienceBidMultipliersobject[]bid more or less for people in a custom audience (eligible ids: list_openai_ads_audiences with intendedUse bid_multiplier, about 25,000 matched users). On an update this REPLACES the list; [] removes them all, and a bid change keeps the existing multipliers.
audienceBidMultipliers[].customAudienceIdrequiredstringcustom audience id to bid more or less for, from list_openai_ads_audiences
audienceBidMultipliers[].multiplierrequirednumber0.1 to 10; 2 bids twice as much for this audience
confirmbooleanREQUIRED true to change budget / bid / creative on a LIVE object

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/update_openai_ads_object.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"update_openai_ads_object","arguments":{}}}

CLI

hermoso call update_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