create_ad
Create an ad in an ad group by providing creative type, title, and body. Supports chat_card with an uploaded image file ID or product_ad_template with product tokens, returning the new ad ID.
Instructions
Create an ad for an ad group. Requires creative (type/title/body etc.). For chat_card, provide file_id from upload_image. For product_ad_template, use {{product.*}} tokens and omit file_id. Returns ad_id.
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>",
"creative": "<creative>"
},
"name": "create_ad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Ad name. | |
| status | No | ||
| creative | Yes | Creative object. | |
| ad_group_id | Yes | Parent ad group ID. | |
| description | No | ||
| ad_account_id | No | ||
| idempotency_key | No |