How to make a call mcc test account when my Developer token not approved.

1,788 views
Skip to first unread message

vikas...@globussoft.com

unread,
Sep 25, 2015, 1:50:40 AM9/25/15
to AdWords API Forum
I'm getting Developer Token Not Approved in soap api response.
This is my soap api request in nodejs

var url='https://adwords.google.com/api/adwords/mcm/v201506/CustomerService?wsdl';
soap.createClient(url,function(err,client) {
  if (err) throw err;
  // console.log(client);
   client.addSoapHeader({RequestHeader: {
      developerToken: "MyDevToken", //Developer Token of my mcc production acc
      userAgent: "XXXXX"
   }},"","ns1","https://adwords.google.com/api/adwords/mcm/v201506");
   client.setSecurity(new soap.BearerSecurity(accessToken));
   client.get({},function(err,res){
      console.log(err);
      console.log(res);
   })

I'm getting this xml response as "Developer Token Not Approved"

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns:ns2="https://adw
ords.google.com/api/adwords/cm/v201506" xmlns="https://adwords.google.com/api/adwords/mcm/v201506"><ns2:requestId>0005208bc933a020
0abcd4491f069f57</ns2:requestId><ns2:serviceName>CustomerService</ns2:serviceName><ns2:methodName>get</ns2:methodName><ns2:operati
ons>0</ns2:operations><ns2:responseTime>342</ns2:responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soa
p:Server</faultcode><faultstring>[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:\'&lt;null&gt;\']</faultstring><detail>
<ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/mcm/v201506" xmlns:ns2="https://adwords.google.com/api/adwords/cm
/v201506"><ns2:message>[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:\'&lt;null&gt;\']</ns2:message><ns2:ApplicationEx
ception.Type>ApiException</ns2:ApplicationException.Type><ns2:errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:typ
e="ns2:QuotaCheckError"><ns2:fieldPath></ns2:fieldPath><ns2:trigger>&lt;null&gt;</ns2:trigger><ns2:errorString>QuotaCheckError.DEV
ELOPER_TOKEN_NOT_APPROVED</ns2:errorString><ns2:ApiError.Type>QuotaCheckError</ns2:ApiError.Type><ns2:reason>DEVELOPER_TOKEN_NOT_A
PPROVED</ns2:reason></ns2:errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>


i know my developer token status is pending.but i dont know how to call mcc test account or how to link my production acc with my test acc.

Umesh Dengale

unread,
Sep 25, 2015, 10:25:13 AM9/25/15
to AdWords API Forum
Hello,

You are getting the QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED error because you are trying to access a production account with unapproved developer token(Pending approval status). However, you could make the API call to your test AdWords account with developer token with pending approval status. Please check out our Test MCC account guide and create the test manager account and test AdWords account. You could use the test AdWords account client id (as client customer id in ads.properties file for Java client library) while making the API call.

The production manager account and test manager account or test AdWords account can not be linked. Please check out testing with production data section of test account guide.

Cheers,
Umesh, AdWords API Team.

Scott

unread,
Sep 25, 2015, 2:32:47 PM9/25/15
to AdWords API Forum

Hi Umesh,

i have one doubt can i get client customer id using api after user authorization.
 

Umesh Dengale

unread,
Sep 25, 2015, 3:07:57 PM9/25/15
to AdWords API Forum
Hello,

The client customer id is the AdWords account id for which you are adding/updating AdWords data. Please check out our basic concepts document for more details.
Reply all
Reply to author
Forward
0 new messages