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.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d7a3fbc4-0a92-4f07-a6f9-81b6e40f8803n%40googlegroups.com.

Reply via email to