create_ad
Create an ad for Telegram Ads campaigns with targeting by channel, bot, search, or user, and configure budget, schedule, and audience to launch campaigns.
Instructions
Create an ad. TON/Gram cabinets allow channels, bots, search, and users (geo). EUR too.
Always create on_hold. Budget "0" cannot go to review. IDs are semicolon-separated.
Search ads: do not pass text/picture/media.
Empty strings are stripped and not sent.
Do not send langs together with specific channel IDs (platform Target invalid) —
langs is dropped in that case.
confirm: required for spend (budget>0 or active) when TG_ADS_WRITE_GATE is not open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpm | Yes | ||
| bots | No | ||
| text | No | ||
| langs | No | ||
| media | No | ||
| title | Yes | ||
| active | No | on_hold | |
| budget | No | 0 | |
| button | No | ||
| device | No | ||
| topics | No | ||
| confirm | No | ||
| picture | No | ||
| channels | No | ||
| schedule | No | ||
| countries | No | ||
| locations | No | ||
| user_langs | No | ||
| audience_id | No | ||
| only_crypto | No | ||
| promote_url | Yes | ||
| schedule_tz | No | ||
| target_type | No | channels | |
| user_topics | No | ||
| daily_budget | No | 0 | |
| only_politic | No | ||
| website_name | No | ||
| activate_date | No | ||
| user_channels | No | ||
| exclude_crypto | No | ||
| exclude_topics | No | ||
| search_queries | No | ||
| views_per_user | No | 1 | |
| deactivate_date | No | ||
| exclude_politic | No | ||
| conversion_event | No | ||
| exclude_channels | No | ||
| intersect_topics | No | ||
| schedule_tz_custom | No | ||
| exclude_user_topics | No | ||
| exclude_user_channels | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||