Predicate campaignIdPredicate =
new Predicate("CampaignId", PredicateOperator.IN, new String[] {campaignId.toString()});
selector.setPredicates(new Predicate[] {campaignIdPredicate});
// Get campaigns.
CampaignPage page = campaignService.get(selector);
// Display campaigns.
if (page.getEntries() != null) {
for (Campaign campaign : page.getEntries()) {
if (campaign.getConversionOptimizerEligibility().getEligible()) {
System.out.printf("Campaign with name '%s' and id '%d' is eligible to use "
+ "conversion optimizer.\n", campaign.getName(), campaign.getId());
} else {
System.out.printf("Campaign with name '%s' and id '%d' is not eligible to use "