Hi Keith, AdGroupAdSelector doesn't have an idFilters field, see http://code.google.com/apis/adwords/docs/reference/v201003/AdGroupAdService.AdGroupAdSelector.html. Here's a valid request xml that works for retrieving Ads of a single campaign, limited by numberResults.
<?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/cm/ v201003"> <applicationToken>******</applicationToken> <authToken>******</authToken> <clientEmail>******</clientEmail> <developerToken>******</developerToken> <userAgent>******</userAgent> </RequestHeader> </soap:Header> <soap:Body> <get xmlns="https://adwords.google.com/api/adwords/cm/v201003"> <selector> <campaignIds>174018016</campaignIds> <paging> <numberResults>1</numberResults> </paging> </selector> </get> </soap:Body> </soap:Envelope> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/ v201003"> <requestId>46d3308278dfc5716f59b13d15e53778</requestId> <operations>1</operations> <responseTime>1087</responseTime> <units>1</units> </ResponseHeader> </soap:Header> <soap:Body> <getResponse xmlns="https://adwords.google.com/api/adwords/cm/ v201003"> <rval> <totalNumEntries>2</totalNumEntries> <Page.Type>AdGroupAdPage</Page.Type> <entries> <adGroupId>1860337336</adGroupId> <ad xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TextAd"> <id>5909289736</id> <url>http://www.example.com</url> <displayUrl>www.example.com</displayUrl> <approvalStatus>FAMILY_SAFE</approvalStatus> <trademarkDisapproved>false</trademarkDisapproved> <Ad.Type>TextAd</Ad.Type> <headline>Check</headline> <description1>This out</description1> <description2>This is absolutely cool</description2> </ad> <status>ENABLED</status> <stats> <network>SEARCH</network> <Stats.Type>AdStats</Stats.Type> <percentServed>0.0</percentServed> </stats> </entries> </rval> </getResponse> </soap:Body> </soap:Envelope> Cheers, Anash P. Oommen, AdWords API Advisor. On Feb 2, 4:51 am, Keith Pettersen <[email protected]> wrote: > Sending: > <?xml version="1.0" encoding="utf-8"?> > <SOAP-ENV:Envelope > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:tns="https://adwords.google.com/api/adwords/cm/v201003" > xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"> > <SOAP-ENV:Header> > <tns:RequestHeader> > <tns:applicationToken > xsi:type="xsd:string">################</tns:applicationToken> > <tns:authToken > xsi:type="xsd:string">#########################</tns:authToken> > <tns:clientEmail xsi:type="xsd:string">###@####.com</tns:clientEmail> > <tns:developerToken > xsi:type="xsd:string">################</tns:developerToken> > <tns:userAgent xsi:type="xsd:string">RedZoneGlobal</tns:userAgent> > <tns:validateOnly xsi:type="xsd:boolean">false</tns:validateOnly> > </tns:RequestHeader> > </SOAP-ENV:Header> > <SOAP-ENV:Body> > <get xmlns="https://adwords.google.com/api/adwords/cm/v201003"> > <tns:selector> > <tns:idFilters> > <tns:campaignIds>51001761</tns:campaignIds> > </tns:idFilters> > <tns:paging> > <tns:startIndex xsi:type="xsd:int">0</tns:startIndex> > <tns:numberResults xsi:type="xsd:int">5000</tns:numberResults> > </tns:paging> > </tns:selector> > </get> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > > The API completely ignores the Campaign ID Filter, asking only for creatives > in CampaignID 51001761, and returns back 20,261 results, ignoring the Number > of Results set to 5,000 > > Also, the entire result set is creatives from deleted campaigns on this > account. No creatives from live campaigns/adgroups are returned. > Help? :) -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
