dashboard.generate_pro_html
Generate a Pro HTML+JSON dashboard for Yandex Direct and Metrica, combining search terms, keyword diagnostics, bids, campaign watchlist, and tracking gap findings.
Instructions
Pro-only: generate an enriched HTML+JSON dashboard with search terms, keyword diagnostics, campaign watchlist, bids, and tracking gap findings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_to | Yes | YYYY-MM-DD. | |
| goal_ids | No | Optional Metrica goal IDs. When set, dashboard will include leads based on goal{ID}reaches (best effort). | |
| date_from | Yes | YYYY-MM-DD. | |
| account_id | No | Project profile id (resolves to Direct Client-Login and optional Metrica counter defaults). | |
| counter_id | No | Metrica counter id (optional if account profile has exactly one). | |
| output_dir | No | When set, write HTML+JSON files to this directory. | |
| account_ids | No | Optional explicit list of account profile ids to include in a multi-account dashboard. | |
| return_data | No | Return the full data payload in response (default: false if output_dir is set, otherwise true). | |
| all_accounts | No | When true, generate one dashboard containing data for all configured account profiles (account switcher in UI). | |
| include_html | No | Include HTML content in response (default: true if output_dir is not set). | |
| max_findings | No | Max findings to include in the PRO insights panel (default: 24). | |
| max_keywords | No | Max keyword report rows to parse for PRO insights (default: 100). | |
| max_campaigns | No | Max campaigns to include in the PRO watchlist (default: 12). | |
| dashboard_slug | No | Optional suffix for output file names. | |
| include_audience | No | Include Audience segments blocks (default: false). | |
| include_wordstat | No | Include Wordstat suggestions block (default: false). | |
| wordstat_devices | No | Optional Wordstat devices filter. | |
| wordstat_regions | No | Optional Wordstat region ids. | |
| wordstat_language | No | Negative lexicon language ru|en (default: ru). | |
| max_search_phrases | No | Max search phrase report rows to parse for PRO insights (default: 200). | |
| direct_client_login | No | Override Direct Client-Login for this call (agency multi-project support). | |
| include_raw_reports | No | Include raw Direct/Metrica payloads in output data (default: false). | |
| wordstat_num_phrases | No | Wordstat numPhrases (default: 50, max: 2000). | |
| wordstat_max_campaigns | No | Max campaigns to analyze with Wordstat (default: 5). | |
| wordstat_max_negatives_per_campaign | No | Max negative tokens per campaign (default: 25). | |
| wordstat_max_candidates_per_campaign | No | Max Wordstat candidates per campaign (default: 20). | |
| wordstat_max_seed_phrases_per_campaign | No | Max seed phrases per campaign (default: 3). |