Hi Andy, According to the OAuth 2.0 documentation <https://developers.google.com/identity/protocols/OAuth2#expiration>, there is currently a limit of 50 refresh tokens per user account per client. If the limit is reached, creating a new refresh token automatically invalidates the oldest refresh token without warning and which is most likely what you're experiencing.
If you need to authorize multiple programs, machines, or devices, one workaround is to limit the number of clients that you authorize per user account to 15 or 20. If you are a Google Apps admin, you can create additional admin users and use them to authorize some of the clients. Sincerely, Dane AdWords API Team On Wednesday, October 17, 2018 at 7:40:47 AM UTC+8, Andy wrote: > > We've been at it for weeks and can't solve the issue. Some users can auth > for our app with no issues, others get the error: >> >> *Something wrong! Error occured while connect with Adwords >> acccount!Client error: `POST https://oauth2.googleapis.com/token` >> <https://oauth2.googleapis.com/token> resulted in a `400 Bad Request` >> response: { "error": "invalid_grant", "error_description": "Bad Request* > > > We've tried everything we can think of, we can't find any correlation to > the accounts that fail and the ones that work. It seems random and without > reason. Any help would be greatly appreciated. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "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+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/85acd103-ce8c-445a-9074-d72c1769dcc1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.