user.getService(DfpService.V201311.CREATIVE_SERVICE);
Long[] imageCreativeIds = new Long[] {Long.parseLong("INSERT_IMAGE_CREATIVE_ID_HERE")};
// Create the statement to filter image creatives by id.
StatementBuilder statementBuilder =
new StatementBuilder("WHERE id IN ( " + StringUtils.join(imageCreativeIds, ',')
+ ") and creativeType = :creativeType LIMIT 500").putValue("creativeType",
ImageCreative.class.getSimpleName());
// Retrieve all creatives which match.
CreativePage page =
creativeService.getCreativesByStatement(statementBuilder.toStatement());
if (page.getResults() != null) {
Creative[] creatives = page.getResults();
long[] oldIds = new long[creatives.length];
for (int i = 0; i < creatives.length; i++) {