Long adGroupId = Long.parseLong("INSERT_AD_GROUP_ID_HERE");
Long criterionId = Long.parseLong("INSERT_CRITERION_ID_HERE");
// Create selector.
Selector selector = new Selector();
selector.setFields(new String[] {"AdGroupId", "CriterionId", "StartDate", "EndDate",
"Bid", "LocalClicks", "LocalCost", "MarginalCpc", "LocalImpressions"});
// Create predicates.
Predicate adGroupIdPredicate =
new Predicate("AdGroupId", PredicateOperator.IN, new String[] {adGroupId.toString()});
Predicate criterionIdPredicate =
new Predicate("CriterionId", PredicateOperator.IN, new String[] {criterionId.toString()});
selector.setPredicates(new Predicate[] {adGroupIdPredicate, criterionIdPredicate});
// Get bid landscape for ad group criteria.
CriterionBidLandscapePage page = dataService.getCriterionBidLandscape(selector);
// Display bid landscapes.