Hi, The CustomerService (and ManagedCustomerService) are in the MCM namespace. However, the SOAP headers are shared between all namespaces and are in the CM namespace. You'll need another xmlns entry for the CM namespace and make sure the RequestHeader, authToken, developerToken, etc are in this namespace. They currently have a v20 prefix, placing them in the MCM namespace - which means the server looks for this tag in the CM namespace, doesn't find it and returns this error.
You might want to consider using the client libraries which handle this for you. - Kevin Winter AdWords API Team On Thursday, September 6, 2012 4:09:18 PM UTC-4, Reed wrote: > > Trying to call the CustomerService. The auth token I am using is good - I > just did a call to the campaign service with it and it worked just fine. > But the error I'm getting makes it look like the auto token is bad. Anyone > see anything wrong in this? > thanks > reed > > SOAP: > <?xml version="1.0" encoding="UTF-8"?> > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:v20="https://adwords.google.com/api/adwords/mcm/v201206"> > <soapenv:Header> > <v20:RequestHeader> > <v20:authToken>xyzzy > </v20:authToken> > <v20:developerToken>xyzzy > </v20:developerToken> > <v20:userAgent>V201206 Get customer info > </v20:userAgent> > </v20:RequestHeader> > </soapenv:Header> > <soapenv:Body> > <v20:get> > <v20:serviceSelector> > <v20:fields>customerId > </v20:fields> > <v20:fields>currencyCode > </v20:fields> > <v20:fields>dateTimeZone > </v20:fields> > <v20:fields>descriptiveName > </v20:fields> > <v20:fields>canManageClients > </v20:fields> > </v20:serviceSelector> > </v20:get> > </soapenv:Body> > </soapenv:Envelope> > > Posted to > https://adwords.google.com/api/adwords/mcm/v201206/CustomerService > > RESPONSE: > > <soap:Envelope > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader > > xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201206" xmlns=" > https://adwords.google.com/api/adwords/mcm/v201206"><ns2:requestId>0004c90dee2392080a14310e00005663</ns2:requestId><ns2:serviceName>CustomerService</ns2:serviceName><ns2:methodName>get</ns2:methodName><ns2:operations>0</ns2:operations><ns2:responseTime>117</ns2:responseTime><ns2:units>0</ns2:units></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[AuthenticationError.LOGIN_COOKIE_REQUIRED > > @ ; trigger:'<null>']</faultstring><detail><ApiExceptionFault xmlns=" > https://adwords.google.com/api/adwords/mcm/v201206" xmlns:ns2=" > https://adwords.google.com/api/adwords/cm/v201206"><ns2:message>[AuthenticationError.LOGIN_COOKIE_REQUIRED > > @ ; > trigger:'<null>']</ns2:message><ns2:ApplicationException.Type>ApiException</ns2:ApplicationException.Type><ns2:errors > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="ns2:AuthenticationError"><ns2:fieldPath></ns2:fieldPath><ns2:trigger><null></ns2:trigger><ns2:errorString>AuthenticationError.LOGIN_COOKIE_REQUIRED</ns2:errorString><ns2:ApiError.Type>AuthenticationError</ns2:ApiError.Type><ns2:reason>LOGIN_COOKIE_REQUIRED</ns2:reason></ns2:errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope> > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
