3
votes

I follow the step here: https://github.com/googleads/googleads-python-lib/wiki/Using-OAuth-2.0

  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 this example file: https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/authentication/generate_refresh_token.py

    CLIENT_ID = 'xxxxxxx.apps.googleusercontent.com'

    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.

I'm really new to this and please tell me what I missed. Thanks

1

1 Answers

0
votes

I suggest you generate a new client secret. It worked for me.