AdsApp.MediaBundleAssetBuilder
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
Use the MediaBundleAssetBuilder to build new media bundle assets.
The build() method creates the bundle asset and returns an AssetOperation.
The withData(data) method sets the required data for the new bundle asset.
The withName(name) method sets the required name for the new bundle asset.
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:
withSyntheticContentAttestation(attestation)
Declares whether or not the new media bundle asset contains synthetic
(AI-generated) content.
Arguments:
Name Type Description
attestation
String
The synthetic content attestation, either
"NOT_SYNTHETIC" or "IS_SYNTHETIC".
Return values:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-11-16 UTC.
[null,null,["Last updated 2026-11-16 UTC."],[],[]]