Predicate campaignIdPredicate =
new Predicate("CampaignId", PredicateOperator.IN, new String[] {campaignId.toString()});
selector.setPredicates(new Predicate[] {campaignIdPredicate});
// Get all campaign targets.
CampaignCriterionPage page = campaignCriterionService.get(selector);
// Display campaign targets.
if (page.getEntries() != null) {
for (CampaignCriterion criterion : page.getEntries()) {
System.out.println("Campaign target with campaign id \"" + criterion.getCampaignId()
+ "\" and of type \"" + criterion.getCriterion().getCriterionType()
+ "\" was found.");
}
} else {