// Modify existing image creative to copy it.
imageCreative.setId(null);
imageCreative.setName("Image creative copy #" + new Random().nextInt(Integer.MAX_VALUE));
// Create copy of image asset.
CreativeAsset creativeAsset = new CreativeAsset();
creativeAsset.setFileName("image.jpg");
creativeAsset.setAssetByteArray(Media.getMediaDataFromUrl(
imageCreative.getPrimaryImageAsset().getAssetUrl()));
creativeAsset.setSize(imageCreative.getPrimaryImageAsset().getSize());
imageCreative.setPrimaryImageAsset(creativeAsset);
// Create the creative on the server.
Creative[] creatives =
creativeService.createCreatives(new Creative[] {imageCreative});