We receive error "Credential could not be refreshed" when sending request 
to get report data. Please help me to clear this issue, why did this issue 
happend and how can we need handle it?

Response error
jp.co.everrise.batch.error.GetReportException: 
com.google.api.ads.common.lib.exception.OAuthException: Credential could 
not be refreshed.
at 
jp.co.everrise.batch.service.GetReportAdwordsService.<init>(GetReportAdwordsService.java:50)
at 
jp.co.everrise.batch.multitasking.DownloadReportAdword.run(DownloadReportAdword.java:71)
Caused by: com.google.api.ads.common.lib.exception.OAuthException: 
Credential could not be refreshed.
at 
com.google.api.ads.common.lib.auth.OfflineCredentials.generateCredential(OfflineCredentials.java:240)
at 
jp.co.everrise.batch.util.AdwordsUtils.createOfflineCredentials(AdwordsUtils.java:56)
at 
jp.co.everrise.batch.service.GetReportAdwordsService.<init>(GetReportAdwordsService.java:48)
... 1 more
Caused by: com.google.api.client.auth.oauth2.TokenResponseException: 400 
Bad Request
{
  "error" : "invalid_grant",
  "error_description" : "Bad Request"
}
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:234)
... 3 more

Thank you very much. I hope to receive your response soon.
Du Doan.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8a5b9ab6-4765-4527-852a-b0d9b157446an%40googlegroups.com.

Reply via email to