Hey Thanks Michael, when i use the namespace /cm/v201409 i get the 
following body error.

"root": {

    "Envelope": {

      "Body": {

        "Fault": {

          "faultcode": "soap:Server",

          "faultstring": "Unmarshalling Error: unexpected element 
(uri:\"https://adwords.google.com/api/adwords/cm/v201409\";, 
local:\"RequestHeader\"). Expected elements are 
<{https://adwords.google.com/api/adwords/
mcm/v201409}ApiExceptionFault>,<{https://adwords.google.com/api/adwords/mcm/v201409}RequestHeader>,<{https://adwords.google.com/api/adwords/mcm/v201409}ResponseHeader>,<{https://adwords.google.com/api/adwords/mcm/v201409}get>,<{https://adwords.google.com/api/adwords/mcm/v201409}getResponse>,<{https://adwords.google.com/api/adwords/mcm/v201409}mutate>,<{https://adwords.google.com/api/adwords/mcm/v201409}mutateResponse>"

        }

      }

    }

On Friday, November 21, 2014 9:47:16 AM UTC-5, Michael Cloonan (AdWords API 
Team) wrote:
>
> Hello,
>
> I understand that you are not using one of our client libraries. The 
> common errors still apply to all SOAP requests, however, not just ones 
> generated by our provided client libraries. That is why I want to see your 
> SOAP request, so I can make sure that the XML is properly formatted and 
> namespaced, and that the developer token is valid. Please respond directly 
> to me by clicking "reply to author" including the unedited XML SOAP request 
> so I can look into this.
>
> One thing of note is that you are using .../mcm/v201409 in the header's 
> namespace. This should be .../cm/v201409, even if you're making requests 
> against services in mcm. That may help resolve your issue.
>
> Regards,
> Mike, AdWords API Team
>
> On Thursday, November 20, 2014 5:08:43 PM UTC-5, [email protected] wrote:
>>
>> Hey Michael,
>>
>> I am doing the Soap requests in node JS therefore using a node js client 
>> for this and not one of the ones provided.
>>
>> var 
>> url='https://adwords.google.com/api/adwords/mcm/v201409/CustomerService?wsdl';
>> soap.createClient(url,function(err,client) {
>>    client.addSoapHeader({RequestHeader: {
>>       developerToken: "XXXXXXXXXXXXX",
>>       userAgent: "API Project"
>>    }},"","ns1","https://adwords.google.com/api/adwords/mcm/v201409";);
>>    client.setSecurity(new soap.BearerSecurity(accessToken));
>>    client.get({},function(err,res){
>>       console.log(err);
>>       console.log(res);
>>    })
>> });
>>
>> the client is specified here: https://github.com/vpulim/node-soap
>> the last two parameters in the addSoapHeader function are Namespace 
>> Prefix and Namespace.
>>
>> Would that be it?
>>
>> Also i have had problems with my billing information, after the 
>> credentials are logged in and I submit it, I get an error message where it 
>> says the engineers have been notified....
>>
>> Would that be the cause of the invalid_header_token error?
>>
>> Thanks.
>>
>>
>> On Thursday, November 20, 2014 2:34:40 PM UTC-5, Michael Cloonan (AdWords 
>> API Team) wrote:
>>>
>>> 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/974cfd6c-00db-4d9e-bfb0-d4b05e9f3db0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to