Hi!

I'm trying to get location names using the following code:

        Selector selector = new SelectorBuilder()
        .fields(
            "Id",
            "LocationName",
            "DisplayType",
            "CanonicalName",
            "TargetingStatus")
        .in("LocationName", locationName)

        .equals("Locale", "en")

        .build();


        // Make the get request.
        LocationCriterion[] locationCriteria = locationCriterionService.get(
selector);

And comparing results that I get in "CanonicalName" field - it's absolutely 
different from that I get 
using https://developers.google.com/adwords/api/docs/appendix/geotargeting 
page.

Factually "CanonicalName" that I got in runtime is equal to locationName 
while on web page it looks like this (for Paris):

*Paris,Ontario,Canada*
*Paris,Paris,Ile-de-France,France*
*Paris,Arkansas,United States*
*Paris,Idaho,United States*
*Paris,Illinois,United States*
*New Paris,Indiana,United States*
*Paris,Kentucky,United States*
*Paris,Maine,United States*
*South Paris,Maine,United State*

And for the runtime request:
            <rval>
                <location>
                    <id>1018992</id>
                    <Criterion.Type>Location</Criterion.Type>
                    <locationName>Paris</locationName>
                    <displayType>City</displayType>
                    <targetingStatus>ACTIVE</targetingStatus>
                     .....
                </location>
            *    <canonicalName>Paris</canonicalName>*
                <reach>13000</reach>
                <locale>en</locale>
                <searchTerm>Paris</searchTerm>
            </rval>

What is wrong with LocationCriterionService? Why it returns incorrect 
values for *canonicalName?*

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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
--- 
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 adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to