get_ad_stats
Retrieve time-bucketed ad stats including CTR, CPC, CPM, spend, and budget. Choose 5-minute buckets for the last 24 hours or daily buckets for lifetime performance.
Instructions
Time-bucketed stats plus CTR / CPC / actual CPM.
period=5min → last 24h in 5-minute buckets. period=day → full lifetime daily.
Success JSON echoes the request `period` (`5min`/`day`). `summary.period` is a
span label (`24h`/`Nd`), not the request arg.
`summary.spend` is already scaled (Gram on a TON cabinet); `spend_already_scaled`
is true; `spend_scale` stays for compatibility. Do not divide again.
`charts.budget` series/totals are scaled the same way (`values_already_scaled`).
Prefer `summary.spend`. No CSV tool — if you save a file, gitignored `reports/`.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_id | Yes | ||
| period | No | 5min |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||