Hi Dzmitry,
-- It turns out that those locations aren't being recognized as valid due to some quirks in the underlying look up. Since this only impacts a small number of addresses, I don't expect this to be fixed in the immediate future.
In the meantime, you can work around this problem by including a valid street name in your address.
Thanks,
Josh, AdWords API Team
On Wednesday, August 26, 2015 at 10:41:49 AM UTC-4, Josh Radcliff (AdWords API Team) wrote:
On Wednesday, August 26, 2015 at 10:41:49 AM UTC-4, Josh Radcliff (AdWords API Team) wrote:
Hi,That's odd -- I confirmed that these appear to be valid city/state/country combinations, but I'm getting InvalidGeoLocation for them as well. I've raised this issue and will get back to you as soon as I have an update.Thanks,Josh, AdWords API Team
On Wednesday, August 26, 2015 at 8:29:03 AM UTC-4, Dzmitry Zahusta wrote:Hi Josh,I did as you suggested here to get GeoPoint object for Proximity criterion:Address address = new Address();
address.setCityName("Fairfield" );
address.setCountryCode("US");
address.setProvinceName("California" );
GeoLocationSelector selector = new GeoLocationSelector();
selector.setAddresses(new Address[] {address});
GeoLocation[] geoLocationResult = geoLocationService.get(selector );But for some reason it has stopped working correctly recently for several addresses:
- Marina,California,United States
- Napa,California,United States
- Orange,Orange,California,
United States - and many others addresses
GeoLocationService returnInvalidGeoLocation for these addresses. What is different way to get correct GeoLocation if you know address GeoLocationService is not working as expected?
четверг, 31 июля 2014 г., 1:29:18 UTC+3 пользователь Josh Radcliff (AdWords API Team) написал:Hi,The IDs in the link you provided are for creating Location criteria, not GeoPoint criteria. If you are instead interested in GeoPoint objects, you can look those up by address using GeoLocationService, but not by ID. GeoPoints do not have IDs -- just latitudeInMicroDegrees and longitudeInMicroDegrees.If you are looking to find GeoPoint information for a given Proximity criterion, you can simply include the field "GeoPoint" in your Selector when you issue a CampaignCriterionService.get. Regards,Josh, AdWords API Team
On Wednesday, July 30, 2014 4:22:02 PM UTC-4, Dzmitry Zahusta wrote:Using LocationCriterionServiceI can get only list of Location criterion and unfortunately it has nothing to do with GeoPoint objects...
среда, 30 июля 2014 г., 16:45:31 UTC+3 пользователь Josh Radcliff (AdWords API Team) написал:Hi,Yes, you can use the LocationCriterionServicewhere your Selector has a predicate based on the Id field. See the example request below. Cheers,Josh, AdWords API Team<get xmlns="https://adwords.google.com/api/adwords/cm/v201406 "><selector><fields>Id</fields><fields>LocationName</fields><fields>CanonicalName</fields><fields>DisplayType</fields><fields>ParentLocations</fields> <fields>Reach</fields><fields>TargetingStatus</fields> <predicates><field>Id</field><operator>IN</operator><values>2276</values><values>2278</values></predicates><predicates><field>Locale</field><operator>EQUALS</operator><values>en</values></predicates><ordering><field>LocationName</field><sortOrder>ASCENDING</sortOrder> </ordering></selector></get>
On Wednesday, July 30, 2014 9:28:20 AM UTC-4, Dzmitry Zahusta wrote:Hi!Is it possible to get GeoPoint by Criteria ID? I mean Criteria ID that can be found here.
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
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 adwords-api+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/a6e76fa9-8703-45e8-8447-2c0abaef915d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment