How to get all money-type metrics

101 views
Skip to first unread message

Reem Gawad

unread,
Jan 9, 2024, 7:07:33 PM1/9/24
to Google Ads API and AdWords API Forum
Hello, 

I am trying to fetch from the API all metrics that are returned in micros. I saw in this previous answer the following was stated:
"please note that Fields of type Money are returned in micro currency units (micros) in the API"

How do I query for this Money field type through the Google Ads API? I need to be able to differentiate metrics returned in micros from all other metric types.

Thank you

Reem Gawad

unread,
Jan 10, 2024, 11:41:01 AM1/10/24
to Google Ads API and AdWords API Forum
To illustrate, if I make the following query to get all metrics selectable with a Campaign: "SELECT name, attribute_resources, data_type, metrics WHERE name = 'campaign'"

How can I then identify from the metrics returned which ones are cost-related/Money related? Or which metrics will be returned in micros? Do you have an example of a query we can make to get this information for metrics?

Thank you.

Reem Gawad

unread,
Jan 31, 2024, 3:05:09 PM1/31/24
to Google Ads API and AdWords API Forum
Hello, just following up here. Could you confirm whether this is currently possible through the Google Ads API?

Zweitze

unread,
Feb 1, 2024, 7:53:50 AM2/1/24
to Google Ads API and AdWords API Forum
This is probably possible but not using Google Ads API.

The libraries are largely created automatically. I think the sources to create the data classes (for campaigns, groups etc.) are also included in the library source - a long time ago I had to check something in the .NET library source, downloaded these sources and started studying. In there I found documentation how to create or update these data classes. (I didn't check these document, I was checking for some weird bug.)

So I suggest to download a library of your choice from GitHub, and study how these are created. You may also contact the library maintainers for help.

I hope this helps.
If you get results this way, would you give feedback here too?

Google Ads API Forum Advisor

unread,
Feb 1, 2024, 9:57:57 AM2/1/24
to zwe...@gmail.com, adwor...@googlegroups.com
Hi,

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

Could you further elaborate on what exactly you are looking for from the Google Ads API support team? If possible, please share the related screenshots or error screenshots for further investigation.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02ryjiJ:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages