AdsApp.​AdMedia

Root object for fetching and creating media objects.

Methods:

MemberTypeDescription
media AdsApp.MediaSelector Returns a selector for all media in the account.
newImageBuilder AdsApp.ImageBuilder Returns a builder to upload an image.
newMediaBundleBuilder AdsApp.MediaBundleBuilder Returns a builder to upload a media bundle.
newVideoBuilder AdsApp.VideoBuilder Returns a builder to upload a video.

media()

Returns a selector for all media in the account.

Example:

var mediaSelector = AdsApp.adMedia().media();

Return values:

TypeDescription
AdsApp.MediaSelector A selector for all media in the account.

newImageBuilder()

Returns a builder to upload an image.

Return values:

TypeDescription
AdsApp.ImageBuilder A new image builder.

newMediaBundleBuilder()

Returns a builder to upload a media bundle.

Return values:

TypeDescription
AdsApp.MediaBundleBuilder A new media bundle builder.

newVideoBuilder()

Returns a builder to upload a video.

Return values:

TypeDescription
AdsApp.VideoBuilder A new video builder.

发送以下问题的反馈:

此网页
Google Ads scripts
Google Ads scripts
需要帮助?请访问我们的支持页面