Get statistics
get_statisticsRetrieve performance statistics for VK Ads ad plans, ad groups, or banners. Group by day, week, month, or summary, filter by IDs and date range, and sort results server-side.
Instructions
Fetches performance statistics from the VK Ads v3 statistics service for ad plans, ad groups or banners. By default the grouping is summary — one aggregated row per object over the whole period; use day/week/month ONLY for daily dynamics or trend questions (each adds a row per object per period). Rank objects server-side with sortBy (e.g. base.spent) + order; the response also carries total — the summary across ALL objects for the period (use it for «сколько всего», no need to sum rows). Metrics live under base (shows, clicks, spent, ...); spent is in account currency.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Limit the report to these object ids (of the chosen entity). | |
| limit | No | Max objects per page (<=250). | |
| order | No | Sort direction for sortBy. Default desc. | |
| dateTo | No | End date YYYY-MM-DD (required for day/week/month). | |
| entity | No | Object type to report on. Default banners. | |
| offset | No | Pagination offset (objects to skip). | |
| period | No | Grouping: summary (whole range, default), or day/week/month for trends. | |
| sortBy | No | Server-side sort field, e.g. base.spent / base.clicks / base.shows (top-N by metric). | |
| metrics | No | Metric groups to include, e.g. base, events, video. Defaults to the API default. | |
| dateFrom | No | Start date YYYY-MM-DD (required for day/week/month). | |
| autoPaginate | No | Fetch all pages by following offset/count. |