Failed to refresh access token

52 views
Skip to first unread message

g...@algomizer.com

unread,
Jan 23, 2017, 3:07:16 AM1/23/17
to AdWords API Forum
Hi,
we sometimes get this error:
Failed to refresh access token.
{
  "error" : "invalid_grant"
}

It first happened after more than a year with our token and second we recreated a token and it happened again after about 1.5 months.

Does anybody know why it happens? How can we prevent it?
Thanks,
Guy 

Peter Oliquino

unread,
Jan 23, 2017, 4:18:41 AM1/23/17
to AdWords API Forum
Hi Guy,

I would recommend that you recreate your refreshToken by following this guide. Please let me know if this works.

Thanks and regards,
Peter
AdWords API Team

r...@algomizer.com

unread,
Mar 8, 2017, 8:13:38 AM3/8/17
to AdWords API Forum
Hello Peter,

We recreated the RefreshToken again using the guide and it did work.
Meanwhile, this problem started reproducing about once a month.
Recreating the token works every time.

However, we didn't see in the guide a way to do the whole process of recreacting a refresh token automatically.
We can't seem to bypass the manual Google authentication through the browser (this is a web application client).

Did we miss something or there's simply no way to catch that error and automatically recreate the refresh token?

Thanks,
Ran.

Peter Oliquino

unread,
Mar 8, 2017, 10:14:08 PM3/8/17
to AdWords API Forum
Hi Ran,

The error you experienced was a temporary issue and is very unusual to occur. Even so, catching the error is possible once implemented at your end, however, automatically recreating the refresh token is currently not possible as it is only generated manually. Additionally, could you confirm as well if as you said, you experience this issue once every month? If yes, I would recommend that you create a new forum thread and we'll continue our discussion from there.
Reply all
Reply to author
Forward
0 new messages