Builds new media bundle assets.
Typical usage:
var assetBundleUrl = "http://www.example.com/example.zip";
var assetBundleBlob = UrlFetchApp.fetch(assetBundleUrl).getBlob();
var assetOperation = AdsApp.adAssets().newMediaBundleAssetBuilder()
.withName("name")
.withData(assetBundleBlob)
.build();
var bundleAsset = assetOperation.getResult();
Methods:
build()
Creates a bundle asset. Returns an
AssetOperation
that can be
used to get the new bundle asset (or access any associated errors if the
creation failed).
Return values:
withData(data)
Sets new bundle asset's data to the specified value. This field is
required.
Arguments:
Name | Type | Description |
data |
Blob.Blob |
The data for the asset bundle. |
Return values:
withName(name)
Sets new bundle asset's name to the specified value. This field is
required.
Arguments:
Name | Type | Description |
name |
String |
The name for the asset bundle. |
Return values: