Hi Anirudh,
That error means that the developer token and the client-id/client-secret
from your Google Could project can't be used in the same request.
For a given Google Cloud project ID, the Google Ads API only allows you to
use one developer token. When you receive the above error it usually means
that in the past there was at least one request to the Google Ads API using
OAuth credentials from the same project ID and a *different* developer
token.
The most straightforward way to resolve this is to create a new Google
Cloud project ID, obtain OAuth credentials from a client under the new
project ID, and use those credentials in your requests with your developer
token.
Hope that helps!
Best,
Ben Karl, Google Ads API Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
https://ads-developers.googleblog.com/search/label/google_ads_api
https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
On 05/12/19 01:29:53 [email protected] wrote:
Hi,
I'm using the project created previously for Node (Type - Web Application).
However, as you suggested I created a new Project with Type - Others. Tried
it with OAuth2.0 Playground.
I'm getting the below error.
[image: GAdsError.png]
.
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/5d08b27a-3e50-49d0-8aca-0fc0d702d86b%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/5d08b27a-3e50-49d0-8aca-0fc0d702d86b%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ijlio0207800000103tcsc0003p8pkx6kmjcc1k60o30c1g68r30dpg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.