On Thursday 25 March 2010, Joshua J. Kugler elucidated thus:
> > Pete is correct, you need to need to pass in an empty selector. 
> > Here is an example using the PHP client library:
> >
> > http://code.google.com/p/google-api-adwords-php/source/browse/trunk
> >/e xamples/v200909/GetAllCampaigns.php
> >
> > Also, ensure that the selector element has the correct namespace or
> > else it won't be recognized by the API server.
>
> Thanks for all your replies.  I figured out that my SOAP library
> (suds, in this case) is not sending an empty object, which the
> adwords API requires.  I'll talk to the suds developers to see how to
> work around this.

Jeff Ortel (the suds maintainer) helped me with this on IRC (THANK YOU 
JEFF!) and we ended up figuring out this gave me the desired behavior:

selector = client.factory.create('CampaignSelector')
selector.statsSelector = ' '
print client.get(selector)

Yes, you read right: that is setting statsSelector to a space.  It then 
sends this to google:

   <ns1:Body>
      <ns0:get>
         <ns0:selector>
            <ns0:statsSelector> </ns0:statsSelector>
         </ns0:selector>
      </ns0:get>
   </ns1:Body>

And google is perfectly happy with that: it returns all campaigns, all 
statistics.

Thanks again Jeff and all the others for all your help!

j

-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0x73B13B6A

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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

To unsubscribe from this group, send email to 
adwords-api+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to