Hi,

looks like your are using v201008 CampaignSelector in v201101
CampaignService that uses generic selectors.

For new selectors please see Selector Migration
Reference<http://code.google.com/apis/adwords/docs/selectorguide.html>
.

Your XML should look something like this:

<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/cm/v201101
">
      <authToken>**auth-token**</authToken>
      <clientEmail>**client-email**</clientEmail>
      <developerToken>**developer-token**</developerToken>
      <userAgent>**user-agent**</userAgent>
    </RequestHeader>
  </soap:Header>
  <soap:Body>
    <get xmlns="https://adwords.google.com/api/adwords/cm/v201101";>
      <serviceSelector>
        <fields>Id</fields>
        <fields>Name</fields>
        <fields>Status</fields>
        <fields>StartDate</fields>
        <fields>EndDate</fields>
        <fields>Amount</fields>
        <predicates>
          <field>Status</field>
          <operator>NOT_EQUALS</operator>
          <values>DELETED</values>
        </predicates>
      </serviceSelector>
    </get>
  </soap:Body>
</soap:Envelope>

On Thu, May 19, 2011 at 11:22 PM, Chris <[email protected]> wrote:

> So I'm working with Savon and am trying to pass XML.  Haven't tried
> this method before but the client libraries no longer work for Ruby
> 1.9.2.  I'm just trying to make an intial request, anything basic and
> this is what I have so far (Error: XML_STREAM_EXC):
>
> <?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/cm/
> v201101" xmlns:env="http://schemas.xmlsoap.org/soap/
> envelope/"><env:Header><ns2:authToken>***authtoken***</
> ns2:authToken><ns2:developerToken>***developer_token***</
> ns2:developerToken><ns2:userAgent>***useragent***</ns2:userAgent></
> env:Header><env:Body><get>        <selector xmlns="https://
> adwords.google.com/api/adwords/cm/v201101">
>        <CampaignSelector xsi:type="CampaignSelector">
>        <campaignStatuses xsi:type="SOAP-ENC:Array" SOAP-
> ENC:arrayType="xsd:string[2]">
>        <item xsi:type="xsd:string">Active</item>
>        <item xsi:type="xsd:string">Paused</item>
>        </campaignStatuses>
>        </CampaignSelector>
>        </selector>
> </get></env:Body></env:Envelope>
>
> I'm sure it may look terrible but any help would be much appreciated.
> Thanks!
>
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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
>



-- 
AdWords API in C# / VB.NET
<http://www.gemboxsoftware.com/Ppc/Overview.htm> adCenter
API in C# / VB.NET <http://www.gemboxsoftware.com/Ppc/Overview.htm> -
GemBox.Ppc component

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