get_account_stats
Retrieve Telegram Ads account statistics for a specified time range, with 5-minute or daily intervals, to analyze spend and performance; omit the account ID to use the configured default.
Instructions
Get account statistics for [from_time, to_time), in Unix seconds.
Returns a time series in intervals of 300 or 86400 seconds. The API rounds bounds to interval starts; at most 1000 intervals are allowed. Monetary values use the returned currency.
Omitted account_id uses TELEGRAM_ADS_ACCOUNT_ID if set, otherwise the token owner's account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_time | Yes | ||
| interval | No | ||
| from_time | Yes | ||
| account_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||