Hi Pravin, You mentioned "I want to generate refresh token each time", but you only need to generate a *refresh token* *once* for each user whose credentials you want to use. When generating the refresh token, you should set the *access_type* to offline <https://developers.google.com/identity/protocols/OAuth2WebServer#offline> so that you can retrieve new *access tokens* without reprompting the user.
If you generate a new *refresh token* every time, you are likely to run into the limit on the # of active refresh tokens -- see section 4 - "Refresh the access token, if necessary" <https://developers.google.com/identity/protocols/OAuth2#basicsteps> of the OAuth guide. Thanks, Josh, AdWords API Team On Tuesday, April 12, 2016 at 6:49:27 AM UTC-4, Pravin Yadav wrote: > > Hi, >> > > Yes i generated it manually using OAuth2 Console's OAuth2ClientId > & OAuth2ClientSecret and then it stored it in database and used it in my > application but it temporary it's not useful in web service it need to > generate automatically after once run Web Service code because my > service execute back-end(background Process run anytime) and it's offline. > > > in my service i want generate refresh token each time when my > service run so token need to generate automatically (offline) and replace > each time it in table's column of my database. > > Some days ago this work properly worked with above(Delegate) code > but now it not generated refresh token (generated only access token) i need > refresh token. > > So please reply the same. > > > 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/6d2f00b7-d9c4-41bc-8f00-d0e41f2466b8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.