According to the example: lookup_location.py 
<https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201702/targeting/lookup_location.py>,
 
I can see the selector like this when I need to find the location ID:

location_names = ['Paris']
selector = {
      'fields': ['Id', 'LocationName', 'DisplayType', 'CanonicalName', 
'ParentLocations', 'Reach', 'TargetingStatus'],
      'predicates': [{
          'field': 'LocationName',
          'operator': 'IN',
          'values': location_names
      }, {
          'field': 'Locale',
          'operator': 'EQUALS',
          'values': ['en']
      }]
  }


The printed results:
The search term 'Paris' returned the location 'Paris' of type 'City' with 
parent locations 'Ile-de-France (Region), France (Country)', reach 
'20800000' and id '1006094' (ACTIVE)
The search term 'Paris' returned the location 'Paris' of type 'Department' 
with parent locations 'Ile-de-France (Region), France (Country)', reach 
'20800000' and id '9040871' (ACTIVE)
The search term 'Paris' returned the location 'Charles de Gaulle Airport' 
of type 'Airport' with parent locations 'Ile-de-France (Region), France 
(Country)', reach '512000' and id '9059985' (ACTIVE)
The search term 'Paris' returned the location 'Paris' of type 'City' with 
parent locations 'Texas (State), United States (Country)', reach '73000' 
and id '1026678' (ACTIVE)
The search term 'Paris' returned the location '75012' of type 'Postal Code' 
with parent locations 'Ile-de-France (Region), France (Country)', reach 
'7080000' and id '9056136' (ACTIVE)
The search term 'Paris' returned the location '89109' of type 'Postal Code' 
with parent locations 'Nevada (State), United States (Country)', reach 
'4640000' and id '9030795' (ACTIVE)
The search term 'Paris' returned the location 'Paris' of type 'City' with 
parent locations 'Tennessee (State), United States (Country)', reach 
'54000' and id '1026100' (ACTIVE)
The search term 'Paris' returned the location 'Orly Airport' of type 
'Airport' with parent locations 'Ile-de-France (Region), France (Country)', 
reach '247000' and id '9041209' (ACTIVE)
The search term 'Paris' returned the location 'Paris' of type 
'Neighborhood' with parent locations 'Ontario (Province), Canada 
(Country)', reach '20000' and id '1002378' (ACTIVE)
The search term 'Paris' returned the location 'Paris' of type 'City' with 
parent locations 'Kentucky (State), United States (Country)', reach '31000' 
and id '1017861' (ACTIVE)

So I know the filterable fields include: *Locale*, *LocationName*
However, in the API reference documentation: 
LocationCriterionService.LocationCriterion 
<https://developers.google.com/adwords/api/docs/reference/v201702/LocationCriterionService.LocationCriterion>,
 
the filterable fields is: *Locale*, *CountryCode*.
Does the doc miss LocationName?

And because it will return many results in different level as response, so 
I wonder is there any filterable fields could set a specific level in 
selector?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/59e881aa-3010-4e5c-9f86-a945ca89226b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Could I set a s... 李友良

Reply via email to