Create a paused ChatGPT Ads ad
chatgpt_ads_create_adCreate a chat-card ad in an ad group, always PAUSED. Previews by default (dryRun true). Needs the ad group id, a name, a title, body text (max 100 characters), the destination URL, and an image file id from chatgpt_ads_upload_image. Tag it for GA4 with a queryStringTemplate (UTM parameters; it overrides its ad group's and campaign's for a matching key) or UTM parameters in the destination URL. The ad goes through OpenAI's review before it can serve.
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": {
"adGroupId": "<adGroupId>",
"name": "<name>",
"title": "<title>",
"body": "<body>",
"targetUrl": "<targetUrl>"
},
"name": "chatgpt_ads_create_ad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Body text, at most 100 characters. | |
| name | Yes | Ad name (3+ characters). | |
| title | Yes | The ad's 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. | |
| adGroupId | Yes | The ad group id, from chatgpt_ads_get_ad_groups. | |
| targetUrl | Yes | Destination URL. UTM parameters can be in it or come from a queryStringTemplate. | |
| imageFileId | No | Image file id from chatgpt_ads_upload_image. | |
| queryStringTemplate | No | UTM / tracking query string OpenAI appends to destination links, e.g. utm_source=chatgpt.com&utm_medium=cpc&utm_campaign={campaign_id}&utm_content={ad_id} (no leading '?', max 2048). Only {campaign_id}, {ad_id} and {oppref} are supported macros. Set at campaign level and ad groups and ads inherit it; a lower level overrides a matching key. chatgpt_ads_utm_audit shows what is tagged and recommends a template. |