Hi Josh, GeoLocationService has been removed in v201509. Which service instead support to look up the GeoPoint?
On Tuesday, August 5, 2014 at 1:18:48 AM UTC+7, Josh Radcliff (AdWords API Team) wrote: > > Hi, > > Proximity criteria is the only way to do radius targeting through the API. > Note that you can look up the *GeoPoint* that corresponds to an address > (including a partial address, e.g., one based solely on postalCode > <https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService.Address#postalCode>) > > using GeoLocationService > <https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService>. > > Once you have the *GeoPoint*, you can then use that to construct your > *Proximity* object. > > A similar concept is LocationGroups > <https://developers.google.com/adwords/api/docs/reference/v201406/CampaignCriterionService.LocationGroups>, > > which allow you to target areas or demographic groups near one or more > locations. See the AddCampaignTargetingCriteria.java > <https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201406/targeting/AddCampaignTargetingCriteria.java#L114> > example > in each client library's *targeting* folder for details. > > Thanks, > Josh, AdWords API Team > > On Monday, August 4, 2014 1:50:12 PM UTC-4, Dzmitry Zahusta wrote: >> >> Hi Josh! >> >> I don't think this is right way. To add Location you need to know its >> criteria id (for example 21137L - California). But to add Proximity you >> need to know the proper address or lattitude and longitude. And there is no >> way to map criteria id to some address or retrieve its GeoPoint to set to >> Proximity. In other words - I want to get the same object to set for >> LocationCriterion and Proximity. >> >> My thought is if it's possible in UI it should be possible in the code. >> >> понедельник, 4 августа 2014 г., 19:17:17 UTC+3 пользователь Josh Radcliff >> (AdWords API Team) написал: >> >>> Hi, >>> >>> You can do this using a Proximity >>> <https://developers.google.com/adwords/api/docs/reference/v201406/CampaignCriterionService.Proximity> >>> campaign >>> criterion. See our Location Targeting Guide >>> <https://developers.google.com/adwords/api/docs/guides/location-targeting#proximity-targeting> >>> for >>> more details. >>> >>> Cheers, >>> Josh, AdWords API Team >>> >>> On Monday, August 4, 2014 11:36:00 AM UTC-4, Dzmitry Zahusta wrote: >>>> >>>> Hi here! >>>> >>>> How is it possible to add locations with radius programmatically as I >>>> can do it using UI: >>>> >>>> >>>> <https://lh6.googleusercontent.com/-oFfRBlWc5dI/U9-nhjAcUMI/AAAAAAABPnU/FT88U9MSisU/s1600/Locations.png> >>>> 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 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. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/8d4a55e9-59b8-4e19-a81a-821bb9fa2a52%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.