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.
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": {
"from_time": "<from_time>",
"to_time": "<to_time>"
},
"name": "get_account_stats"
}
}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 | |||