Hi, Thank you for your response!
I just submitted the verification of the app/ consent screen in the Google Cloud Platform, it is worth a shot. However I don't think this is the problem for the following reasons. The app worked on the linode server (with proper https protocol) only after some days it stopped working. If it was due to the app being in 'testing' I can just generate a new token en put that in there and call it a day. That is not the case. I generated a new token tested it on localhost and it still worked. Then when putting it online on the linode server, and then it is giving this error again. ``` google.auth.exceptions.RefreshError: ('invalid_grant: Token has been expired or revoked.', {'error': 'invalid_grant', 'error_description': 'Token has been expired or revoked.'}) ``` I will leave the token in there for now and wait on verification of the consent screen/ scope. If you have other suggestions please let me know since I cannot find anything online regarding this strange problem. Thank you in advance, Trespaan On Tuesday, July 2, 2024 at 5:04:45 AM UTC+2 Google Ads API Forum Advisor wrote: > Hi, > > Thank you for contacting the Google Ads API support team. > > By reviewing your concern, I understand that you're encountering an > "invalid_grant" error. According to the Google Ads API documentation > <https://developers.google.com/google-ads/api/docs/common-errors#google.auth.exceptions.refresherror>, > > 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 <https://developers.google.com/identity/protocols/oauth2#expiration> > expiring > in 7 days. Your Google project's publishing status is Testing so the > refresh token expires every 7 days and receives an invalid_grant error. > > You can follow the following steps to avoid this issue: > > - Go to the Google API Console and navigate to the OAuth consent > screen. > - Change the publishing status to “In production”. > > I hope this helps. > > > > > *This message is in relation to case "ref:!00D1U01174p.!5004Q02tJXGg:ref" > (ADR-00244770) Thanks,* > > [image: Google Logo] *Google Ads API Team* > *Register > <https://adsonair.withgoogle.com/events/performance-max-api-workshop> for > the upcoming workshop: Performance Max and the Google Ads API!* > > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/9a71f782-6054-4779-89c2-0c895fea15e4n%40googlegroups.com.