I am Trying to set up Adwords API through Java, All the steps are going 
good but in last step while running GetCampaigns.java , Its giving several 
errors
"Exception in thread "main" 
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 
adwords.axis.v201705.basicoperations.GetCampaigns.main(GetCampaigns.java:46) 
Caused by: com.google.api.client.auth.oauth2.TokenResponseException: 400 
Bad Request { "error" : "invalid_grant" } 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)
 
... 1 more"

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
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/2122e213-1940-43a5-82ec-d25615142787%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Facing issue... rahul
    • Re: Fac... 'Milind Sankeshware (AdWords API Team)' via AdWords API Forum

Reply via email to