public static void runExample(
AdWordsServices adWordsServices, AdWordsSession session, Long adGroupId,
Long criterionId) throws Exception {
// Get the DataService.
DataServiceInterface dataService =
adWordsServices.get(session, DataServiceInterface.class);
// Create selector.
Selector selector = new SelectorBuilder()
.fields(
"AdGroupId",
"CriterionId",
"StartDate",
"EndDate",
"Bid",
"LocalClicks",
"LocalCost",
"MarginalCpc",
"LocalImpressions")
.equals("AdGroupId", adGroupId.toString())
.equals("CriterionId", criterionId.toString())
.build();
// Get bid landscape for ad group criteria.
CriterionBidLandscapePage page = dataService.getCriterionBidLandscape(selector);
// Display bid landscapes.
if (page.getEntries() != null) {
for (CriterionBidLandscape criterionBidLandscape : page.getEntries()) {
System.out.println("Criterion bid landscape with ad group id \""