Request is missing required authentication credential

135 views
Skip to first unread message

alexmc...@gmail.com

unread,
Feb 7, 2022, 6:21:39 AM2/7/22
to Google Ads API and AdWords API Forum
Hi,

I'm currently trying to migrate our system from the old AdWords API to the Google Ads API and I've hit a bit of a wall trying to make the first call. I'm just using the GetKeywordStats example and as far as I can see everything is fine in terms of OAuth, we get an access token which we then try to use in the call but this throws an exception telling us we're missing the required credentials.

"StatusCode="Unauthenticated", Detail="Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential."

I'm not sure whether this is more an account setup/user access issue rather than us simply missing credentials like the error says but we're using the same setup we've been successfully using with the AdWords API for years, the only difference being that we created a new ClientID within the same google dev console project. Appreciate this is a new API and also the fact that I only really look at this stuff when it desperately needs upgrading so any feedback is welcome :)

I've got logs ready to send if somebody could get back to me on this please, cheers!

Alex

Google Ads API Forum Advisor

unread,
Feb 7, 2022, 3:53:25 PM2/7/22
to alexmc...@gmail.com, adwor...@googlegroups.com
Hello,

Thanks for reaching out. Can you please privately reply with your complete request and response logs so that we can see the full context of the error?

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


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