user.getService(AdWordsService.V201306.ADGROUP_AD_SERVICE);
Long adGroupId = Long.parseLong("INSERT_AD_GROUP_ID_HERE");
// Create selector.
Selector selector = new Selector();
selector.setFields(new String[] {"Id", "AdGroupId", "Status"});
selector.setOrdering(new OrderBy[] {new OrderBy("Id", SortOrder.ASCENDING)});
// Create predicates.
Predicate adGroupIdPredicate =
new Predicate("AdGroupId", PredicateOperator.IN, new String[] {adGroupId.toString()});
// By default disabled ads aren't returned by the selector. To return them
// include the DISABLED status in a predicate.
Predicate statusPredicate =
new Predicate("Status", PredicateOperator.IN, new String[] {"ENABLED", "PAUSED",
"DISABLED"});
selector.setPredicates(new Predicate[] {adGroupIdPredicate, statusPredicate});
// Get all ads.
AdGroupAdPage page = adGroupAdService.get(selector);
// Display ads.