get_analytics_by_dimension
Fetch channel analytics segmented by traffic source, device, country, age, gender, or OS. Get ranked metric rows for a selected period to understand audience behavior.
Instructions
Fetches channel analytics broken down by a specific dimension.
Args: dimension: The dimension to analyze. Supported values: - 'trafficSource' (YouTube search, suggested videos, browse features, external, etc.) - 'deviceType' (mobile phone, computer, TV, tablet) - 'country' (top geographic viewer locations) - 'ageGroup' (demographics: 18-24, 25-34, 35-44, etc.) - 'gender' (viewer gender percentage) - 'operatingSystem' (Android, Windows, iOS, etc.) - 'day' or 'month' time_period: Preset time period ('7d', '28d', '90d', '365d', 'last_month'). Defaults to '28d'. start_date: Optional explicit start date (YYYY-MM-DD). end_date: Optional explicit end date (YYYY-MM-DD). max_results: Maximum number of rows to return (default: 20).
Returns: A ranked list of metrics for each dimension value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | ||
| dimension | Yes | ||
| start_date | No | ||
| max_results | No | ||
| time_period | No | 28d |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |