Hi,

When setting up your OAuth2 credentials 
<https://developers.google.com/adwords/api/docs/guides/authentication>, we 
recommend the installed application flow 
<https://github.com/googleads/googleads-python-lib/wiki/API-access-using-own-credentials-(installed-application-flow)#step-2---setting-up-the-client-library>
 app 
type for this. I would suggest to follow the guides on the links that I 
provided. Then, once done with the setup, you may try some basic operations 
here 
<https://developers.google.com/adwords/api/docs/samples/python/basic-operations>
 and 
let me know if it works.

Thanks and regards,
Luis
AdWords API Team

On Tuesday, August 28, 2018 at 4:54:08 AM UTC+8, sshaw.losasso wrote:
>
> 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/f2d2a8a6-8147-466f-84c0-8bcad210f03e%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