AdWordsApp.​VideoBuilder

Builder for a YouTube video under construction.

Typical usage:

 var youTubeVideoId = "123ABCabc-_";
 var mediaOperation = AdWordsApp.adMedia().newVideoBuilder()
    .withYouTubeVideoId(youTubeVideoId);
    .build();
 var video = mediaOperation.getResult();

Methods:

MemberTypeDescription
build AdWordsApp.MediaOperation Adds a video in media server.
withYouTubeVideoId AdWordsApp.VideoBuilder Sets YouTube video ID.

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:

TypeDescription
AdWordsApp.MediaOperation The media operation.

withYouTubeVideoId(youTubeVideoId)

Sets YouTube video ID. This field is required.

Arguments:

NameTypeDescription
youTubeVideoId String The YouTube video ID.

Return values:

TypeDescription
AdWordsApp.VideoBuilder The video builder with the specified YouTube video ID.

Feedback geben zu...

AdWords Scripts
AdWords Scripts