Seems this is issue with our proxy server, our proxy server changing the 
url and that causes this refresh token expire issue. We fixed it in our 
side. 

Thanks!
Hari. 

On Friday, September 22, 2017 at 11:11:00 PM UTC+5:30, Bharani Cherukuri 
(AdWords API Team) wrote:
>
> Hello Hari, 
>
> To rule out issues with the client library or your *ads.properties* file, 
> could you issue the access token request via curl as follows?
>
> curl --data "grant_type=refresh_token" \
>      --data "refresh_token=*YOUR_REFRESH_TOKEN*" \
>      --data "client_id=*YOUR_CLIENT_ID*" \
>      --data "client_secret=*YOUR_CLIENT_SECRET*" \
>      https://www.googleapis.com/oauth2/v4/token
>
> You won't be using curl to get access tokens from your app, but this will 
> tell us if the refresh token, client ID, and client secret you're using are 
> valid. 
>
> Thanks,
> Bharani, AdWords API Team
>
>
> On Wednesday, September 20, 2017 at 8:36:50 AM UTC-4, hari krishna wrote:
>>
>> Hi,
>>
>>  We are getting Credential could not be refreshed error  occasionally. We 
>> are using java client library version  v201708.
>>
>> I generated new refreshToken also but that did not work to solve the 
>> issue permanently. 
>>
>> Can you please help us to resolve this issue permanently. 
>>
>> Below is the stack trace.
>>
>> [20 Sep 2017 05:15:42,370-AdwordsDataServicesImpl:ERROR:main] Error in 
>> getting AdwordsSession with given credentials
>> 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:229)
>> at 
>> com.aaa.adwords.services.AdwordsDataServicesImpl.generateAdwordsSession(AdwordsDataServicesImpl.java:57)
>> at com.aaa.adwords.Application.main(Application.java:52)
>> Caused by: com.google.api.client.auth.oauth2.TokenResponseException: 401 
>> Authorization Required
>> 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:223)
>> ... 2 more
>>
>> Thanks!
>> Hari. 
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/79acf4af-08cc-4edd-9eb7-952d552e27b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to