Predicates should be ANDed together when multiple are used.  You need to 
specify a 
dateRange<https://developers.google.com/adwords/api/docs/reference/latest/AdGroupService.Selector#dateRange>when
 filtering using a metric such as clicks.  Please try adding a date 
range.

- Kevin Winter
AdWords API Team

On Monday, January 21, 2013 8:58:44 PM UTC-5, port80l...@gmail.com wrote:
>
> Hi 
>
> I am trying to get all ad groups in a campaign that have clicks greater 
> than zero. 
>
> here is the xml body
>
> <serviceSelector>
>   <fields>Id</fields>
>   <fields>Name</fields>
>   <fields>Clicks</fields>
>   <predicates>
>     <field>Clicks</field>
>     <operator>GREATER_THAN</operator>
>     <values>0</values>
>   </predicates>
>   <predicates>
>     <field>CampaignId</field>
>     <operator>EQUALS</operator>
>     <values>xxxxxxxx</values>
>   </predicates>
>   <ordering>
>     <field>Name</field>
>     <sortOrder>ASCENDING</sortOrder>
>   </ordering>
>   <paging>
>     <startIndex>0</startIndex>
>     <numberResults>5</numberResults>
>   </paging>
> </serviceSelector>
>
> But I get all the adgroups in the campaign.. its not filtered on clicks.. 
> does the predicate operator act as OR if i provide multiple?
>
> I am using the ruby gem for the api.. 
>
> Any thoughts would be much appreciated.. 
>

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