Hey,

I am getting an Invalid Token Header whenever i try to make an API Call.

I am using NodeJS for this and creating the soap requests manually using a 
client called node-soap

I am setting the header like so...

RequestHeader:{
developerToken:"XXXXXXXXXXXXXXXXXX",
userAgent:"MyAppName"
}

I am not setting the customerClientId because the purpose of this web app 
is for clients to export their data into an external database. Is there 
anything i am doing wrong?
This is the response.

<soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Header><ResponseHeader
 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201409"; 
xmlns="https://adwords.google.com/api/adwords/mcm/v201409";><ns2:requestId>0005084c430c10110ae0d8c4d8002aa6</ns2:requestId><ns2:serviceName>CustomerService</ns2:serviceName><ns2:methodName>get</ns2:methodName><ns2:operations>0</ns2:operations><ns2:responseTime>40</ns2:responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[QuotaCheckError.INVALID_TOKEN_HEADER
 
@ ]</faultstring><detail><ApiExceptionFault 
xmlns="https://adwords.google.com/api/adwords/mcm/v201409"; 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201409";><ns2:message>[QuotaCheckError.INVALID_TOKEN_HEADER
 
@ 
]</ns2:message><ns2:ApplicationException.Type>ApiException</ns2:ApplicationException.Type><ns2:errors
 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="ns2:QuotaCheckError"><ns2:fieldPath></ns2:fieldPath><ns2:trigger></ns2:trigger><ns2:errorString>QuotaCheckError.INVALID_TOKEN_HEADER</ns2:errorString><ns2:ApiError.Type>QuotaCheckError</ns2:ApiError.Type><ns2:reason>INVALID_TOKEN_HEADER</ns2:reason></ns2:errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d684371d-02ff-47bf-aa3c-0fc7f40b003d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to