Discrepancy in 'cost_micros' Metrics Between Google Ads API and Dashboard

184 views
Skip to first unread message

Guilherme Mena

unread,
Nov 16, 2023, 1:47:56 PM11/16/23
to Google Ads API and AdWords API Forum
Hi,

I am reaching out to seek clarification regarding a discrepancy I have encountered in the cost metrics reported in the Google Ads user interface (UI) compared to what I retrieve through the Google Ads API.

For the period from October 1,2023, to October 31,2023, the cost displayed in the Google Ads UI is R$ 3,67 thousand. However, when I query the same data for this period through the API, the returned amount is significantly different, showing R$ 5,586.32.

The query I am using is as follows:


`SELECT metrics.cost_micros FROM customer WHERE segments.date BETWEEN '2023-10-01' AND '2023-10-31'`


I have verified the query parameters and the date range, and they match the information on the dashboard. I am also converting 'cost_micros' from micros to the standard currency unit correctly.

Could you please assist me in understanding why there is such a variance and what steps I can take to ensure that the data I retrieve via the API aligns with what is shown in the Google Ads UI?

Thank you for your attention to this matter.

Best regards,




Google Ads API Forum Advisor

unread,
Nov 16, 2023, 2:30:52 PM11/16/23
to guilhe...@profitfy.me, adwor...@googlegroups.com
Hi,

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

By reviewing your concern, I understand that you are experiencing a discrepancy between the UI and API responses. To investigate this issue further, please provide the following details:​  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, .NetPHPPythonRuby 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.!5004Q02qClov:ref"

Thanks,
 
Google Logo Google Ads API Team



 

Guilherme Mena

unread,
Nov 17, 2023, 11:40:12 AM11/17/23
to Google Ads API and AdWords API Forum
Hi,

Thank you for your assistance with the metrics discrepancy issue. Upon rechecking with an updated screenshot from our customer, we found that the values in the Google Ads UI now match those from the API.

It seems the issue has been resolved, and there's no further discrepancy. I appreciate your support.

Best regards

Google Ads API Forum Advisor

unread,
Nov 19, 2023, 8:23:04 PM11/19/23
to guilhe...@profitfy.me, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

That's great to hear that your issue has been resolved. Do reach out to the Google Ads API support team for any queries related to the API.
Reply all
Reply to author
Forward
0 new messages