For the project, I'm busy with the Google Adwords api (client library = C #). I show the visitor an estimate of traffic based on keywords and the current location / city. He uses the following method
https://developers.google.com/adwords/api/docs/guides/traffic-estimator-service
I want to add an additional requirement: the assessment should contain a proximity (radius) of 15 kilometers in the vicinity / city. I tried adding proximity to the campaignestimator object, but then an error occurred based on the response.
Piece of code
var proximity = new Proximity { radiusDistanceUnits = ProximityDistanceUnits.KILOMETERS, radiusInUnits = seaConfigurationModel.Proximity, geoPoint = new GeoPoint() { latitudeInMicroDegrees = 43633941, longitudeInMicroDegrees = -79398718 } }; campaignEstimateRequest.criteria = new Criterion[] { languageCriterion, proximity };
An 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?
Thank you very much.
Geordie
Jordy source share