create_ads
Create one or more Telegram Ads in sequence or validate them locally with a dry run before writing, using idempotency keys for retry-safe submissions.
Instructions
Create one or more ads in order, or validate them locally with dry_run.
Defaults are zero initial budget and paused delivery. Positive budget transfers account funds and may trigger review. Activation/deactivation dates override is_paused. Amounts use the selected account's currency.
Each ad requires an idempotency_key. Retry with the same key and identical parameters within 24 hours; later retries may create another ad. Duplicates are not removed. No rollback is performed.
Outcomes are succeeded, failed, unknown, or not_attempted. For unknown outcomes retry with the original key. stop_on_error defaults to true; authentication, permission and rate-limit errors always stop the batch. Unexpected client failures also stop remaining writes.
dry_run makes no API calls and does not check access, budget or moderation. Omitted account_id uses the configured default or the token owner.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ads | Yes | ||
| dry_run | No | ||
| account_id | No | ||
| stop_on_error | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||