Cost metrics documented but not found

25 views
Skip to first unread message

Dirk Heijnen

unread,
Sep 23, 2020, 6:13:45 AM9/23/20
to AdWords API and Google Ads API Forum
Hi everybody,

I'm trying to query the cost metric of the campaign_performace, adgroup_performance and ad_performace reports. I'm using python for this:

Pythonads.PNG

All other metrics get queried properly but when i add metrics.cost it fails.
Pythonads2.PNG

But in all 3 reports types the cost is documented:
Pythonads3.PNG

Does anyone know a solution so I can query the cost?

Kind regards,
Dirk Heijnen

Google Ads API Forum Advisor Prod

unread,
Sep 23, 2020, 2:54:53 PM9/23/20
to dirkhe...@gmail.com, adwor...@googlegroups.com
Hi Dirk,

Thanks for reaching out. Can you please confirm if you are downloading a report via AdWords API or Google Ads API ? I took a look at your screenshot in the code you are using Google ads api and the document page is in the Adwords api.

Thanks,
Google Logo
Nirmitabahen Gaurav Patel
Google Ads API Team
 

 

ref:_00D1U1174p._5004Q25WAbQ:ref

Dirk Heijnen

unread,
Sep 30, 2020, 5:25:02 AM9/30/20
to AdWords API and Google Ads API Forum
Hi,

I was using the Google Ads API, but i see that i was looking at the Adword api docs, this was my mistake.

Kind regards,
Dirk Heijnen

Op woensdag 23 september 2020 om 20:54:53 UTC+2 schreef adsapiforumadvisor:

Google Ads API Forum Advisor Prod

unread,
Sep 30, 2020, 12:42:26 PM9/30/20
to dirkhe...@gmail.com, adwor...@googlegroups.com
Hi Drik,

Glad to help you,  If you have any additional questions or require further clarification, do not hesitate.
Reply all
Reply to author
Forward
0 new messages