GeoLocationService cannot evaluate some addresses

33 views
Skip to first unread message

Dzmitry Zahusta

unread,
Jul 29, 2015, 8:47:42 AM7/29/15
to AdWords API Forum
I'm just wondering why GeoLocationService return InvalidGeoLocation for "Hampton,Georgia,United States":

        Address address = new Address();
        address
.setCityName("Hampton");
        address
.setCountryCode("US");
        address
.setProvinceName("Georgia");


       
GeoLocationSelector selector = new GeoLocationSelector();
        selector
.setAddresses(new Address[] {address});


       
GeoLocation[] geoLocationResult = geoLocationService.get(selector);

It can be simply checked on https://developers.google.com/adwords/api/docs/appendix/geotargeting that such a address exists (criteriaId = 1015376).

What is wrong with GeoLocationService ?

Umesh Dengale

unread,
Jul 29, 2015, 3:53:43 PM7/29/15
to AdWords API Forum, dzmitry...@gmail.com, dzmitry...@gmail.com
Hello,

The Address object has streetAddress field, which needs to be set the value to get GeoLocation. The streetAdress (e.g. 109 Oak St)  along with city name, province name and country code, you will able get that address in the Google maps and the GeoLocationService will able to retrieve that address.

Thanks,
Umesh, AdWords API Team.

Dzmitry Zahusta

unread,
Jul 29, 2015, 4:05:09 PM7/29/15
to AdWords API Forum, adwordsapia...@google.com
Hi Umesh,

I'm sure that you are mistaken. Because the same code working with no problems for the following addresses:
  • Conley,Georgia,United States
  • Decatur,Georgia,United States
  • Ellenwood,Georgia,United States
  • Fayetteville,Georgia,United States
  • Hampton,Georgia,United States
  • Locust Grove,Georgia,United States
  • McDonough,Georgia,United States
  • Morrow,Georgia,United States
  • Riverdale,Georgia,United States
  • Stockbridge,Georgia,United States
  • Hapeville,Georgia,United States
It's definitely not necessary to set streetAddress. The problem is with somewhere deeper in Google code.


среда, 29 июля 2015 г., 22:53:43 UTC+3 пользователь Umesh Dengale написал:

Nadine Sundquist (AdWords API Team)

unread,
Jul 30, 2015, 7:05:01 AM7/30/15
to AdWords API Forum, dzmitry...@gmail.com, adwordsapia...@google.com, dzmitry...@gmail.com
Hi Dzmitry,

Umesh and I were both able to reproduce your issue, and the location you've specified is valid when I checked on this page. I've sent over the information to the engineers who specialize in this component to see what's up. I'll get back to you as soon as I hear back from them.

Cheers,
Nadine, AdWords API Team

Dzmitry Zahusta

unread,
Aug 26, 2015, 8:30:50 AM8/26/15
to AdWords API Forum, dzmitry...@gmail.com, adwordsapia...@google.com
Hi guys,

The same problem continue happening. Here the list of new locations:
  • Marina,California,United States
  • Napa,California,United States
  • Orange,Orange,California,United States
  • and many others addresses
Do you have any ETA for the fix?

четверг, 30 июля 2015 г., 14:05:01 UTC+3 пользователь Nadine Sundquist (AdWords API Team) написал:
Reply all
Reply to author
Forward
0 new messages