Will the Desktop Oauth flow our application uses to contact Google Ads API stop working:
Please note, the java lib we use to communicate with Google is:
com.google.api-ads
artifact Id: google-ads
version: 19.0.0
|
||||||
Hi Lawrence,
Thanks for getting back to us.
Kindly note that for the OAuth2 desktop app flow, you can persist a refresh token (which never expires) to obtain a new access token whenever necessary. When using one of our client libraries, you can authorize your app by filling out a configuration file. Since you are using Java, then you may use our latest client library which already migrated from OOB to redirect URL, and for local testing that's compatible with the default configuration in our client library examples, use http://127.0.0.1. You may also add a port number to your redirect URI to restrict usage to a specific port. If the port is not set, an OAuth client can redirect to any port. For Desktop app clients, you will still use a loopback IP redirect, but the URI is not explicitly configured in the Cloud console.
With regards to verification, our documents says “We recommend that all apps undergo the Google OAuth verification process as soon as possible to avoid any business interruptions.”
For information on OAuth Verification, and how to verify your projects, please refer to the below links:
However, if your app is going to be used in any of the following scenarios, you do not need to submit it for review:
Let us know how this goes on your end.
Regards,
|
||||||
Hi Lawrence,
Thanks for getting back to us.
With regards to persisting refresh token, based on this documentation, a Google Cloud Platform project with an OAuth consent screen configured for an external user type and a publishing status of "Testing" is issued a refresh token expiring in 7 days.
Also, if you set the publishing status to "Testing" so the refresh token expires every 7 days and receives an “invalid_grant” error. Note that OAuth2 access expires after a limited time, an OAuth2 refresh token is used to automatically renew OAuth2 access.That being said, please go to the Google API Console and navigate to the OAuth consent screen and then change the publishing status to “In production” to avoid the refresh token expiring in 7 days. If you have further questions on the OAuth expiration, we highly suggest that you reach out to the Google API console support team via this API Console Help link.
Regards,