This is the legacy documentation for Google Ads scripts. Go to the current docs.

AdsApp.​VideoTopicBuilder

Builder for VideoTopic objects.

Example usage:

 var videoTopicBuilder = videoAdGroup.videoTargeting().newTopicBuilder();
 var videoTopicOperation = videoTopicBuilder
   .withTopicId(3)     // required
   .build();           // create the topic

Methods:

MemberTypeDescription
build AdsApp.VideoTopicOperation Builds the video topic.
exclude AdsApp.ExcludedVideoTopicOperation Builds the excluded video topic.
withTopicId AdsApp.VideoTopicBuilder Sets the topic ID of the topic.

build()

Builds the video topic. Returns a VideoTopicOperation that corresponds to the creation of the VideoTopic.

Return values:

TypeDescription
AdsApp.VideoTopicOperation The VideoTopicOperation.

exclude()

Builds the excluded video topic. Returns an VideoTopicOperation that corresponds to the creation of the ExcludedVideoTopic.

Return values:

TypeDescription
AdsApp.ExcludedVideoTopicOperation The ExcludedVideoTopicOperation.

withTopicId(topicId)

Sets the topic ID of the topic. This field is required. The topic ID identifies the topic category. A list of valid topic IDs is available on our Verticals page.

Arguments:

NameTypeDescription
topicId long The topic ID of the topic.

Return values:

TypeDescription
AdsApp.VideoTopicBuilder A VideoTopicBuilder with the specified topic ID.