Problem with refresh token in Python

345 views
Skip to first unread message

dev...@simpleunion.com

unread,
Dec 25, 2013, 12:08:58 AM12/25/13
to adwor...@googlegroups.com
Hi there!

I'm using adwords_examples_python_15.11.1. I can run the example code correctly with a test account before.
But now, i use a production account, i setup it with the config.py code, and run the generate_refresh_token.py to get new token for the api.
With my Client Id and Client Secret, i received a link to get the verification code, when used it, i received a None refresh token, so i can not continue to setup my account with config.py.
Here is my command screen:
-----------------------------------------------------------------------------------------------------------------------------------------
          After approving the token enter the verification code (if specified).
          Code: 4/2Q4PX7rsGTM6qeXrnYdc-Gy6iXpc.MmF9LajRI3MeXE-sT2ZLcbQ1yxJQhgI
          OAuth 2.0 authorization successful!

          Your refresh token is: None
-----------------------------------------------------------------------------------------------------------------------------------------
I don't know that i did wrong somewhere. Anyone has encountered this situation yet? I need some help

Many thanks!

Danial Klimkin

unread,
Dec 30, 2013, 5:34:17 AM12/30/13
to adwor...@googlegroups.com
Hello,


Please make sure you are not logged in when opening the auth URL. When prompted, log in as your production AdWords account user.


-Danial, AdWords API Team.

Jagat Bhat

unread,
Jun 19, 2015, 4:00:47 AM6/19/15
to adwor...@googlegroups.com
Where do i get the Code to be specified. 

After approving the token enter the verification code (if specified).
 code : ????
please help me out.

Danial Klimkin

unread,
Jun 19, 2015, 6:12:51 AM6/19/15
to adwor...@googlegroups.com, jagat...@gmail.com
Hello Jagat,


The application should provide you an URL which you need to open in the browser. Make sure to be logged in as AdWords user.

Once opened, you will be requested to grant permission for this application to access your AdWords account. Upon grant, you'll see the code in the browser box, to be copy-pasted to the console.

I am closing this thread as it is 2 years old. Please feel free to open a new one should you have further questions.


-Danial, AdWords API Team.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages