long advertiserId, long campaignId) throws Exception {
// Request the service.
CreativeRemote service = dfaServices.get(session, CreativeRemote.class);
// Create the mobile display creative.
MobileDisplayCreative mobileDisplayCreative = new MobileDisplayCreative();
mobileDisplayCreative.setAdvertiserId(advertiserId);
mobileDisplayCreative.setName(creativeName);
mobileDisplayCreative.setArchived(false);
// The type ID for mobile creatives is 30. See GetCreativeTypes.java
mobileDisplayCreative.setTypeId(30);
// Set the mobile creative asset.
HTMLCreativeAsset htmlCreativeAsset = new MobileDisplayCreativeAsset();
htmlCreativeAsset.setAssetFilename(mobileAssetFileName);
mobileDisplayCreative.setCreativeAssets(new HTMLCreativeAsset[]{htmlCreativeAsset});
// Save the mobile display creative.
CreativeSaveResult creativeSaveResult = service.saveCreative(mobileDisplayCreative,
campaignId);