Hi, Please see another thread. https://groups.google.com/d/topic/adwords-api/IwIfnVWULxs/discussion
Best, - Takeshi, AdWords API Team On Saturday, December 15, 2012 9:55:47 PM UTC+9, Kapil wrote: > > Hey Takeshi , > > I'm new to adwords api. Can you please help me with an issue. I'm trying > to retrieve OAuth 2.0 credentials using this link:- > > > https://developers.google.com/academy/apis/drive/drive-apps/auth/credentials#retrieve_oauth_20_credentials > > There is a function in this program:- static Userinfo > getUserInfo(Credential credentials) > > Inside that function if you will look at the first line:- > Oauth2 userInfoService = Oauth2.builder(new NetHttpTransport(), new > JacksonFactory()).setHttpRequestInitializer(credentials).build(); > > I'm trying to run it in eclipse with all possible libraries. But it is > giving me an *ERROR*:- The method builder(NetHttpTransport, > JacksonFactory) is undefined for the type Oauth2 > > Could you please help me so that I can rectify this issue. > > Thanks, > Kapil > > On Friday, December 14, 2012 6:45:11 PM UTC+5:30, Takeshi Hagikura > (AdWords API Team) wrote: >> >> Hi, >> >> Are you using one of our client libraries? >> If so, it depends on the client library how to auto refresh the authToken. >> >> For example, Java's case, enabling "api.adwords.refreshOAuth2Token" true >> allows you refresh the token. >> >> http://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/resources/ads.properties >> >> Best, >> - Takeshi, AdWords API Team >> >> On Tuesday, December 11, 2012 1:48:44 AM UTC+9, Damien wrote: >>> >>> Hi, >>> >>> We miss clear explanations tu use OAuth2 for server to server >>> application. >>> How to not change my token every time my app starts ? >>> >>> Thanks. >>> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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