Hi Aradhya, 1. Unfortunately, the old Java library does not support OAuth 2.0. You can find a guide on migrating to the new library<https://github.com/googleads/googleads-java-lib/wiki/Migrating-from-the-old-Java-client-library>at the new library's GitHub page. 2. Yes, you can access the services without using the client library, but it is significantly more complicated, since you have to deal with SOAP directly. It is strongly recommended that you stick with one of the client libraries we provide. 3. If you do migrate to the new library, here's an example<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/auth/CreateAdWordsSessionWithoutPropertiesFile.java>of how to use it without using the ads.properties file. 4. The library will automatically refresh the access token for you.
Regards, Mike, AdWords API Advisor On Tuesday, March 25, 2014 3:28:15 AM UTC-4, Aradhya Tripathi wrote: > > Hi, > > I am currently using the old java library and API v201309. I am migrating > to OAuth now, so I have the following questions: > > > 1. Is it possible to use OAuth with the old java library? I would > avoid upgrading the library if I can. > 2. Can I access the services without using the client library? > 3. All examples use the ads.properties file. However, I will not be > using the ads.properties file. > I will be storing my credentials in the database. How can I create a > Credential and AdWordsSession from values obtained from the database? > 4. Will be the access token be automatically refreshed? Do I need to > do something to enable this feature? > > Thanks, > Aradhya > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
