"eror": "invalid_grant", "error_description": "Bad Request"

105 views
Skip to first unread message

Saeed Rehman

unread,
Jun 28, 2022, 8:21:37 AM6/28/22
to Google Ads API and AdWords API Forum
   'body' => '{ "error": "invalid_grant", "error_description": "Bad Request" }
hi i am facing this error can any one guide me

Google Ads API Forum Advisor

unread,
Jun 28, 2022, 8:33:46 AM6/28/22
to saeedre...@gmail.com, adwor...@googlegroups.com

Hi Saeed,

Thank you for reaching out to our API support team.

To help you in your concern, could you please provide the complete request and response logs, with the request-id? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.You can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead. Let me know if you have any questions.


Best regards,

Google Logo
Anthony Cyril
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cE0Aj:ref

Saeed Rehman

unread,
Jun 28, 2022, 9:27:41 AM6/28/22
to Google Ads API and AdWords API Forum
thanks for responding . i already send you all the detail using auther option.

Google Ads API Forum Advisor

unread,
Jun 28, 2022, 10:05:07 AM6/28/22
to saeedre...@gmail.com, adwor...@googlegroups.com
Hi Saeed,

Thank you for the reply.

Moving forward, The "invalid_grant” error usually indicates an issue with the refresh token. That said, you will need to regenerate credentials and refresh tokens. You may refer here to this guide for the steps on how you can regenerate credentials and refresh tokens.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


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