OAuthException exception

33 views
Skip to first unread message

Michael

unread,
Jan 11, 2017, 2:11:11 PM1/11/17
to AdWords API Forum
HI team,

Beginning this morning, my application keep complaining OAuthException exception, it was normal last night but it's not working now. Here is the exception.

Caused by: com.google.api.client.auth.oauth2.TokenResponseException: 401 Unauthorized
at com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:105)
at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)
at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
at com.google.api.client.auth.oauth2.Credential.executeRefreshToken(Credential.java:570)
at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:362)
at com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
at com.google.api.ads.common.lib.auth.OAuth2Helper.callRefreshToken(OAuth2Helper.java:69)
at com.google.api.ads.common.lib.auth.OfflineCredentials.generateCredential(OfflineCredentials.java:172)
... 13 more

I tried to re-generate the token but it says the client has already be deleted, I don't know why, could you please help me with this issue. Thanks.

Best regards
Michael

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Jan 11, 2017, 5:48:45 PM1/11/17
to AdWords API Forum
Hi Michael, 

Could you please make sure that while you tried to generate the refresh token, you were logged onto the same account that was used to generate your OAuth credentials? If not, could you please try again. This time making sure that the logged in account is correct. 

Thanks,
Sreelakshmi, AdWords API Team


Michael

unread,
Jan 12, 2017, 2:03:12 PM1/12/17
to AdWords API Forum
Thanks Sreelakshmi, it got resolved.
Reply all
Reply to author
Forward
0 new messages