I'm trying to get started with adwords api but am unable to authenticate.
I am using python. When I run:
flow = google_auth_oauthlib.flow.Flow.from_client_secrets_file(
'client_secret.json', scope=[oauth2.GetAPIScope('adwords')])
I get an error
TypeErrorTraceback (most recent call last)
<ipython-input-56-a189d83c6118> in <module>()
1 flow = google_auth_oauthlib.flow.Flow.from_client_secrets_file(
----> 2 'client_secret.json', scope=[oauth2.GetAPIScope('adwords')])
3 flow.redirect_uri = 'https://www.example.com/oauth2callback'
TypeError: from_client_secrets_file() takes exactly 3 arguments (2 given)
I read that sometimes if you download sqlparse it fixes this but I tried that and it didn't work. My googleads.yaml file is stored on my home directory and I have my client_id, client_secret, and refresh_token filled out.
Any idea what is wrong?
Thanks.