get_kvp_report_by_domain
Retrieve key-value pair ad metrics for a domain, grouped by a GAM key like utm_campaign, to analyze ad exchange performance. Revenue is reported in micros.
Instructions
Key-value-pair (KVP) metrics for a domain, grouped by a GAM key.
Returns rows keyed by key/value with GAM ad-exchange metrics. Note:
ad_exchange_line_item_level_revenue is in micros (divide by 1,000,000).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Key to group by, e.g. 'utm_campaign' or 'utm_source' | utm_campaign |
| domain | Yes | Site domain, e.g. 'example.com' | |
| end_date | No | Report end date, 'YYYY-MM-DD' (optional) | |
| timezone | No | Timezone for the data. One of: '' (default), 'gam' (Google Ad Manager), 'pacific', 'gmt_3', 'cet', 'eastern'. | |
| start_date | Yes | Report start date, 'YYYY-MM-DD' | |
| network_code | No | GAM network code for the domain. Optional — if omitted, the server falls back to the ACTIVEVIEW_NETWORK_CODE environment variable. |