edit_ad
Modify existing Telegram ads by updating only the fields you provide—text, media, budget, schedule, or status—to avoid recreating ads.
Instructions
Edit an ad. Only provided fields are sent.
picture=True shows the avatar, picture=False turns it off (sends picture=0).
clear_media=True removes attached photo/video.
budget_action + budget_amount changes total budget (increase resumes a depleted Stopped ad).
Targeting cannot be changed after creation — clone_ad instead.
confirm: required to activate or change budget unless TG_ADS_WRITE_GATE=open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpm | No | ||
| text | No | ||
| ad_id | Yes | ||
| media | No | ||
| title | No | ||
| active | No | ||
| button | No | ||
| confirm | No | ||
| picture | No | ||
| schedule | No | ||
| audience_id | No | ||
| clear_media | No | ||
| promote_url | No | ||
| schedule_tz | No | ||
| daily_budget | No | ||
| website_name | No | ||
| activate_date | No | ||
| budget_action | No | ||
| budget_amount | No | ||
| views_per_user | No | ||
| deactivate_date | No | ||
| conversion_event | No | ||
| schedule_tz_custom | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||