Hi Pravin,

Since your refresh token is becoming invalid after 3600 seconds = 1 hour, 
that suggests that you are *not* setting *access_type* to *offline* in your 
request to generate the refresh token. Please double check the step that 
generates 
the initial request 
<https://developers.google.com/identity/protocols/OAuth2WebServer#offline> 
and make sure that you pass *access_type=offline* there.

Thanks,
Josh, AdWords API Team

On Wednesday, April 13, 2016 at 12:44:57 AM UTC-4, Pravin Yadav wrote:
>
>
>
> Hi Josh,
>>
>
>               Ok, But in my application if i generate refresh token 
> manually using "Google AdWords API Project OAuthTokenGenerator" and then 
> stored it in my database and later access it in web service for 3600 (Sec) 
>                   time it working properly not showing any error but after 
> 3600(Sec) it showing error.
>
>               *Failed to refresh access token.*
> *              {*
> *                  "error" : "invalid_grant"*
> *              }*
>
>               Then what will be the problem even access token generated 
> each time new and i have refresh token then here no need to show error. But 
> refresh token is expired after 3600(Sec) and it not generated               
>               automatically, but when create refresh token manually then 
> working properly for 3600(Sec).  
>
>        Then what should i need to do give me any solution. 
>
>             
>  
>
>> Thanks & Regards,
>>
>>   Pravin Yadav
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c7da646a-929e-4f25-885e-a9dfc2334761%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to