Different campaign report results when using location

61 views
Skip to first unread message

Scott Vaillancourt

unread,
Nov 9, 2020, 11:37:05 AM11/9/20
to AdWords API and Google Ads API Forum
I'm trying to produce a report using the Google Ads API that includes totals for impressions, clicks and cost at the campaign/metro area level. I understand that if geographic information isn't available then data won't be returned from the geographic_view. In order to get all data for a campaign, I'm retrieving campaign-level data and comparing that to totals at the metro area level. I would expect that the campaign level data would always be greater than or equal to the geographic data since geographic data may sometimes be missing. However, what I've found is a case where totals for geographic-level data are greater than what the campaign is showing.


I'm trying to understand why the two results would differ in this manner and which one is accurate. Thanks.

Scott

Scott Vaillancourt

unread,
Nov 9, 2020, 12:18:47 PM11/9/20
to AdWords API and Google Ads API Forum
Looks like the data I pasted didn't come through in the original post.

Untitled.png

Additionally, here's the GAQL I'm using to create the data.

query = '''
    SELECT
        segments.date,
        campaign.name,
        metrics.impressions,
        metrics.clicks,
        metrics.cost_micros
    FROM campaign
    WHERE
        segments.date BETWEEN "{:s}" AND "{:s}"
        AND metrics.impressions > 0
    ORDER BY segments.date ASC, campaign.name ASC
    LIMIT 100000'''.format(start, end)

query = '''
    SELECT
        campaign.name,
        metrics.impressions,
        metrics.clicks,
        metrics.cost_micros,
        segments.geo_target_metro,
        segments.date
    FROM geographic_view
    WHERE
        segments.date BETWEEN "{:s}" AND "{:s}"
        AND metrics.impressions > 0
    ORDER BY segments.date ASC, campaign.name ASC
    LIMIT 100000'''.format(start, end)


Google Ads API Forum Advisor Prod

unread,
Nov 10, 2020, 1:52:24 AM11/10/20
to sc...@lionhurst.com, adwor...@googlegroups.com
Hi Scott,

Thank you for reaching out.

Could you also share your customer ID, and the complete request and response logs with the request ID, when you generated the reports?

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

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q278Ghw:ref

Scott Vaillancourt

unread,
Nov 10, 2020, 9:07:41 AM11/10/20
to AdWords API and Google Ads API Forum
Hi Peter,

I don't have permission to 'Reply privately to author' and would need some other mechanism to send you the information you're requesting. Also, I'm not sure where I'd capture the response log or request ID. Thanks.

Scott

Google Ads API Forum Advisor Prod

unread,
Nov 11, 2020, 3:14:43 AM11/11/20
to sc...@lionhurst.com, adwor...@googlegroups.com
Hi Scott,

Please provide the requested details to the email address below instead.


Also, please refer to the helpful links below for enabling the logging of specific client libraries that you are using:


Regards,

Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


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