googleads.yaml error

547 views
Skip to first unread message

Ravi Gopalan

unread,
Jul 2, 2020, 7:05:22 AM7/2/20
to AdWords API and Google Ads API Forum
At the line below

adwords_client = adwords.AdWordsClient.LoadFromStorage('/file_path_ to_googleads.yaml')

I get an error
GoogleAdsValueError: Given yaml file, ~googleads.yaml , could not find some keys. The "adwords" configuration is missing

This is the error when accessing adwords client from a GCE VM.
However, I dont get this error when accessing from Python client on Mac terminal 

Is there a different format required to access the adwords client from a Google Virtual Machine?

Google Ads API Forum Advisor Prod

unread,
Jul 6, 2020, 2:32:47 PM7/6/20
to ra...@abillionveg.com, adwor...@googlegroups.com
Hi Ravi,

Thank you for reaching out. This sounds like an issue with the client library itself so I would recommend posting your question to the GitHub issues page here. Their team will be more equipped to assist you.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5004Q21B6H6:ref

J F

unread,
Sep 2, 2020, 7:54:15 AM9/2/20
to AdWords API and Google Ads API Forum
I got this error message..
GoogleAdsValueError: Given yaml file, ~googleads.yaml , could not find some keys. The "adwords" configuration is missing

..because the "googleads.yaml" configuration file requires a section "adwords", unlike the classic  "adwords.yaml" file for the AdWords API. An example for a valid format can be found here 
https://github.com/googleads/googleads-python-lib/blob/master/googleads.yaml

Hope that helps someone

Google Ads API Forum Advisor Prod

unread,
Sep 2, 2020, 12:03:29 PM9/2/20
to adwor...@googlegroups.com
Hi J F,

Thank you for the update. Are you encountering issues? If so, could you elaborate further so that I may assist you?

Thank you,

Google Logo
Bryan Li
Google Ads API Team
 


ref:_00D1U1174p._5004Q21B6H6:ref
Reply all
Reply to author
Forward
0 new messages