For a project I'm busy with the Google Adwords api (client library = C#). I show the visitor an estimate of traffic based on keywords and locality/city currently. It's using following method
https://developers.google.com/adwords/api/docs/guides/traffic-estimator-service
I want to add an extra requirement: the estimate must contain a proximity (radius) of 15 kilometers around locality/city s. I tried to add the proximity to the campaignestimator object, but then an error occured based on the response.
Part of the programcode
var proximity = new Proximity
{
radiusDistanceUnits = ProximityDistanceUnits.KILOMETERS,
radiusInUnits = seaConfigurationModel.Proximity,
geoPoint = new GeoPoint()
{
latitudeInMicroDegrees = 43633941,
longitudeInMicroDegrees = -79398718
}
};
campaignEstimateRequest.criteria = new Criterion[] { languageCriterion, proximity };
Exception:
Unmarshalling Error: cvc-elt.4.2: Cannot resolve 'q2:Proximity' to a type definition for element 'criteria'.
Does anyone know how to solve this? Do I need another method?
Thanks a lot.
Jordy