Builder for a YouTube video under construction.
Typical usage:
var youTubeVideoId = "123ABCabc-_";
var mediaOperation = AdsApp.adMedia().newVideoBuilder()
.withYouTubeVideoId(youTubeVideoId)
.build();
var video = mediaOperation.getResult();
Methods:
build()
Adds a video in media server. Returns a
MediaOperation
that
can be used to get the new video (or access any associated errors if the
creation failed).
Return values:
withYouTubeVideoId(youTubeVideoId)
Sets YouTube video ID. This field is required.
Arguments:
Name | Type | Description |
youTubeVideoId |
String |
The YouTube video ID. |
Return values: