-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get new access token sometime before expiry #27
Comments
You can trick the api client by modifying the date in the credentials which will give you a new token. This will temporarily get your feature working without changes to the api client. |
Ah ok. Thanks :) |
Actually, I'd like us to improve this. We need to add a library method to enforce the refresh. |
Anyone resolved this yet ?
|
Hi Sohair63, it's very likely this error is due to a local misconfiguration and not related to the enhancement here. Please reach out to the product (AdWords or DFP) support to look into your specific issue. |
Thanks @dklimkin |
This was added with the latest ads-common release. |
Hi,
I recently attended the Adwords API workshop in Hamburg, there it was mentioned that it is ok to get a new access token before it expires (lets say 45 mins after it is issued).
However if you look at the code for OAuth2 handler for the ruby client (oauth2_handler.rb) -
The code says that the token can be refreshed only after it is expired. See line 2 of get_token method.
Just wanted to check if this is intentional or a bug. For us it is important as we have built an OAuth2 service for all our client apps (like you recommended) and we want to send them fresh tokens not ones which are about to expire in 15 secs for example.
The text was updated successfully, but these errors were encountered: