We are using Google Adwords API to fetch target Audiences for a Google Display campaign. We use the AUDIENCE_PERFORMANCE_REPORT API, but the returned audience groups don’t match what is shown in the interface.
Here is an example of what is shown in the interface for the selected campaign (see attachment).
For this campaign, we have two ad groups.
Here is our Query:
report = {
'reportName': 'AUDIENCE_PERFORMANCE_REPORT',
'dateRangeType': 'ALL_TIME',
'reportType': 'AUDIENCE_PERFORMANCE_REPORT',
'downloadFormat': 'CSV',
'selector': {
'fields': [ 'Criteria', 'CampaignId', 'CampaignName', 'CampaignStatus', 'BaseAdGroupId', 'Status', 'Id', 'CriterionAttachmentLevel', 'AdGroupId','AdGroupName','AdGroupStatus', 'AdNetworkType1', 'Clicks'],
"predicates": [{'field': 'CampaignId', 'operator': 'EQUALS', 'values': 11773835253}]
}
}
And here is what is returned:
https://docs.google.com/spreadsheets/d/1hR9h1tq95BoBBX8CHYUmeoMUU0UYBRtcAY3oYT3qTmc
There is a mismatch in the number of records: 17 in the interface vs. 9 from the API.
BTW:We see the same response when using the AdGroupCriterionService when fetching the audiences for a given campaignId.
We would appreciate your help or any pointers as to why this mismatch is happening.
We use the googleads python client v22.0.0
Best Nils
|
||||||