AttributeError: 'str' object has no attribute 'get'

938 views
Skip to first unread message

Shwetha

unread,
Oct 5, 2018, 7:15:07 PM10/5/18
to AdWords API and Google Ads API Forum
Hi all,

I am trying to use Adwords API to access campaigns and reports from Google ADs by using python client libraries. I got the developer token, client ID, client_secret and refresh token by following the necessary steps in the documentation. When I ran the get_campaigns.py, I came across this error- AttributeError: 'str' object has no attribute 'get'. Does this mean that my googleads YAML file is not configured properly? I am new to this. 

P.S - In general, I would like to understand YAML files better for configuring it in the right way. Are there any links for the same?


Kindly help me out on this.



AtrributeError.PNG

Dannison Yao (AdWords API Team)

unread,
Oct 7, 2018, 10:47:50 PM10/7/18
to AdWords API and Google Ads API Forum
Hi Shwetha,

Your concern appears to be more of a client library concern. With this said, I suggest you open your concern to the GitHub issue tracker as the product owners are better of assisting you with your concern.

Regards,
Dannison
AdWords API Team
Reply all
Reply to author
Forward
0 new messages