Retrieve ad report
Performance report for a company, ad campaigns, ad groups, or ads. Always returns aggregate summary totals summed across the scope. Set granularity to additionally get a time series, or set breakdown (campaign/ad_group/ad) to additionally get per-entity rows inside the requested scope. Exactly one of companyId, adCampaignIds, adGroupIds, or adIds must be provided.
Required permissions:
- ad_campaign:stats:read
Query parameters
Scope the report to these ad campaigns (max 100); stats are summed across them. Mutually exclusive with companyId, adGroupIds, and adIds.
Scope the report to these ad groups (max 100); stats are summed across them. Mutually exclusive with companyId, adCampaignIds, and adIds.
Scope the report to these ads (max 100); stats are summed across them. Mutually exclusive with companyId, adCampaignIds, and adGroupIds.
Entity level to group an ad report by.
The unique identifier of a company. Mutually exclusive with adCampaignIds, adGroupIds, and adIds. Use with breakdown to fan out across every campaign, ad group, or ad in the company without paging.
ISO 4217 currency code to report spend in. Defaults to the company's ads reporting currency.
Inclusive start of the reporting window.
Bucket size for external ad stat rows.
Inclusive end of the reporting window.
Response
A successful response
Example response
{
"breakdown": [
{
"granularity": [
{
"bucket_start": "2023-12-01T05:00:00.401Z",
"clicks": 42,
"impressions": 42,
"reach": 42,
"result_count": 42,
"spend": 6.9,
"stat_date": "2023-12-01T05:00:00.401Z",
"stat_hour": 42
}
],
"summary": {
"click_through_rate": 6.9,
"clicks": 42,
"cost_per_click": 6.9,
"cost_per_mille": 6.9,
"cost_per_result": 6.9,
"frequency": 6.9,
"impressions": 42,
"reach": 42,
"result_count": 42,
"return_on_ad_spend": 6.9,
"spend": 6.9
}
}
],
"granularity": [
{
"bucket_start": "2023-12-01T05:00:00.401Z",
"clicks": 42,
"impressions": 42,
"reach": 42,
"result_count": 42,
"spend": 6.9,
"stat_date": "2023-12-01T05:00:00.401Z",
"stat_hour": 42
}
],
"summary": {
"click_through_rate": 6.9,
"clicks": 42,
"cost_per_click": 6.9,
"cost_per_mille": 6.9,
"cost_per_result": 6.9,
"frequency": 6.9,
"impressions": 42,
"reach": 42,
"result_count": 42,
"return_on_ad_spend": 6.9,
"spend": 6.9
}
}Changes
Changed in 1 of the 41 revisions of this API.29
- ▲
the
queryrequest parameterbreakdownwas restricted to a list of enum valuesrequest-parameter-became-enum
- ▲
the
queryrequest parametergranularitywas restricted to a list of enum valuesrequest-parameter-became-enum
- ○
added the new enum value
adto thequeryrequest parameterbreakdownrequest-parameter-enum-value-added
- ○
added the new enum value
ad_groupto thequeryrequest parameterbreakdownrequest-parameter-enum-value-added
- ○
added the new enum value
campaignto thequeryrequest parameterbreakdownrequest-parameter-enum-value-added
- ○
added the new enum value
dailyto thequeryrequest parametergranularityrequest-parameter-enum-value-added
- ○
added the new enum value
hourlyto thequeryrequest parametergranularityrequest-parameter-enum-value-added
- ○
added the new enum value
monthlyto thequeryrequest parametergranularityrequest-parameter-enum-value-added
- ○
added the new enum value
weeklyto thequeryrequest parametergranularityrequest-parameter-enum-value-added
- ○
for the
queryrequest parameterbreakdown, the type/format was generalized from/tostring/request-parameter-type-generalized
- ○
for the
queryrequest parametergranularity, the type/format was generalized from/tostring/request-parameter-type-generalized
- ▲