TargetingGroupCriterionOperation addUserInterestCriteriaOp =
new TargetingGroupCriterionOperation();
addUserInterestCriteriaOp.setOperand(interestCriterion);
addUserInterestCriteriaOp.setOperator(Operator.ADD);
TargetingGroupCriterionReturnValue result = videoTargetingGroupCriterionService.mutate(
new TargetingGroupCriterionOperation[] {
addAgeCriterionOp, addGenderCriterionOp,
addNegativeAgeCriterionOp, addTopicCriterionOp,
addUserInterestCriteriaOp});
for (TargetingGroupCriterion targetingGroupCriterionResult : result.getValue()) {
System.out.printf("Targeting group criterion with campaign id %d, "
+ "targeting group id %d, criterion id %d, "
+ "and type '%s' was added.%n",
targetingGroupCriterionResult.getCampaignId(),
targetingGroupCriterionResult.getTargetingGroupId(),