Do I need a new Developer Token after upgrading from Python 2.7 to 3.x?

44 views
Skip to first unread message

Spencer Tichenor

unread,
Aug 29, 2016, 11:46:20 AM8/29/16
to AdWords API Forum
I just upgraded from Python 2.7 to 3.5 and now all of a sudden I get this weird error message when I try to run my program that updates my ads. It's like it isn't detecting the developer token in my googleads.yaml file.  Here's what it says:

Traceback (most recent call last):

  File "midsql.py", line 19, in <module>

    client = adwords.AdWordsClient.LoadFromStorage('~/documents/gnart/googleads.yaml')

  File "/Users/spencertichenor/Documents/pwnzone/env/lib/python3.5/site-packages/googleads/adwords.py", line 250, in LoadFromStorage

    cls._OPTIONAL_INIT_VALUES))

  File "/Users/spencertichenor/Documents/pwnzone/env/lib/python3.5/site-packages/googleads/common.py", line 147, in LoadFromStorage

    % (path, required_client_values, original_keys))

googleads.errors.GoogleAdsValueError: Your yaml file, /Users/spencertichenor/documents/gnart/googleads.yaml, is missing some of the required values. Required values are: developer_token, actual values are ['developer_token', 'client_customer_id', 'refresh_token', 'client_id', 'user_agent', 'client_secret']


Like what the heck because it says I'm missing the developer_token but then it lists developer_token in the actual values right after that. The program still works fine when I run it in a virtual environment in Python 2.7 though. 

Anthony Madrigal

unread,
Aug 29, 2016, 2:14:49 PM8/29/16
to AdWords API Forum
Hi Spencer,

Please have a look at this issue from our Github page. It seems that should give you a workaround for the issue. If you are still experiencing issues after the fix is pushed, please open up a new issue there so that their team can help you.

Cheers,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages