Hi,
It looks like you aren't constructing the SOAP XML correctly. The
SOAP body for this request should look like:
<get>
<selector>
<campaignStatuses>Active</campaignStatuses>
<campaignStatuses>Paused</campaignStatuses>
</selector>
</get>
You can see more examples here:
http://code.google.com/p/adwords-api-xml-samples/source/browse/#svn/trunk/src/v200906.
Best,
- Eric Koleda, AdWords API Team
On Sep 29, 7:23 am, sm1 <[email protected]> wrote:
> Hello,
>
> I am trying to get the list of all the Active and Paused campaigns.
> The SOAP request I am using is as follows:
> This request gives me all the campaigns in my account but I want it
> to be filtered.
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <SOAP-ENV:Envelope xmlns:namesp1="http://namespaces.soaplite.com/perl"
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-
> ENC="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" SOAP-ENV:encodingStyle="http://
> schemas.xmlsoap.org/soap/encoding/">
> <SOAP-ENV:Header>
> <RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
> v200906">
> <applicationToken xsi:type="xsd:string">********</authToken>
> <developerToken xsi:type="xsd:string">*******</developerToken>
> <useragent xsi:type="xsd:string">***********</useragent>
> </RequestHeader>
> </SOAP-ENV:Header>
> <SOAP-ENV:Body>
> <get>
> <selector xmlns="https://adwords.google.com/api/adwords/cm/v200906">
> <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>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> kindly let me know the exact format for filtering the get call on the
> status criteria as well as the ids criteria.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---