Re: Add locations with radius programmatically

2015-11-16 Thread Petter
Thanks Josh!

On Thursday, November 12, 2015 at 8:51:43 PM UTC+7, Josh Radcliff (AdWords 
API Team) wrote:
>
> Hi,
>
> Per the migration guide 
> <https://developers.google.com/adwords/api/docs/guides/migration/v201509>, 
> you can use targeting by address 
> <https://developers.google.com/adwords/api/docs/guides/location-targeting#proximity-targeting>
>  
> instead when using proximity targeting. If the address is valid, the 
> request to add the criterion will succeed. If it is invalid, you will get 
> an API exception.
>
> Cheers,
> Josh, AdWords API Team
>
> On Wednesday, November 11, 2015 at 11:38:32 PM UTC-5, Petter wrote:
>>
>> 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/AAABPnU/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/3366c03b-0b5f-4468-861a-3611321ccfae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add locations with radius programmatically

2015-11-12 Thread Josh Radcliff (AdWords API Team)
Hi,

Per the migration guide 
<https://developers.google.com/adwords/api/docs/guides/migration/v201509>, 
you can use targeting by address 
<https://developers.google.com/adwords/api/docs/guides/location-targeting#proximity-targeting>
 
instead when using proximity targeting. If the address is valid, the 
request to add the criterion will succeed. If it is invalid, you will get 
an API exception.

Cheers,
Josh, AdWords API Team

On Wednesday, November 11, 2015 at 11:38:32 PM UTC-5, Petter wrote:
>
> 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/AAABPnU/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/d67d06ff-e6e9-4494-b05b-453143b8088a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add locations with radius programmatically

2015-11-11 Thread Le Le
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/AAABPnU/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.


Re: Add locations with radius programmatically

2014-11-18 Thread Chirag
 /entries

 On Monday, August 4, 2014 3:55:50 PM UTC-4, Dzmitry Zahusta wrote:

 Hi,

 The problem with GeoLocationService 
 https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService
  is 
 that it returns an array of GeoLocation 
 https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService.GeoLocation.html
 .

 For example, even in US there are several cities with the same name - 
 try Paris or London. And if with criteria id I can uniquely choose the 
 proper city, I have no idea how to choose the proper one (that correspond 
 to the same city identified by criteria id) using GeoLocationService 
 https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService
 .

 Do you know any solution?

 понедельник, 4 августа 2014 г., 21:18:48 UTC+3 пользователь Josh 
 Radcliff (AdWords API Team) написал:

 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/AAABPnU/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/93f9f236-94c9-4181-ae54-84f55ed7d44b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add locations with radius programmatically

2014-11-18 Thread Josh Radcliff (AdWords API Team)
 Criterion.TypeProximity/Criterion.Type
 geoPoint
 latitudeInMicroDegrees48856614/latitudeInMicroDegrees
 longitudeInMicroDegrees2352221/longitudeInMicroDegrees
 /geoPoint
 radiusDistanceUnitsMILES/radiusDistanceUnits
 radiusInUnits20.0/radiusInUnits
 address
 cityNameParis/cityName
 countryCodeFR/countryCode
 /address
 /criterion
 CampaignCriterion.TypeCampaignCriterion/CampaignCriterion.Type
 /entries

 On Monday, August 4, 2014 3:55:50 PM UTC-4, Dzmitry Zahusta wrote:

 Hi,

 The problem with GeoLocationService 
 https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService
  is 
 that it returns an array of GeoLocation 
 https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService.GeoLocation.html
 .

 For example, even in US there are several cities with the same name - 
 try Paris or London. And if with criteria id I can uniquely choose 
 the 
 proper city, I have no idea how to choose the proper one (that correspond 
 to the same city identified by criteria id) using GeoLocationService 
 https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService
 .

 Do you know any solution?

 понедельник, 4 августа 2014 г., 21:18:48 UTC+3 пользователь Josh 
 Radcliff (AdWords API Team) написал:

 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/AAABPnU/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/761756b0-502f-4cec-81a8-f69ac97c2866%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add locations with radius programmatically

2014-11-18 Thread Josh Radcliff (AdWords API Team)
 countryCodeUS/countryCode
 /address
 /criterion
 CampaignCriterion.TypeCampaignCriterion/CampaignCriterion.Type
 /entries
 entries
 campaignIdxxx/campaignId
 isNegativefalse/isNegative
 criterion xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:type=Proximity
 id98646096895/id
 typePROXIMITY/type
 Criterion.TypeProximity/Criterion.Type
 geoPoint
 latitudeInMicroDegrees48856614/latitudeInMicroDegrees
 longitudeInMicroDegrees2352221/longitudeInMicroDegrees
 /geoPoint
 radiusDistanceUnitsMILES/radiusDistanceUnits
 radiusInUnits20.0/radiusInUnits
 address
 cityNameParis/cityName
 countryCodeFR/countryCode
 /address
 /criterion
 CampaignCriterion.TypeCampaignCriterion/CampaignCriterion.Type
 /entries

 On Monday, August 4, 2014 3:55:50 PM UTC-4, Dzmitry Zahusta wrote:

 Hi,

 The problem with GeoLocationService 
 https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService
  is 
 that it returns an array of GeoLocation 
 https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService.GeoLocation.html
 .

 For example, even in US there are several cities with the same name - 
 try Paris or London. And if with criteria id I can uniquely choose 
 the 
 proper city, I have no idea how to choose the proper one (that 
 correspond 
 to the same city identified by criteria id) using GeoLocationService 
 https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService
 .

 Do you know any solution?

 понедельник, 4 августа 2014 г., 21:18:48 UTC+3 пользователь Josh 
 Radcliff (AdWords API Team) написал:

 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/AAABPnU/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

