Mismatch between the number of Audiences in the interface and the Adwords API

38 views
Skip to first unread message

Nils

unread,
Dec 14, 2020, 12:14:33 PM12/14/20
to AdWords API and Google Ads API Forum

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

Bildschirmfoto 2020-12-10 um 19.15.00.png

Google Ads API Forum Advisor Prod

unread,
Dec 16, 2020, 5:23:18 AM12/16/20
to ni...@talentbait.com, adwor...@googlegroups.com
Hi Nils,

Thank you for reaching out, could you provide the exact customer ID you used in your report request? Also, could you provide a more complete screenshot of the Google Ads UI view, containing the account ID details and also date filters if available?

You may send the requested information using the Reply privately to author option.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q29Rl40:ref
Reply all
Reply to author
Forward
0 new messages