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?
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.