Issue - "error": "invalid_grant", "error_description": "Bad Request"

71 views
Skip to first unread message

NICOLE HAN

unread,
Jun 18, 2021, 4:02:09 AM6/18/21
to AdWords API and Google Ads API Forum
Hello,
I ended up with the error below when I tested GetCampaigns.php from the PHP client library.
It worked fine with my test account, but went wrong with the production account.

111.png


Any help is appreciated.
Thank you.

Google Ads API Forum Advisor

unread,
Jun 21, 2021, 3:22:33 PM6/21/21
to mido...@gmail.com, adwor...@googlegroups.com
Hi,

This error occurs because of a mismatch of credentials and tokens. I would recommend clearing the cache and using the newly generated refresh and access token pair.

https://developers.google.com/google-ads/api/docs/oauth/client-library

Thanks,

Google Logo
Lakshmi Prathipati
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Iwlbv:ref
Reply all
Reply to author
Forward
0 new messages