Re: Add locations with radius programmatically

2014-11-18 Thread Chirag
 radiusInUnits20.0/radiusInUnits
 address
 cityNameBrooklyn/cityName
 provinceNameNY/provinceName
 postalCode11215/postalCode
 countryCodeUS/countryCode
 /address
 /criterion
 CampaignCriterion.TypeCampaignCriterion/CampaignCriterion.Type
 /entries
 entries
 campaignIdxxx/campaignId
 isNegativefalse/isNegative
 criterion xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:type=Proximity
 id98646096895/id
 typePROXIMITY/type
 Criterion.TypeProximity/Criterion.Type
 geoPoint
 latitudeInMicroDegrees48856614/latitudeInMicroDegrees
 longitudeInMicroDegrees2352221
 /longitudeInMicroDegrees
 /geoPoint
 radiusDistanceUnitsMILES/radiusDistanceUnits
 radiusInUnits20.0/radiusInUnits
 address
 cityNameParis/cityName
 countryCodeFR/countryCode
 /address
 /criterion
 CampaignCriterion.TypeCampaignCriterion/CampaignCriterion.Type
 /entries

 On Monday, August 4, 2014 3:55:50 PM UTC-4, Dzmitry Zahusta wrote:

 Hi,

 The problem with GeoLocationService 
 https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService
  is 
 that it returns an array of GeoLocation 
 https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService.GeoLocation.html
 .

 For example, even in US there are several cities with the same name 
 - try Paris or London. And if with criteria id I can uniquely 
 choose 
 the proper city, I have no idea how to choose the proper one (that 
 correspond to the same city identified by criteria id) using 
 GeoLocationService 
 https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService
 .

 Do you know any solution?

 понедельник, 4 августа 2014 г., 21:18:48 UTC+3 пользователь Josh 
 Radcliff (AdWords API Team) написал:

 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/AAABPnU/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

Re: Add locations with radius programmatically

2014-08-07 Thread Josh Radcliff (AdWords API Team)
 of GeoLocation 
 https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService.GeoLocation.html
 .

 For example, even in US there are several cities with the same name - 
 try Paris or London. And if with criteria id I can uniquely choose the 
 proper city, I have no idea how to choose the proper one (that correspond 
 to the same city identified by criteria id) using GeoLocationService 
 https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService
 .

 Do you know any solution?

 понедельник, 4 августа 2014 г., 21:18:48 UTC+3 пользователь Josh 
 Radcliff (AdWords API Team) написал:

 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/AAABPnU/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.
For more options, visit https://groups.google.com/d/optout.


Re: Add locations with radius programmatically

2014-08-06 Thread Dzmitry Zahusta
 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/AAABPnU/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.
For more options, visit https://groups.google.com/d/optout.


Add locations with radius programmatically

2014-08-04 Thread Dzmitry Zahusta
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/AAABPnU/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.
For more options, visit https://groups.google.com/d/optout.


Re: Add locations with radius programmatically

2014-08-04 Thread 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/AAABPnU/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.
For more options, visit https://groups.google.com/d/optout.


Re: Add locations with radius programmatically

2014-08-04 Thread Dzmitry Zahusta
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/AAABPnU/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.
For more options, visit https://groups.google.com/d/optout.


Re: Add locations with radius programmatically

2014-08-04 Thread Josh Radcliff (AdWords API Team)
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/AAABPnU/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.
For more options, visit https://groups.google.com/d/optout.


Re: Add locations with radius programmatically

2014-08-04 Thread Dzmitry Zahusta
Hi,

The problem with GeoLocationService 
https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService
 is 
that it returns an array of GeoLocation 
https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService.GeoLocation.html
.

For example, even in US there are several cities with the same name - try 
Paris or London. And if with criteria id I can uniquely choose the 
proper city, I have no idea how to choose the proper one (that correspond 
to the same city identified by criteria id) using GeoLocationService 
https://developers.google.com/adwords/api/docs/reference/v201406/GeoLocationService
.

Do you know any solution?

понедельник, 4 августа 2014 г., 21:18:48 UTC+3 пользователь Josh Radcliff 
(AdWords API Team) написал:

 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/AAABPnU/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.
For more options, visit https://groups.google.com/d/optout.


Re: Add locations with radius programmatically

2014-08-04 Thread Josh Radcliff (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/AAABPnU/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.
For more options, visit https://groups.google.com/d/optout.