AdsApp.​AdAssets

Root object for fetching and creating asset objects. An asset can be an image, text, or video. Assets are deduplicated within a given customer account, so assets may be shared between different ads.

Methods:

MemberTypeDescription
assets AdsApp.AssetSelector Returns a selector for all assets in the account.
newImageAssetBuilder AdsApp.ImageAssetBuilder Returns a builder to upload an image asset.
newMediaBundleAssetBuilder AdsApp.MediaBundleAssetBuilder Returns a builder to upload a media bundle asset.
newYouTubeVideoAssetBuilder AdsApp.YouTubeVideoAssetBuilder Returns a builder to upload a YouTube video asset.

assets()

Returns a selector for all assets in the account.
var assetSelector = AdsApp.adAssets().assets();

Return values:

TypeDescription
AdsApp.AssetSelector A selector for all assets in the account.

newImageAssetBuilder()

Returns a builder to upload an image asset.

Return values:

TypeDescription
AdsApp.ImageAssetBuilder A new image asset builder.

newMediaBundleAssetBuilder()

Returns a builder to upload a media bundle asset.

Return values:

TypeDescription
AdsApp.MediaBundleAssetBuilder A new media bundle asset builder.

newYouTubeVideoAssetBuilder()

Returns a builder to upload a YouTube video asset.

Return values:

TypeDescription
AdsApp.YouTubeVideoAssetBuilder A new YouTube video asset builder.