Google Adword API generate fresh token using generate_refresh_token.py, Please help

163 views
Skip to first unread message

Will Tian

unread,
Jan 7, 2016, 9:03:15 AM1/7/16
to AdWords API Forum

I'm really new to this and after hours of trying, nothing works. Please tell me what I missed. Thanks


I follow the step here:

1. Log in google developers console
2. Create project, then credentials, then acquired the client ID and client secret
3. Install the googleads through pip and download the library: https://github.com/googleads/googleads-python-lib
4. Put in client ID and client secret in: generate_refresh_token.py. 

    CLIENT_SECRET = 'xxxxxxxxxxxxxxxxx'

5. Then I run the generate_refresh_token.py
And I got the following error message:
    raise AttributeError('No client_id or client_secret specified.')
    AttributeError: No client_id or client_secret specified.


Yin Niu

unread,
Jan 7, 2016, 9:45:55 AM1/7/16
to AdWords API Forum
Hello, 

What you can do is to comment out the following two lines: 

if args.client_id == CLIENT_ID or args.client_secret == CLIENT_SECRET:
  raise AttributeError('No client_id or client_secret specified.')

Thanks, 
Yin, AdWords API Team. 
Reply all
Reply to author
Forward
0 new messages