metrics.cost_micros

977 views
Skip to first unread message

Sven Braam

unread,
Aug 3, 2022, 8:59:26 AM8/3/22
to Google Ads API and AdWords API Forum
Hi there,

We are using plecto to import and combine all kind of stats. One of them is Google Ads.
Since the new API we do have a problem with the metric: costs_micros

What is the best way to calculate the total costs of our Adwords account for a specific date?

I expected it to see that with metrics.cost_micros
but it seems that we have 3 data sources now in Plecto:
Google Ads Performance Max
Google Ads Ad Performance
Google Ads Keyword perfomance.

In all three we can extract cost_micros
but only the result of " Google Ads Performance Max" seems legit. The other ones are too low individually - but too big when we add up Ad performance + Keyword performance. (so let's say our account ad spent is 1000, (200 performance max, 800 others) we do see something like : ~200 performance max, keywords performance 400 and Ad performance  ~700) wich makes no sense to us.

Do we miss something here?


Google Ads API Forum Advisor

unread,
Aug 3, 2022, 9:24:11 AM8/3/22
to sv...@sneleentaxi.nl, adwor...@googlegroups.com
Hi Sven,

Thank you for reaching out to Google Ads/AdWords API support with your API discrepancies issue. Unfortunately, we have no visibility on your 3rd party Ads API access provider and cannot support their platform directly. For full support you can ask from your 3rd party Ads API access provider could you send us a 'DEBUG' log level request and response log of raw API communications showing the reports that have a discrepancy?

The request and response appears similar to the JSON Mappings in our REST documentation with additional headers and information such as request Id. Here are logging instructions for our Java.NETPHPPythonRuby and Perl Ads API Client Libraries.

If you are using our REST interface then the full multi line curl command line is a request log and adding curl command line option '-i' will also generate a response log.

Once you have the logs, you can try to match them to a report screen in the Ads UI that has the same same row segmentation and filters. If you are experiencing a discrepancy between the Ads API output and the equivalent Ads UI screen then we are the support channel to pursue. If the reports from the Ads API match the Ads UI then I suggest you reach out to our product support team for further assistance.

With that being said, I can guess that the AdWords API worked differently, the Keywords Performance Report was a single attribution report that included more than just keywords, in your old non Performance Max campaigns the totals would be higher than in than in the equivalent Ads API keyword_view. The keyword_view resource will only show metrics that are associated with keywords.

Moreover, Performance Max campaigns don't yet support keywords nor do they have Ads objects and if you have recently changed over to Performance Max campaigns then the keyword reports and ads reports won't have any metrics from Performance max campaigns. The logs will give us certainty on my educated guesses.

Regards,

Google Logo
Aryeh
Google Ads API Team
 


ref:_00D1U1174p._5004Q2d4OuL:ref

Sven Braam

unread,
Aug 3, 2022, 9:45:24 AM8/3/22
to Google Ads API and AdWords API Forum
Thanks for your quick response.

Before I continue to do that, could you confirm that with the call cost.micro from the new google api - it should contain ALL costs covered from the account?

Op woensdag 3 augustus 2022 om 15:24:11 UTC+2 schreef adsapi:

Google Ads API Forum Advisor

unread,
Aug 3, 2022, 10:26:41 AM8/3/22
to sv...@sneleentaxi.nl, adwor...@googlegroups.com
Hi Sven,

I can only guess that cost.micro means metrics.cost_micros. Note that depending on filters, segmentation, report domain etc... the totals can be different. To definitively say that it should contain ALL costs covered from the account depends on too many variables. To clarify what is going on you can ask from your 3rd party Ads API access provider could you send us a 'DEBUG' log level request and response log of raw API communications showing the reports that have a discrepancy?


The request and response appears similar to the JSON Mappings in our REST documentation with additional headers and information such as request Id. Here are logging instructions for our Java.NETPHPPythonRuby and Perl Ads API Client Libraries.

If you are using our REST interface then the full multi line curl command line is a request log and adding curl command line option '-i' will also generate a response log.

Reply all
Reply to author
Forward
0 new messages