// Modify statement for action.
statementBuilder.setQuery(
"WHERE id IN (" + StringUtils.join(customTargetingKeyIds, ",") + ")");
// Create action.
DeleteCustomTargetingKeys action = new DeleteCustomTargetingKeys();
// Perform action.
UpdateResult result = customTargetingService.performCustomTargetingKeyAction(
action, statementBuilder.toStatement());