Hi Sh X, The error message is indeed correct, we do encourage you to migrate to the OAuth2<http://googleadsdeveloper.blogspot.co.uk/2013/07/oauth2-in-ads-apis.html>authentication mechanism. For single users, you can use the installed application flow<https://developers.google.com/accounts/docs/OAuth2InstalledApp>, which allows you to authenticate once. The benefits of switching to OAuth2 include increased security, better fraud protection and removal of CAPTCHA<http://en.wikipedia.org/wiki/CAPTCHA>challenges. For documentation on switching to OAuth2, please see the Using OAuth2 wiki page<https://code.google.com/p/google-api-ads-python/wiki/Using_OAuth2> .
That said, the deprecation message you were seeing is only a warning and shouldn't interrupt application flow. ClientLogin has officially been deprecated since mid 2012, which means that migration away from it as soon as possible is strongly encouraged. The terms of service mention that April 2015 is the latest that ClientLogin will continue to work. Regards, - Paul, AdWords API Team. On Sunday, 11 August 2013 13:23:24 UTC-4, sh X wrote: > > my python code connects to google-adwords this way: > *client = AdWordsClient(path=secrets_path)* > > after upgrading to API version 201306, we started to get deprecation > warnings > > >>> client = AdWordsClient(path=secrets_path) > *__main__:1: DeprecationWarning: ClientLogin is deprecated. Please use > OAuth 2.0* > > 1. I thought OAuth 2 is used to authenticated 3rd party users, or "3-leg > authentication". > But in my case there are no users. It's only me connecting directly to > google. > Why, then, am I being suggested to use OAuth 2? > > 2. I was reading here that the "old" login method will continue until 2015 > https://developers.google.com/accounts/terms > Is that correct in my case? > > > Thank you > > (BTW, i've read several discussions about this topic but none of them > invloved python, and besides, they were utterly confusing: different type > cases, older versions, different language and settings) > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [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/groups/opt_out.
