Hi, Further to what Alan told, the Java library guide is available at https://code.google.com/p/google-api-ads-java/wiki/OAuth2. Essentially, you have to generate a refresh token using OfflineCredentials application that comes with the distribution, then use that token instead of building the url and taking the user through the flow every time.
Cheers, Anash P. Oommen, AdWords API Advisor. On Tuesday, October 22, 2013 12:41:57 PM UTC+5:30, gshoihet wrote: > > Hello, > > I need to implement offline client access of Adwords API(Java). > > It seems that each time I need to execute this command : > > String authorizeUrl = > authorizationFlow.newAuthorizationUrl().setRedirectUri(CALLBACK_URL).build(); > > and then to past URL to browser and then enter the authorization code back > to my code. > > I feel that I miss something. > > Can you please provide example of best practice. > > > > Thanks a lot > > > > > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. For more options, visit https://groups.google.com/groups/opt_out.