I'm getting the below error.
curl -H "Authorization: Bearer MYACCESSTOKEN" -H "developer-token:MYTOKEN" -H
"Content-Type: application/json" https:
//googleads.googleapis.com/v1/customers:listAccessibleCustomers
curl: (3) Port number ended with '?'
curl: (3) Port number ended with ' '
On Tuesday, 7 May 2019 16:03:54 UTC+5:30, anirudh maddy wrote:
>
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/f42d0977-90b2-4bb9-93ca-4776022accb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.