Difference between the Impressions metrics value generated via API compared to UI

34 views
Skip to first unread message

Ramya

unread,
Jan 31, 2025, 3:14:10 AM1/31/25
to Google Ads API and AdWords API Forum
Hi,

I have extracted the ad spend data for 10 days and compared the sum of cost, clicks. conversions and impressions with UI report.The sum of cost,clicks and conversions matches, but not the impressions.The impressions extracted via API shows lesser value compared to the UI.Please advise the possible reasons behind this?
The query used is,

SELECT ad_group.id, ad_group.name, campaign.id, campaign.name, metrics.cost_micros, customer.currency_code, metrics.impressions, metrics.clicks, metrics.conversions, campaign.final_url_suffix, segments.date, segments.hour FROM ad_group WHERE segments.date > '2024-12-19' AND segments.date <= '2022-12-31' AND metrics.cost_micros > 0 ORDER BY segments.date

Thanks,
Ramya

Google Ads API Forum Advisor

unread,
Jan 31, 2025, 5:36:34 AM1/31/25
to ramyas.th...@vgw.co, adwor...@googlegroups.com
Hi Ramya,

Thank you for reaching out to the Google Ads API support team.

As you are seeing discrepancy between the sum of impressions displayed in the Google Ads UI and the data retrieved through the Google Ads API, we would like to specify first the following when comparing the value of the Google Ads UI and the Google Ads API.
  • The segments and fields of the API and UI should be the same.
  • The date range should also be the same.
  • Comparing the API and UI at the same level as possible.
With that, please provide us with the complete API logs (request and response with request-id and request header) generated at your end and uncropped UI screenshot of the Google Ads account highlighting the sum of impression. 

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGzSc:ref" (ADR-00286539)

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5



Reply all
Reply to author
Forward
0 new messages