Hello,
I've built an internal API to retrieve historical metrics for keywords using a Python/Flask application. After thoroughly programming and testing it on my localhost, everything worked perfectly: the client loaded correctly, and metrics were returned as expected. I then deployed the repository on my Linode server, where the Google Search Console API was already running. Initially, both the search console and Google Ads routes worked fine. However, after five days, the Google Ads route started returning the following error: ``` google.auth.exceptions.RefreshError: ('invalid_grant: Token has been expired or revoked.', {'error': 'invalid_grant', 'error_description': 'Token has been expired or revoked.'}) ``` I've attempted various methods to resolve this issue: - Loading the client differently - Generating a new refresh token - Verifying the API key Despite these efforts, the application continues to work flawlessly on localhost but not on the Linode server. Has anyone encountered this problem before or have any suggestions on what to check next? Thanks! -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/2a976722-dd50-4020-8cb0-269904e74c82n%40googlegroups.com.