// Create a statement to select first 5 teams that aren't built-in.
Statement filterStatement = new StatementBuilder("WHERE id > 0 LIMIT 5").toStatement();
// Get the teams by statement.
TeamPage page = teamService.getTeamsByStatement(filterStatement);
if (page.getResults() != null) {
Team[] teams = page.getResults();
// Update each local team object by adding the ad unit to it.
for (Team team : teams) {
// Don't add ad unit if the team has all inventory already.
if (!team.getHasAllInventory()) {