Edit a ChatGPT Ads campaign
chatgpt_ads_update_campaignChange settings of ONE existing campaign: name, description, start and end date (null clears one), target countries, excluded countries, platforms, custom audiences, conversion goals, and the UTM query-string template. Only what you pass changes, and only if it differs from what is set now. NOT for pausing/resuming (chatgpt_ads_set_status) or the daily budget (chatgpt_ads_set_daily_budget); nothing is archived or deleted. Targeting is sent as the COMPLETE current targeting with your changes applied, so changing platforms can't wipe countries. Previews by default (dryRun true) with before, after and the exact request; set dryRun false only after the user agrees. Only works where the user has allowed changes for the ad account in the Caybl.ai dashboard.
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": {
"campaignId": "<campaignId>"
},
"name": "chatgpt_ads_update_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name (3+ characters). Also what GA4's utm_campaign should match. | |
| 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. | |
| endDate | No | YYYY-MM-DD end, midnight in the account time zone; null clears it. | |
| 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. | |
| countries | No | Replace the target countries with these two-letter codes, e.g. ['US','GB']. At least one: to remove the restriction, use Ads Manager. | |
| platforms | No | Replace where ads may show. | |
| startDate | No | YYYY-MM-DD start, midnight in the account time zone; null clears it. | |
| campaignId | Yes | The campaign id, from chatgpt_ads_get_campaigns. | |
| description | No | New description; null clears it. | |
| customAudienceIds | No | Replace the custom audiences to target; [] clears them. | |
| excludedCountries | No | Replace the excluded countries; [] clears the exclusions. | |
| 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). | |
| conversionEventSettingIds | No | Replace the campaign's conversion goals (ids from chatgpt_ads_conversion_health); [] detaches all goals. | |
| excludedCustomAudienceIds | No | Replace the custom audiences to exclude; [] clears them. |