I am using the below code (taken from the code examples) to get a set of 
locations. The returned data contains invalid results. (In this example, 
Rock City, TN is returned). Can someone please tell me what I am doing 
wrong? Thank you.

            var predicate1 = new Media.Predicate
            {
                field = "LocationName",
                @operator = Media.PredicateOperator.IN,
                operatorSpecified = true,
                values = new[] {"Paris", "Quebec", "Spain", "Deutschland"}
            };

            var predicate2 = new Media.Predicate
            {
                field = "Locale",
                @operator = Media.PredicateOperator.EQUALS,
                values = new[] { "en" },
                operatorSpecified = true
            };

            var selector = new Media.Selector
            {
                predicates = new[] { predicate1, predicate2 },
                fields = new[] { "Id", "LocationName", "CanonicalName", 
"DisplayType",
          "ParentLocations", "Reach" }
            };
       
            var locations = lservice.get(selector);

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