Greetings, i’m trying to add proximity target location with radius to 
campaign using Ruby, to achieve this i use CampaignCriterionService with 

campaign_criteria = [
  { xsi_type: 'Proximity', radius_distance_units: 'kilometers', 
radius_in_units: 1.5, geo_point: { latitude_in_micro_degrees: 25.0428993, 
longitude_in_micro_degrees: 121.5688675 } }
]

operations = campaign_criteria.map do |criterion|
  { operator: 'ADD',
    operand: {
      campaign_id: campaign_id,
      criterion: criterion}
  }

but face such error - AdsCommon::Errors::ApiException: Unknown exception 
with error: Unmarshalling Error: Not a number: 25.0428993

i didn't find here in which format i should pass geo_point to proximity 
object:
https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService.Proximity
https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService.GeoPoint

any help will appreciate

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c01aa267-d1aa-4728-8edc-648ad786b8f7o%40googlegroups.com.

Reply via email to