// Get AdWordsUser from "~/adwords.properties".
AdWordsUser user = new AdWordsUser();
// Get the DataService.
DataServiceInterface dataService =
user.getService(AdWordsService.V201306.DATA_SERVICE);
Long adGroupId = Long.parseLong("INSERT_AD_GROUP_ID_HERE");
// Create selector.
Selector selector = new Selector();
selector.setFields(new String[] {"AdGroupId", "LandscapeType", "LandscapeCurrent",
"StartDate", "EndDate", "Bid", "LocalClicks", "LocalCost", "MarginalCpc",
"LocalImpressions"});
// Create predicates.
Predicate adGroupIdPredicate =
new Predicate("AdGroupId", PredicateOperator.IN, new String[] {adGroupId.toString()});
selector.setPredicates(new Predicate[] {adGroupIdPredicate});
// Get bid landscape for ad group criteria.
AdGroupBidLandscapePage page = dataService.getAdGroupBidLandscape(selector);
// Display bid landscapes.
if (page.getEntries() != null) {
for (AdGroupBidLandscape adGroupBidLandscape : page.getEntries()) {
System.out.println("Ad group bid landscape with ad group id \""