user.getService(AdWordsService.V201309.MEDIA_SERVICE);
// Create selector.
Selector selector = new Selector();
selector.setFields(new String[] {"MediaId", "Width", "Height", "MimeType"});
selector.setOrdering(new OrderBy[] {new OrderBy("MediaId", SortOrder.ASCENDING)});
// Create predicates.
Predicate typePredicate =
new Predicate("Type", PredicateOperator.IN, new String[] {"IMAGE"});
selector.setPredicates(new Predicate[] {typePredicate});