Ad group statistics
group_statsGet per-group daily and total performance metrics for selected ad groups in a campaign—views, clicks, spend, CTR—for a date range up to 100 days.
Instructions
Per-group statistics for the groups you name in one campaign: a flat array with one entry per ad group ({id, name, paymentModel, campaignType, data[] per day, totalData for the period}). Same metrics as campaign_stats — views (impressions), clicks, ctr, spend, spendBonus, cpm, cpc, video quartiles, vtr — with money in rubles. groupIds is required: this tool narrows, it does not enumerate. The period is inclusive, YYYY-MM-DD, and must span at most 100 days. Returns no campaign-level totals; for every group of a campaign call campaign_stats, which carries the same breakdown. Costs weekly API points; the reply's apiPointBalance is what is left until the quota refills Monday 00:00 UTC, so prefer one wide period over many narrow calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dateTo | Yes | Last day of the period, inclusive (YYYY-MM-DD). Must be >= dateFrom, and the period must not exceed 100 days. | |
| dateFrom | Yes | First day of the period, inclusive (YYYY-MM-DD). | |
| groupIds | Yes | Ad group ids to report on, e.g. [101, 102]. Required; get them from list_groups, or use campaign_stats for the whole campaign. | |
| campaignId | Yes | Campaign whose groups are reported. Find ids with list_campaigns. |