Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential

937 views
Skip to first unread message

Thien Tran

unread,
Aug 15, 2021, 6:55:12 AM8/15/21
to AdWords API and Google Ads API Forum
Hi, 

I'm using Google Ads Api and follow this document https://developers.google.com/google-ads/api/docs/start. But i got the authentication failed issue.

{ "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https:\/\/developers.google.com\/identity\/sign-in\/web\/devconsole-project.", "code": 16, "status": "UNAUTHENTICATED", "details": [ { "@type": "google.ads.googleads.v6.errors.googleadsfailure-bin", "data": "<Unknown Binary Data>" }, { "@type": "grpc-status-details-bin", "data": "<Unknown Binary Data>" }, { "@type": "request-id", "data": "feAcN0Pr2ap5iWrpDaC-rA" } ] }

Here is my code for making first call
Selection_403.png

I'm sure the refresh token and access token are generated correctly because I tried to use them in another service and it works fine
Selection_404.png

Selection_405.png
How can I resolve it?

Thanks,


Google Ads API Forum Advisor

unread,
Aug 16, 2021, 5:45:24 AM8/16/21
to tranngoc...@gmail.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to us.

Could you provide us with the complete request and response logs with the request-id, so our team can better check?

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 may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Regards,

Google Logo
Yasar
Google Ads API Team
 


 

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