Jeremy, Your observations are spot on. The service cannot use ParentLocation as a predicate. You will need to use the CSV file to seed your data set and updating it using the data from the service.
Thanks, Ray On Wednesday, April 30, 2014 12:13:32 PM UTC-4, Jeremy Tremblay wrote: > > According to the documentation here : > https://developers.google.com/adwords/api/docs/guides/location-targeting, > > "LocationCriterionService allows you to request the parent locations for > a location. This is done by adding ParentLocations to the list of > selector fields. For example, our previous code returned the location > (Quebec city) as well as its parent location (Canada). This feature is > useful if you want to display a hierarchical list of locations to your > customers, or if you want to add inclusion or exclusion logic for geo > locations while targeting your campaigns." > > Yet from the examples, this only looks to be possible if we start towards > the bottom of the location hierarchy and work our way up. I would however > like to display a selectable list of US locations based on state. That is a > user would select a US state and from there a list of child locations would > be displayed for them to choose from. I intend to use this location in a > TargetingIdeaServiceInterface > search, so I need the exact id or LocationName to pass to the search. > > I can't seem to find a programmatic way to discover the child Locations of > a particular Location. I've attempted to search for all Locations that have > a particular ParentLocation, but ParentLocations is not an acceptable > Predicate. I understand that I could persist the targets > table<https://developers.google.com/adwords/api/docs/appendix/geotargeting> > data > in a database to do this, but this would require me to keep abreast of > updates so I would prefer the dynamic approach. > > I'll bet I'm missing something, and this approach is possible. Any ideas? > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.