// Get AdWordsUser from "~/adwords.properties".
AdWordsUser user = new AdWordsUser();
// Get the GeoLocationService.
GeoLocationServiceInterface geoLocationService =
user.getService(AdWordsService.V201306.GEO_LOCATION_SERVICE);
// Create addresses.
Address address1 = new Address();
address1.setStreetAddress("1600 Amphitheatre Pkwy");
address1.setCityName("Mountain View");
address1.setProvinceCode("US-CA");
address1.setPostalCode("94043");
address1.setCountryCode("US");
Address address2 = new Address();
address2.setStreetAddress("76 9th Ave");
address2.setCityName("New York");
address2.setProvinceCode("US-NY");
address2.setPostalCode("10011");
address2.setCountryCode("US");
Address address3 = new Address();
address3.setStreetAddress("五四大街1号, Beijing东城区");
address3.setCountryCode("CN");
// Create selector.
GeoLocationSelector selector = new GeoLocationSelector();
selector.setAddresses(new Address[] {address1, address2, address3});
// Get geo locations.
GeoLocation[] locations = geoLocationService.get(selector);
// Display geo locations.
if (locations != null) {
for (GeoLocation location : locations) {
if (location instanceof InvalidGeoLocation) {