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
buildAdsApp.VideoTopicOperationBuilds the video topic.
excludeAdsApp.ExcludedVideoTopicOperationBuilds the excluded video topic.
withTopicIdAdsApp.VideoTopicBuilderSets 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.VideoTopicOperationThe VideoTopicOperation.

exclude()

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

Return values:

TypeDescription
AdsApp.ExcludedVideoTopicOperationThe 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
topicIdStringThe topic ID of the topic.

Return values:

TypeDescription
AdsApp.VideoTopicBuilderA VideoTopicBuilder with the specified topic ID.