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')])
flow.redirect_uri = 'https://www.example.com/oauth2callback'

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.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/572a2120-b7c0-43f1-bc55-8882023d15d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... sshaw . losasso
    • ... 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum
    • ... honnponn

Reply via email to