BatchJobOperation removeOp = new BatchJobOperation();
BatchJob batchJob = new BatchJob();
batchJob.setId(awaitingfileBatchJobId);
removeOp.setOperator(Operator.REMOVE);
removeOp.setOperand(batchJob);
BatchJob batchJobRet = batchJobService.mutate(new BatchJobOperation[] {removeOp}).getValue(0);
BatchJob batchjobToCancel = new BatchJob();
batchjobToCancel.setId(batchJob.getId());
batchjobToCancel.setStatus(BatchJobStatus.CANCELING);
BatchJobOperation cancelOperation = new BatchJobOperation();
cancelOperation.setOperator(Operator.SET);
cancelOperation.setOperand(batchjobToCancel);
batchJobService.mutate(new BatchJobOperation[] {cancelOperation}).getValue(0);--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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 a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/g63-Nf4kVuM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/546f94d7-b0d9-47f4-8af2-c506447a6a54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.