com.google.api.ads.dfp.axis.v201302.ArchiveAdUnits action =
new com.google.api.ads.dfp.axis.v201302.ArchiveAdUnits();
// Perform action.
UpdateResult result =
inventoryService.performAdUnitAction(action, statementBuilder.toStatement());
if (result != null && result.getNumChanges() > 0) {
System.out.printf("Number of ad units archived: %d\n", result.getNumChanges());
} else {
System.out.println("No ad units were archived.");