Edit a ChatGPT Ads ad
chatgpt_ads_update_adChange ONE existing chat-card ad: name, headline (title), body text (100 characters at most), destination URL (https), image (a file id from chatgpt_ads_upload_image), and the UTM query-string template. Only what you pass changes, and only if it differs. NOT for pausing/resuming (chatgpt_ads_set_status); nothing is archived or deleted. A creative change sends the COMPLETE creative (current values with your changes) and sends the ad back through OpenAI's review, so it may stop serving until it is approved again. Previews by default (dryRun true); set dryRun false only after the user agrees. Only works where the user has allowed changes for the ad account. Product-feed ads can't have their creative edited here.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"adId": "<adId>"
},
"name": "chatgpt_ads_update_ad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adId | Yes | The ad id, from chatgpt_ads_get_ads. | |
| body | No | New body text, at most 100 characters. | |
| name | No | New name (3+ characters). | |
| title | No | New headline. | |
| dryRun | No | Preview only (the default): reads the current value and shows exactly what would change (before and after) without sending anything. Set false only after the user has seen the preview and agreed. | |
| accountId | No | The ChatGPT Ads ad account id, as listed by chatgpt_ads_list_ad_accounts. A connection reaches one ad account, so this is normally left out. | |
| targetUrl | No | New destination URL (https). | |
| imageFileId | No | New image: a file id from chatgpt_ads_upload_image. | |
| queryStringTemplate | No | The UTM / query-string template OpenAI appends to the link (landing_page_configuration.query_string_template), e.g. utm_source=chatgpt.com&utm_medium=cpc&utm_campaign={campaign_name}. No leading ?, no spaces, 2048 characters at most. null removes it. Tagging links lets GA4 attribute the traffic (chatgpt_ads_vs_ga4_conversions). |