// Display ad group criteria.
if (page.getEntries() != null && page.getEntries().length > 0) {
for (AdGroupCriterion adGroupCriterion : page.getEntries()) {
if (adGroupCriterion instanceof BiddableAdGroupCriterion) {
BiddableAdGroupCriterion biddableAdGroupCriterion =
(BiddableAdGroupCriterion) adGroupCriterion;
System.out.println("Ad group criterion with ad group id \""
+ biddableAdGroupCriterion.getAdGroupId() + "\", criterion id \""
+ biddableAdGroupCriterion.getCriterion().getId() + "\", type \""
+ biddableAdGroupCriterion.getCriterion().getCriterionType()
+ "\", and user status \"" + biddableAdGroupCriterion.getUserStatus()
+ "\" was found.");
}
}
} else {
System.out.println("No ad group criteria were found.");