Hi,
I use Google Ads API java client library v201605
Today, I I tried to generate a credential using a refresh token, but disn't
work. I obtain this exception:
com.google.api.ads.common.lib.exception.OAuthException: Credential could not
be
refreshed.
at com.google.api.ads.common.lib.auth.OfflineCredentials.
generateCredent
ial(OfflineCredentials.java:178)
at Processor$DownloadReport.report(DownloadReport.java:48)
at Processor.processRow(Processor.java:242)
at org.pentaho.di.trans.steps.userdefinedjavaclass.
UserDefinedJavaClass.
processRow(UserDefinedJavaClass.java:1181)
at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50)
at java.lang.Thread.run(Unknown Source)
Caused by: com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad
Req
uest
{
"error" : "invalid_grant"
}
at com.google.api.client.auth.oauth2.TokenResponseException.from(
TokenRe
sponseException.java:105)
at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(
TokenR
equest.java:287)
at com.google.api.client.auth.oauth2.TokenRequest.execute(
TokenRequest.j
ava:307)
at com.google.api.client.auth.oauth2.Credential.executeRefreshToken(
Cred
ential.java:570)
at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.
execute
RefreshToken(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(
OAut
h2Helper.java:69)
at com.google.api.ads.common.lib.auth.OfflineCredentials.
generateCredent
ial(OfflineCredentials.java:172)
... 5 more
NB: Before, it worked fine with the same parameters.
Regrads,
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/6c5c4b24-bb4b-4577-99e3-e36035337e8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.