Hi,

Firstly, for the best results we recommend following the use_oauth2.py 
example<https://code.google.com/p/google-api-ads-python/source/browse/trunk/examples/adspygoogle/adwords/v201302/misc/use_oauth2.py>shipped
 with the AdWords 
API Python client library <https://code.google.com/p/google-api-ads-python>.

Secondly, the flow.step1_get_authorize_url() method will return you a URL, 
which if you're using a CLI application, you'll need to output to stdout so 
that the user can copy the URL and paste it into their web browser. On 
successful authorization the web page will display a code for the user to 
copy and paste back into the application. This means you'll need to handle 
reading in this code from stdin. This is all demonstrated in the example.

Thirdly, it seems that you're passing in the path to the JSON file that 
contains the client secret. According to the OAuth2WebServerFlow 
object<https://code.google.com/p/google-api-python-client/source/browse/oauth2client/client.py#1154>,
 
the argument is the client secret. So you'd need to decode the json file 
and retrieve the client_secret from it.

Regards,

- Paul, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to