The states are just the normal abbreviations for states: NY, CA, NJ. This value is part of an Address object:
address.setStreetAddress( address1 ); //1 Main St address.setCityName( city ); //Beverly Hills address.setPostalCode( zip ); //90210 address.setProvinceCode( country + "-" + state ); //US-CA address.setProvinceName( state ); //CA address.setCountryCode( country ); //US You use this address object to get a GeoLocation object through the Google GeoLocation Service GeoLocationSelector selector = new GeoLocationSelector(); selector.setAddresses( addresses ); This GeoLocation object is what you set on your LocationExtension object LocationExtension locationExtension = new LocationExtension(); locationExtension.setAddress( geoLocation.getAddress() ); locationExtension.setGeoPoint( geoLocation.getGeoPoint() ); locationExtension.setEncodedLocation( geoLocation.getEncodedLocation() ); Pete On May 6, 3:51 pm, "einter...@gmail.com" <einter...@gmail.com> wrote: > Hi, > I am working on application to support Location Extension. Questions I have > is to get all drop down values of state/province. Apparently, these value > are different from Geographical > Targeting<http://code.google.com/apis/adwords/docs/appendix/geotargeting.html> > > Do you know where I can get these values? or I have to use LocationService > to verify what user entered? > > Thanks -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en