googleads / googleads-python-lib

The Python client library for Google's Ads APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Out of Band oAuth is being deprecated

feliperyan opened this issue · comments

The example at

_REDIRECT_URI = 'urn:ietf:wg:oauth:2.0:oob'
refers to the legacy Out of Band flow.

More info: https://developers.google.com/identity/protocols/oauth2/resources/oob-migration

Thanks for the report. The AdWords API is currently sunset, and we'll be making some adjustments to remove it from this library soon. One of the consequences is that this particular example will be removed.

@msaniscalchi any news?, can you provide an example of how to generate the refresh token?

Hello, sure, as I reported in my earlier message, we removed the related example given that it was for a sunset API that is no longer supported.

That said, if you're just looking for samples that step through OAuth 2.0 for the updated installed application flow, you might want to look to our other libraries for inspiration–for example, you could modify the generate_user_credentials.py sample used for the Google Ads API for other APIs that support that flow.

As an aside, although it is technically still possible, the installed application flow is not recommended for use with Ad Manager.