Ads API v8
java
I am not using a library, but rather coding in straight REST. If an http post request is made to this uri :
/customers/123456789/adGroupCriteria:mutate, and the request fails, what will the json look like? Note the request entails the several create operations and partial failures is not enabled.
To be more precise, in the following code snippet, what will the json representation of mutateResponse look like in the case of failure:
JsonParser jsonParser = new JsonParser();
try (CloseableHttpClient client = HttpClients.createDefault()) {
try (CloseableHttpResponse response = client.execute(method)) {
StatusLine statusLine = response.getStatusLine();
HttpEntity entity = response.getEntity();
JsonObject mutateResponse = null;
if (entity != null) {
BufferedReader reader = new BufferedReader(new InputStreamReader(entity.getContent()));
try {
JsonElement jsonElement = jsonParser.parse(reader);
mutateResponse = jsonElement.getAsJsonObject();
...
I have spent some time looking through doc, and I do realize that I can make a test request to find out, but it would be nice to have some up front knowledge of the json format, the fields and values therein. Thanks for your time.