CreativeTemplateServiceInterface creativeTemplateService =
user.getService(DfpService.V201208.CREATIVE_TEMPLATE_SERVICE);
// Set defaults for page and filterStatement.
CreativeTemplatePage page = new CreativeTemplatePage();
Statement filterStatement = new Statement();
int offset = 0;
do {
// Create a statement to get all creative templates.
filterStatement.setQuery("LIMIT 500 OFFSET " + offset);
// Get creative templates by statement.
page = creativeTemplateService.getCreativeTemplatesByStatement(filterStatement);
if (page.getResults() != null) {