Google Ads API Error Request

1,774 views
Skip to first unread message

Cone baking MEC

unread,
Feb 7, 2021, 10:00:41 PM2/7/21
to AdWords API and Google Ads API Forum
Dear  friend,
My  object  Google Ads API  level is Basic Access ,I want use GoogleAdsService.Search get data,but callback error "Status(StatusCode="Unavailable", Detail="Getting metadata from plugin failed with error: Exception occurred in metadata credentials plugin. Google.Apis.Auth.OAuth2.Responses.TokenResponseException: Error:"invalid_grant", Description:"Bad Request""  I don't know the reason. Please help me.
Thank you.

111.png
222.png

Google Ads API Forum Advisor Prod

unread,
Feb 9, 2021, 1:27:05 AM2/9/21
to meccon...@gmail.com, adwor...@googlegroups.com
Hi,

Thanks for posting your concern.

It appears that you've already raised this issue in another thread and I already responded there. However, I will also post my reply on this forum thread.

I can see that you encountered the invalid_grant error and the reason why this error is occurring is when access or refresh token being passed in your request is incorrect / invalid / expired. With this, please try generating a new set of OAuth credentials by following the guide here which includes getting of OAuth2 refresh token and configuring client library.

Please also configure your C# client library by following this guide, for logging API transactions, so that you can provide the complete request and response logs with request ID if you encounter further errors / issues.

Regards
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


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