// Get DfpUser from "~/dfp.properties".
DfpUser user = new DfpUser();
// Get the CreativeTemplateService.
CreativeTemplateServiceInterface creativeTemplateService =
user.getService(DfpService.V201208.CREATIVE_TEMPLATE_SERVICE);
// Set the ID of the creative template to get.
Long creativeTemplateId = Long.parseLong("INSERT_CREATIVE_TEMPLATE_ID_HERE");
// Get the creative template.
CreativeTemplate creativeTemplate =
creativeTemplateService.getCreativeTemplate(creativeTemplateId);
if (creativeTemplate != null) {
System.out.println("Creative template with ID \"" + creativeTemplate.getId()
+ "\", name \"" + creativeTemplate.getName()
+ "\", and type \"" + creativeTemplate.getType() + "\" was found.");