invalid_grant temporary error

50 views
Skip to first unread message

Jan Đonny Záruba

unread,
Aug 28, 2021, 2:14:51 PM8/28/21
to AdWords API and Google Ads API Forum
Hello,

Yesterday, 27th August, for several hours seems that there was some issue on Google side as all already existing refresh tokens stopped working for seemingly no reason and reauthorization for several hours didn't make any change. Suddenly everything started working again. 
Are you aware of any issue on your side regarding this issue?

There were two error messages returned from Google:

{  "error": {  "code": 401,  "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",  "status": "UNAUTHENTICATED" }

{  "error": "invalid_grant",  "error_description": "Bad Request" }

Google Ads API Forum Advisor

unread,
Aug 31, 2021, 5:11:57 PM8/31/21
to dzon...@gmail.com, adwor...@googlegroups.com
Hi Jan,

Thank you for reaching out to us with your question. The invalid grant error occurs because of a mismatch of credentials and tokens. We would recommend clearing the cache and using the newly generated refresh token.

Regards,
Google Logo
William Pescherine
Google Ads API Team
 

 

ref:_00D1U1174p._5004Q2MjdhR:ref

Jan Đonny Záruba

unread,
Aug 31, 2021, 7:06:36 PM8/31/21
to AdWords API and Google Ads API Forum
Dear William,

I am aware when this error happens and this wasn't that case. Tokens which were working just fine suddenly stopped working (without any change on our side!) and new ones couldn't be generated for few hours. After those few hours everything went back to normal. 
There is no cache involved from our side.

We're trying to find out why this happened. Was there any outage/issue on your side?

Regards,
Jan

Mhmoudahmdmohmmd homydt

unread,
Aug 31, 2021, 7:08:20 PM8/31/21
to ads...@forumsupport.google, dzon...@gmail.com, adwor...@googlegroups.com


653

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/vI-5s000000000000000000000000000000000000000000000QYQ2VJ00YraRhr3OT5aqeaVNn6POJg%40sfdc.net.

Google Ads API Forum Advisor

unread,
Sep 1, 2021, 1:47:50 AM9/1/21
to dzon...@gmail.com, adwor...@googlegroups.com
Hi Jan,

Thank you for your follow up. I work with William and allow me to assist you as well.

Regarding outages, our team is not aware of any that may have caused issues related to authentication. For this, I would recommend that you reach out to the Google API Console support team, via this link, for further information on what may have caused your credentials to fail.

Also, if you haven't yet, you can refer to this documentation for information on what may cause your fresh tokens to become invalid.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2MjdhR:ref

Mhmoudahmdmohmmd homydt

unread,
Sep 1, 2021, 2:21:02 AM9/1/21
to ads...@forumsupport.google, dzon...@gmail.com, adwor...@googlegroups.com


653
Reply all
Reply to author
Forward
0 new messages