I'm passing the Developer Token in the GET request to fetch the MCC 
accounts. But I keep getting the below error even though I'm passing the 
required information.


    

"message": "developer-token parameter is missing



I tried making the request in different ways. But I'm unable to figure it 
out. Code is in Node JS 

V1: GET request 

var options = {
            url: 
'https://googleads.googleapis.com/v1/customers:listAccessibleCustomers',

               auth: {
                'bearer': access_token,
                    'developer-token':'XXXX_XXXXXXXXXX'
                 }

            };

        console.log('Access Token is - ', access_token);

        request(options, function(err, response) {
                console.log(response); 
            });



v2: GET request 

var bearerToken = 'Bearer '+ access_token;

 var options = {
           url: 
'https://googleads.googleapis.com/v1/customers:listAccessibleCustomers',

           headers: {
              'Authorization': bearerToken,
              'developer-token': 'XXXX_XXXXXXXXXX'
                }

        };



    request(options, function(err, response) {
                console.log(response); 
         });


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/dd3f1a29-c719-4f81-811c-12239882b10f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • develop... anirudh . maddy
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
    • Re... anirudh maddy
    • Re... anirudh maddy
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
        • ... anirudh maddy
    • Re... anirudh maddy
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to