Yes. You were correct. Thanks for spotting that. Worked fine when that was 
fixed.

As for the follow-up on the original question, "What exact format is 
expected for the latitudeInMicroDegrees and longitudeInMicroDegrees when 
creating a geoPoint for a Proximity CampaignCriterion?"

For example, Google's documentation merely states:

*xsd:int*

Micro degrees for the latitude.

This field is required and should not be *null*.

But, as it turns out, one microdegree is one millionth of one degree. So, 
assuming your latitude and longitude values are in decimal degrees (
https://en.wikipedia.org/wiki/Decimal_degrees), you multiply by 1,000,000 
and round to the nearest integer value. It's important to have 7 decimal 
places of precision so you can round to 6.

Thanks again!

On Monday, May 2, 2016 at 3:37:39 PM UTC-7, Day Davis Waterbury wrote:
>
> Thank you. That's very helpful. I will try that and post a follow-up. 
> Thanks again!
>
> On Monday, May 2, 2016 at 3:11:24 PM UTC-7, Shwetha Vastrad (AdWords API 
> Team) wrote:
>>
>> Hi,
>>
>> You are probably receiving this error because of the longitude value 
>> being passed, not because of the latitude value passed. In the code 
>> provided, you are setting the value of the latitude twice. You need to 
>> change the second line to "longitude_in_micro_degrees". This should take 
>> care of the "INVALID_LATITUDE" error.
>>
>> Cheers,
>> Shwetha, AdWords API Team.
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/57dc7694-e7dc-4f9b-94e6-da019c3e90a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Exact Definitio... Day Davis Waterbury
    • Re: Exact ... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
      • Re: Ex... Day Davis Waterbury
        • Re... Day Davis Waterbury
          • ... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum

Reply via email to