insights_query_batch_overview
Server-side batch overview for comparing multiple explicit scopes. Cache-only read from tiktok_insights_daily; accepts 1 to 20 scopes and avoids client-side concurrent fan-out.
Attribution: omit or use value (TikTok configured window). Custom attribution windows are rejected.
REQUIRED: group_by ∈ {account, campaign, adset, ad}, scopes[] where each scope has date_from, date_to, and one scope filter (ad_account_id or product_id). DATE PARAMS: use date_from / date_to inside each scope (NOT start_date / end_date). EXAMPLE: insights_query_batch_overview({"group_by": "account", "scopes": [{"ad_account_id": "", "date_from": "2026-04-23", "date_to": "2026-04-29"}, {"ad_account_id": "", "date_from": "2026-04-23", "date_to": "2026-04-29"}]})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| scopes | Yes | ||
| group_by | Yes | ||
| sort_dir | No | desc | |
| sort_key | No | spend | |
| page_size | No | ||
| view_mode | No | grouped | |
| attribution | No | ||
| consistency | No | cached | |
| require_complete_range | No |