AdsApp.VideoTopicBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Builder for
VideoTopic objects.
Example usage:
var videoTopicBuilder = videoAdGroup.videoTargeting().newTopicBuilder();
var videoTopicOperation = videoTopicBuilder
.withTopicId(3) // required
.build(); // create the topic
Methods:
build()
Builds the video topic. Returns a
VideoTopicOperation that corresponds to the creation of the
VideoTopic.
Return values:
exclude()
Builds the excluded video topic. Returns an
ExcludedVideoTopicOperation that corresponds to the creation of the
ExcludedVideoTopic.
Return values:
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:
Name | Type | Description |
topicId |
String |
The topic ID of the topic. |
Return values:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-18 UTC."],[[["This page documents the `VideoTopic` builder, used for creating and managing video topic targeting in Google Ads campaigns."],["The builder provides methods to set the topic ID and build the video topic or excluded video topic."],["`build()` creates a `VideoTopicOperation` to add a video topic, while `exclude()` creates an `ExcludedVideoTopicOperation` to exclude a topic."],["The required `withTopicId()` method sets the specific topic ID for targeting or exclusion, referencing the Verticals page for valid IDs."]]],[]]