Hi, Just to confirm your findings, this filtering does work in production but not in sandbox as you found out.
Best, -David Torres - AdWords API Team On Saturday, September 29, 2012 8:49:02 AM UTC-4, Goran Jovic wrote: > > I am trying to set a predicate to filter only end advertiser account (i.e. > to filter out all master accounts). Apparently, this should be done by > filtering on field CanManageClients, but it doesn't seem to work, at least > not on sandbox. > > I tried it with version v201206 (sandbox) with Java client library. This > is my code: > > <pre> > Selector selector = new Selector(); > selector.setFields(new String[] { "CustomerId", "Name", "CurrencyCode", > "DateTimeZone", "Login", "CompanyName", "CanManageClients"}); > selector.setPaging(new Paging(offset, PAGE_SIZE)); > Predicate onlyEndUser = new Predicate("CanManageClients", > PredicateOperator.IN, new String[] {"false"}); > selector.setPredicates(new Predicate[]{onlyEndUser}); > > ManagedCustomerPage page = managedCustomerService.get(selector); > //..etc > </pre> > > The return list of ManagedCustomer objects always contains the root MCC > account, for which CanManageClients is "true". That should have been > eliminated by the predicate. > > Am I doing something wrong in the client code? Does this feature even work > on sandbox? > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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