Statistics for a period
direct_reportFetch Yandex.Direct report rows for explicit dates and fields. Validates the period against the available statistics window and refuses out-of-bound requests, preventing silent data truncation.
Instructions
Ask for a report and get its rows. Reports cost no API units, which makes them always cheaper than rebuilding the same numbers from object calls.
š“ The period is checked before the request. Yandex keeps about three years of statistics and the boundary slides forward on the first of every month ā and a request reaching past it does NOT fail. It returns the part that still exists, labelled with the dates you asked for, and nothing says it was cut. This tool refuses instead, and names the boundary.
Dates are explicit rather than relative, so the same request means the same thing tomorrow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| goals | No | goal ids; at most ten per report | |
| fields | Yes | columns, e.g. CampaignName, Clicks, Cost | |
| date_to | Yes | YYYY-MM-DD | |
| filters | No | ||
| date_from | Yes | YYYY-MM-DD | |
| include_vat | No | ||
| report_type | No | e.g. CAMPAIGN_PERFORMANCE_REPORT, SEARCH_QUERY_PERFORMANCE_REPORT | |
| client_login | No | Report on an account this login represents rather than its own. Reading only, like direct_read. |