Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential with Google Ads API request

5,130 views
Skip to first unread message

anirudh maddy

unread,
Oct 11, 2018, 7:14:33 AM10/11/18
to AdWords API and Google Ads API Forum
Here is my code in Node Js

                                var newAcessToken = getGoogleAccessToken(refresh_token);
        
                                 var bearerToken = 'Bearer '+ newAcessToken;

                                 var url =  'https://googleads.googleapis.com/v0/customers/XXXXXXXXXX?key=XXXXXXXXXXXXXX';

                                var  options = {
                                  url: url,
                                  headers: {
                                    'Authorization': bearerToken,
                                    'Accept': '*/*',
                                    'developer-token':  'XXXXXXXXXXXX',
                                  }
                                };


I'm getting Request is missing required authentication credential. 

Teja Makani

unread,
Oct 11, 2018, 2:13:30 PM10/11/18
to AdWords API and Google Ads API Forum
Hello Anirudh,

Looks like there is one more thread created for the same issue. To avoid confusion lets continue the discussion on that thread.

Regards,
Sai Teja, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages