Create ad (paused)
create_adCreate a paused OpenAI ad in a specified ad group, submitting it for review. Supports chat card and product-feed templates with images, links, and default product fields.
Instructions
Create an ad, ALWAYS paused; creating it submits it for review. chat_card: title (3-50 chars), body (max 100), https target_url, and an image: image_url (https, at least 640x640; uploaded to OpenAI for you) or file_id, or 4-6 square file_ids where the account allows it. product_ad_template (product-feed ad groups, at most one each): image and link come from each product; title/body/price default to {{product.title}}, {{product.body}}, {{product.price}}. Then call preview_ad.
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": {
"ad_group_id": "<ad_group_id>",
"name": "<name>",
"type": "<type>"
},
"name": "create_ad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| name | Yes | ||
| type | Yes | ||
| price | No | ||
| title | No | ||
| file_id | No | ||
| file_ids | No | ||
| image_url | No | ||
| target_url | No | ||
| ad_group_id | Yes | Ad group id | |
| query_string_template | No |