Create ad
tg_create_adCreates a Telegram ad with targeting, placement, budget, and schedule settings. Use dry-run validation before submitting to the API.
Instructions
Create one advertisement. New ads are paused with a zero budget unless you pass is_paused: false and initial_budget. Money values must match the account currency precision (EUR/TON: 2 decimals, XTR: 0). Telegram requires text unless target.type is search, and at most one of photo_id/video_id. Use dry_run: true to validate without calling the API. Requires confirm: true and TG_ADS_MODE=write.
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": {
"title": "<title>",
"promote_url": "<promote_url>",
"cpm": "<cpm>",
"placement": "<placement>",
"target": "<target>"
},
"name": "tg_create_ad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpm | Yes | Price per 1000 impressions in the account currency. | |
| text | No | ||
| title | Yes | ||
| button | No | ||
| target | Yes | ||
| confirm | No | ||
| dry_run | No | ||
| photo_id | No | ||
| schedule | No | ||
| video_id | No | ||
| is_paused | No | Defaults to true. | |
| placement | Yes | ||
| account_id | No | ||
| promote_url | Yes | ||
| show_userpic | No | ||
| website_name | No | ||
| activate_date | No | Unix seconds. | |
| initial_budget | No | Defaults to 0, which keeps the ad unfunded. | |
| additional_info | No | ||
| deactivate_date | No | Unix seconds. | |
| idempotency_key | No | ||
| website_photo_id | No | ||
| daily_budget_limit | No | 0 disables the daily limit. | |
| conversion_event_id | No | ||
| impression_frequency | No |