The following selector was exported from a running C# application using JsonConvert.SerializeObject. As far I can see, there are no problems with it. However, I am consistently receiving:
"AdWordsApiException: Exception of type 'Google.Api.Ads.AdWords.Lib.AdWordsApiException' was thrown. \r\n\r\nError returned when a <a href='SearchParameter'>SearchParameter</a> doesn't match the <a href='IdeaType'>IdeaType</a> specified in the <a href='TargetingIdeaSelector'>TargetingIdeaSelector</a> or is otherwise invalid. Error trigger usually contains the parameter name, and error details contain a more detailed explanation.. (Error: TargetingIdeaError.INVALID_SEARCH_PARAMETERS, FieldPath: selector.searchParameters[0].locations[0], Trigger: LocationSearchParameter)\r\n\r\n"
I have noticed others having issues with their CCID not being properly specified. I'm looking into that also, though one would think that a trigger of "LocationSearchParameter" would indicate an error with the location search parameter.
Should `SearchParameterType` be something other than null?
Regarding the location search parameter, when I first encountered this problem I was only specifying the id. I have added the type and locationName in the pursuit of a solution but to no avail.
-- Bruce
```
{
"searchParameters": [{
"queries": ["fatigue driving", "driving fatigue", "driving tired", "driver fatigue male", "driver fatigue female"],
"SearchParameterType": null
}, {
"languages": [{
"code": null,
"name": null,
"id": 1000,
"idSpecified": true,
"typeSpecified": false,
"CriterionType": null
}
],
"SearchParameterType": null
}, {
"networkSetting": {
"targetGoogleSearch": true,
"targetGoogleSearchSpecified": true,
"targetSearchNetwork": false,
"targetSearchNetworkSpecified": true,
"targetContentNetwork": false,
"targetContentNetworkSpecified": true,
"targetPartnerSearchNetwork": false,
"targetPartnerSearchNetworkSpecified": true
},
"SearchParameterType": null
}, {
"locations": [{
"locationName": "Perth,Western Australia,Australia",
"displayType": null,
"targetingStatusSpecified": false,
"parentLocations": null,
"id": 9060896,
"idSpecified": true,
"type": 12,
"typeSpecified": true,
"CriterionType": null
}
],
"SearchParameterType": null
}
],
"ideaType": 0,
"ideaTypeSpecified": true,
"requestType": 1,
"requestTypeSpecified": true,
"requestedAttributeTypes": [5, 6, 7, 2, 8, 1],
"paging": {
"startIndex": 0,
"startIndexSpecified": true,
"numberResults": 500,
"numberResultsSpecified": true
},
"localeCode": null,
"currencyCode": null
}
```