Hi Team,
We're currently using the Google Adwords API to do mutations (i.e. inserts, updates and remove members) onto our audience lists, and have received an error back recently when attempting to remove an audience through an API request. The response back had a status code of 500 and the following error message:
Error message: Component [Received Unexpected HTTP Response:RECEIVED_UNEXPECTED_HTTP_RESPONSE2] finished with status ERROR. (In0: 1 recs) Didn't get valid response from POST: content: 0005c922dfc2e6f403e7ec9b0d05e813AdwordsUserListServicemutateMembers1158soap:Client[CollectionSizeError.TOO_FEW
When diagnosing the error, we've found out that it was actually from a malformed request body where we've provided a JSON for the MemberLists object instead of the expected SOAP XML tag (i.e. <memberList> <hasedEmail> </hashedEmail> </memberList>):
What we're wondering is why the error status code and message received does not indicate a malformed/invalid request (e.g. a status code of 400 indicating a bad request) instead of the "CollectionSizeError.TOO_FEW " error message with status code 500.
Cheers,
Greg