AI-generated Key Takeaways
-
This builder facilitates the creation and management of video placements within Google Ads campaigns.
-
It offers methods to define placement URLs and build or exclude placements using operations.
-
The
withUrl()
method is mandatory for setting the video placement URL. -
Upon building, it returns a
VideoPlacementOperation
orExcludedVideoPlacementOperation
object for further campaign integration.
Example usage:
var videoPlacementBuilder = videoAdGroup .videoTargeting() .newPlacementBuilder(); var videoPlacementOperation = videoPlacementBuilder .withUrl('"http://www.site.com"') // required .build(); // create the placement
Methods:
Member | Type | Description |
---|---|---|
build() | AdsApp.VideoPlacementOperation |
Builds the video placement. |
exclude() | AdsApp.ExcludedVideoPlacementOperation |
Builds the excluded video placement. |
withUrl(url) | AdsApp.VideoPlacementBuilder |
Sets the URL of the placement. |
build()
Builds the video placement. Returns a
VideoPlacementOperation that corresponds to the creation of the VideoPlacement. Return values:
Type | Description |
---|---|
AdsApp.VideoPlacementOperation |
The VideoPlacementOperation. |
exclude()
Builds the excluded video placement. Returns an
ExcludedVideoPlacementOperation that corresponds to the creation of the ExcludedVideoPlacement. Return values:
Type | Description |
---|---|
AdsApp.ExcludedVideoPlacementOperation |
The ExcludedVideoPlacementOperation. |
withUrl(url)
Sets the URL of the placement. This field is required. Arguments:
Name | Type | Description |
---|---|---|
url | String |
The placement URL. |
Return values:
Type | Description |
---|---|
AdsApp.VideoPlacementBuilder |
A VideoPlacementBuilder with the specified URL. |