Get advertising stats
tg_get_statsRetrieve account or per-ad Telegram Ads statistics for a specified time range. Returns totals plus derived CTR, CPM, and CPC, with an option to include raw interval series.
Instructions
Get account or per-ad statistics for a time range. from/to accept Unix seconds, milliseconds, or ISO 8601. interval is 86400 (daily, default) or 300 (5 minutes). Ranges above 1000 intervals are split automatically. Always returns totals and derived CTR/CPM/CPC; set include_series for the raw time series. Timestamps are inclusive for from and exclusive for to.
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": {
"scope": "<scope>",
"from": "<from>",
"to": "<to>"
},
"name": "tg_get_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| scope | Yes | ||
| ad_ids | No | ||
| interval | No | ||
| account_id | No | ||
| include_series | No | Include raw per-interval rows (default false). |