update_openai_ads_object
Edit a ChatGPT Ads campaign / ad group / ad destructive
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
| Parameter | Type | Description |
|---|---|---|
level | "campaign" | "adGroup" | "ad" | inferred from which id you pass |
campaignId | string | campaign id to edit; use with level campaign |
adGroupId | string | ad group id to edit; use with level adGroup |
adId | string | ad id to edit; use with level ad |
name | string | new name |
description | string | new description |
dailyBudget | number | new daily budget in the account currency; campaign level |
lifetimeBudget | number | new lifetime budget in the account currency; campaign level |
countries | string[] | 2-letter country codes; replaces the whole geo list, so send the full list |
locationIds | string[] | region or market ids from openai_ads_geo_search; replaces the whole list |
excludedCountries | string[] | 2-letter country codes to leave out; replaces the list, [] clears it |
excludedLocationIds | string[] | region or market ids to leave out; replaces the list, [] clears it |
endTime | number | unix 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. |
customAudienceIds | string[] | 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. |
excludedCustomAudienceIds | string[] | REPLACES the campaign’s excluded custom audiences — same wholesale rule as customAudienceIds. |
conversionEventSettingIds | string[] | 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. |
contextHints | string[] | REPLACES the existing list |
productSet | object | which products of a product-feed campaign this ad group advertises; omit for every product in the feed |
productSet.productFeedId | string | the campaign’s product feed; omit to use it |
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 |
productSet.filters[].fieldrequired | string | feed 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[].valuesrequired | string[] | values as text, e.g. ["Acme"] or ["100"] |
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. |
hidePrices | boolean | Product display: true shows this ad group’s product ads with no price at all. Read back. |
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. |
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. |
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. |
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. |
creative | object | REPLACES the ad’s creative (text + image card only) |
creative.titlerequired | string | the headline — 3 to 50 characters, enforced |
creative.bodyrequired | string | the description under the headline — 100 characters maximum, enforced |
creative.targetUrlrequired | string | the landing page (must not block OAI-AdsBot / OAI-SearchBot in robots.txt) |
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 |
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 |
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 |
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 |
creative.price | string | optional price string shown on the card |
landingPageQueryTemplate | string | query 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. |
audienceBidMultipliers | object[] | 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[].customAudienceIdrequired | string | custom audience id to bid more or less for, from list_openai_ads_audiences |
audienceBidMultipliers[].multiplierrequired | number | 0.1 to 10; 2 bids twice as much for this audience |
confirm | boolean | REQUIRED 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.
Related tools
update_openai_ads_feed_productsUpdate ChatGPT Ads product-feed variantsset_openai_ads_budgetSet a ChatGPT Ads campaign budgetopenai_ads_bulk_jobRead a ChatGPT Ads bulk jobopenai_ads_conversionsChatGPT Ads attributed conversionsopenai_ads_bulkChatGPT Ads bulk create/update jobpreview_openai_ads_adPreview a ChatGPT Ads adcreate_openai_ads_adCreate a ChatGPT Ads adsend_openai_ads_conversionsSend server-side conversion events to ChatGPT Adscreate_openai_ads_ad_groupAdd a ChatGPT Ads ad groupcreate_openai_ads_conversion_api_keyCreate a ChatGPT Ads Conversions API key