Hello MT,

I just checked the 'get_client_customer_id.rb' example and it works 
perfectly for me. The XML code you are provided does not look like 
library-generated code though. Are you using our client libraries or 
generate the XML yourself?

The problem with your code is that the XML items need to me in a specific 
order. In any case, here is the library-generated code that succeeds:

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:wsdl="https://adwords.google.com/api/adwords/info/v201109"; 
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";>
  <env:Header>
    <wsdl:RequestHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201109";>
      <userAgent>AwApi-Ruby-0.4.3|./get_client_customer_id.rb</userAgent>
      <developerToken>****</developerToken>
      <authToken>****</authToken>
    </wsdl:RequestHeader>
  </env:Header>
  <env:Body>
    <get xmlns="https://adwords.google.com/api/adwords/info/v201109";>
      <selector>
        <wsdl:dateRange 
xmlns="https://adwords.google.com/api/adwords/cm/v201109";>
          <min>20111123</min>
          <max>20111123</max>
        </wsdl:dateRange>
        <clientEmails>****</clientEmails>
        <includeSubAccounts>true</includeSubAccounts>
        <apiUsageType>UNIT_COUNT_FOR_CLIENTS</apiUsageType>
      </selector>
    </get>
  </env:Body>
</env:Envelope>

Please re-consider using the client library though. 


-Danial, AdWords API Team.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to