What exact format is expected the latitudeInMicroDegrees and
longitudeInMicroDegrees when creating a geoPoint for a Proximity
CampaignCriterion?
For example, when I have a latitude in decimal degrees of 45.3911638 and I
convert it to microdegrees as 45391163, I am seeing the following error:
[CriterionError.INVALID_LATITUDE @
operations[0].operand.criterion.geoPoint.latitudeInMicroDegrees]>
Here's my code:
{
:operator => 'ADD',
:operand => {
:campaign_id => self[:campaign_id],
:criterion => {
:xsi_type => 'Proximity',
:geo_point => {
:latitude_in_micro_degrees => (shop[:lat] * 1_000_000).to_i,
:latitude_in_micro_degrees => (shop[:lng] * 1_000_000).to_i
},
:radius_distance_units => RADIUS_DISTANCE_UNITS,
:radius_in_units => radius
}
}
}
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9769e43b-896f-49ac-9f5d-898fc3e05f04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.