Hi, At this time LocationCriterionService <https://developers.google.com/adwords/api/docs/reference/v201406/LocationCriterionService> only supports filtering by *LocationName* or *Id*.
As an alternative to filtering by *DisplayType*, you could download our CSV file <https://developers.google.com/adwords/api/docs/appendix/geotargeting> containing a complete snapshot of locations and filter locally, e.g., by type and parent location ID. Cheers, Josh, AdWords API Team On Friday, July 25, 2014 12:07:48 PM UTC-4, Dzmitry Zahusta wrote: > > I'm trying to limit the number of returned values for example for > "California" string by filtertering by DisplayType. > > The first logical attempt to use > > Selector selector = new SelectorBuilder() > .fields( > "Id", > "LocationName", > "DisplayType") > .in("LocationName", locationName) > .equals("DisplayType", "state") > .equals("Locale", "en") > .build(); > > LocationCriterion[] locationCriteria = locationCriterionService. > get(selector); > > Not working as DisplayType is not filterable for Locations. Any other > ideas to filter locations by state/city? > > Thank you in advance! > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
