API Worked for months now get this error { "error": "invalid_grant", "error_description": "Bad Request" } Fatal error: Uncaught exception 'OAuth2Exception' with message '{ "error": "invalid_grant", "error_description": "Bad Request" }
23 views
Skip to first unread message
shend...@dealerocket.net
unread,
Jan 1, 2018, 4:09:16 PM1/1/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
PLUS, I have the SAME script running for 5 other of my adwords accounts. 2 give this error, the others run fine.
What the heck happened? Anywhere I should start? Thanks!
Luis Xander Talag (AdWords API Team)
unread,
Jan 1, 2018, 11:12:17 PM1/1/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Hi Shenderson,
The invalid_grant error normally occurs due to expired refreshToken.To resolve this issue, you may try to regenerate the refreshToken and the OAuth2 credentialsusing an email address which currently has access to your AdWords account and then retry the request again.
Should the issue persist, could you provide which email address you used when you generate your credentials and your clientCustomerId so I can investigate further (for security purposes, kindly reply privately to author with your details)?
Thanks and regards,
Xander
AdWords API Team
shend...@dealerocket.net
unread,
Jan 2, 2018, 10:22:37 AM1/2/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Hello Luis, yes I figured out the same thing yesterday.
It would sure be nice if the API would be a bit more precise in it's error messaging.
A message stating "Your refreshToken has expired, please regenerate a new refreshToken and update your script"
That would have saved me hours........
Luis Xander Talag (AdWords API Team)
unread,
Jan 2, 2018, 10:09:21 PM1/2/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Hi Shenderson,
Thanks for your suggestion, I'll try and create a feature request regarding this, but we can't guarantee when and whether the feature will be implemented soon. For now, you may keep an eye on our blog for updates.