We are seeing a sporadic error with v201109 CampaignCriterionService, when
we query for the existing criterion on a campaign. Sometimes the API
returns Proximity objects where the GeoPoint is null, even though the
campaign definitely has a lat/long/radius defined (we can see it in the
AdWords UI).
Here's how we are building the Selector:
final Selector selector = new Selector();
selector.setFields(new String[] {
// Basic attributes
"Id", "CampaignId", "CriteriaType",
// Proximity attributes
"GeoPoint", "RadiusDistanceUnits", "RadiusInUnits"
});
final Predicate idPredicate = new Predicate(
"CampaignId",
PredicateOperator.EQUALS,
new String[] {String.valueOf(seCampaignId)});
selector.setPredicates(new Predicate[] {idPredicate});
This works great much of the time, but sometimes we get a Proximity where
the GeoPoint is null. Has anyone else seen this? Should we be building
the Selector differently?
Thanks -
Jim
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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