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.
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.