I'm trying to fetch a customer ID for an email (based on this example:
http://code.google.com/p/google-api-ads-ruby/source/browse/adwords_api/examples/v201109/get_client_customer_id.rb),
my request is:

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
   <soap:Header>
      <RequestHeader xmlns="https://adwords.google.com/api/adwords/
info/v201109" xmlns:cm="https://adwords.google.com/api/adwords/cm/
v201109">
         <cm:authToken>XXXX</cm:authToken>
         <cm:developerToken>XXXX</cm:developerToken>
         <cm:userAgent>XXXX</cm:userAgent>
      </RequestHeader>
   </soap:Header>
   <soap:Body>
      <get xmlns="https://adwords.google.com/api/adwords/info/v201109";
xmlns:cm="https://adwords.google.com/api/adwords/cm/v201109";>
         <selector>
            <apiUsageType>UNIT_COUNT_FOR_CLIENTS</apiUsageType>
            <clientEmails>XXXX</clientEmails>
            <dateRange>
               <cm:min>20111001</cm:min>
               <cm:max>20111001</cm:max>
            </dateRange>
         </selector>
      </get>
   </soap:Body>
</soap:Envelope>

I get this error:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</
faultcode><faultstring>Unmarshalling Error: cvc-complex-type.2.4.d:
Invalid content was found starting with element 'clientEmails'. No
child element is expected at this point. </faultstring></soap:Fault></
soap:Body></soap:Envelope>

What's wrong with the request?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

Reply via email to