Get Delivery Insights
get_delivery_insightsRetrieve advertising performance metrics across accounts, campaigns, ad groups, or ads. Choose aggregation, time granularity, and segments to analyze impressions, clicks, spend, CTR, CPC, CPM.
Instructions
Retrieve advertising performance metrics (impressions, clicks, spend, CTR, CPC, CPM). Supports aggregation_level ('ad_account', 'campaign', 'ad_group', 'ad'), time_granularity ('hourly', 'daily', 'monthly', 'none'), segments (['product'], ['country'], ['device']), and zero-impression items.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Next page cursor | |
| limit | No | Max rows returned (default 20) | |
| scope | Yes | Target entity scope for the query | |
| fields | No | Specific fields to project (e.g. ['campaign.impressions', 'campaign.clicks', 'campaign.spend']) | |
| end_time | No | Unix end timestamp in seconds (hourly boundary) | |
| segments | No | Optional breakdown segment dimension | |
| entity_id | No | Entity ID required if scope is campaign, ad_group, or ad | |
| start_time | No | Unix start timestamp in seconds (past 5 years, hourly boundary) | |
| time_granularity | No | Time bucket size. Default 'daily'. 'none' returns full window total. | |
| aggregation_level | No | Row entity inside the endpoint scope |