// Create action.
DeleteCustomTargetingValues action = new DeleteCustomTargetingValues();
// Perform action.
UpdateResult result = customTargetingService.performCustomTargetingValueAction(
action, statementBuilder.toStatement());
// Display results.
if (result != null && result.getNumChanges() > 0) {
System.out.println("Number of custom targeting values deleted: "
+ result.getNumChanges());
} else {
System.out.println("No custom targeting values were deleted.");
}
}
} catch (Exception e) {