Can't get refresh token

85 views
Skip to first unread message

johanne...@chads.io

unread,
Sep 29, 2014, 8:05:31 AM9/29/14
to adwor...@googlegroups.com
I'm using Ruby v201402 and I've never had problems generating a refresh token for OAuth2. Today (29.09) I needed to authorize a new Adwords Account (the last one was authorized 3 weeks ago) and it just doesn't work. I get an auth token and I can access the Adwords Account with this token but I don't get a refresh_token.

Also when performing the authorize operation (through the https://accounts.google.com/o/oauth2/auth URL) I don't see a page where the requested permissions are listed. I'm instantly redirected back to my application.

Any help is appreciated.

Best regards
  Johannes

johanne...@chads.io

unread,
Sep 29, 2014, 10:33:13 AM9/29/14
to adwor...@googlegroups.com
So a short update. I used a different MCC-Admin user to grant permission and this time it worked. Now I don't know why it is not working with the other account. It used to work for years. And the account is still very much active and I can login and work with it as MCC-Admin.

johanne...@chads.io

unread,
Sep 29, 2014, 11:08:12 AM9/29/14
to adwor...@googlegroups.com
Update 2: Using a new MCC-Account only works for one Adwords Account. Authorizing a second Adwords Account does not work, or better: does not generate a refresh_token. Of course the most prominent difference is the immediate redirect without the permissions page.


On Monday, September 29, 2014 2:05:31 PM UTC+2, johanne...@chads.io wrote:

Ray Tsang (AdWords API Team)

unread,
Sep 29, 2014, 5:55:05 PM9/29/14
to adwor...@googlegroups.com
Johannes,

Have you had a chance to review the AdWords API authentication guide?
You would be able to authorize multiple users to access a MCC.  A refresh token can be associated to a user.

Thanks,

Ray

johanne...@chads.io

unread,
Sep 30, 2014, 5:40:28 AM9/30/14
to adwor...@googlegroups.com
Hello Ray,

thanks for answering. Yes I did review the guide (a long time ago and recently as well). My problem seems to have to do with OAuth2 Incremential Auth but I can't be sure. Only thing I know for sure is this: when I see the permissions page and can click on the grant Button everything works (I get a refresh_token). If I don't get this permissions page I get no refresh_token, but I can acccess the data via the API with the returned token, it's just missing the refresh_token.

Best regards
  Johannes

Ray Tsang (AdWords API Team)

unread,
Sep 30, 2014, 3:06:22 PM9/30/14
to adwor...@googlegroups.com
Johannes,

Refresh token is issued when you request offline access.  Please see if this will work.

Thanks,

Ray

johanne...@chads.io

unread,
Sep 30, 2014, 3:10:04 PM9/30/14
to adwor...@googlegroups.com
Hi Ray,

thanks again. I'm requesting offline access. Never requested anything else.

Best regards
  Johannes
Reply all
Reply to author
Forward
0 new messages