Hello, Please take a look at our common errors page <https://developers.google.com/adwords/api/docs/common-errors#QuotaCheckError.INVALID_TOKEN_HEADER> for this message and make sure that you double check that your developer token and namespacing are correct. If that doesn't help resolve the problem, please include your generated SOAP request in addition to the response so I can take a closer look. Make sure you strip out any sensitive data.
Regards, Mike, AdWords API Team On Thursday, November 20, 2014 10:54:25 AM UTC-5, [email protected] wrote: > > 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/f9f704c1-96be-476a-b386-0c259463954e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
