AdsApp.​VideoPlacementBuilder

  • 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 or ExcludedVideoPlacementOperation object for further campaign integration.

Builder for VideoPlacement objects.

Example usage:

var videoPlacementBuilder = videoAdGroup
  .videoTargeting()
  .newPlacementBuilder();
var videoPlacementOperation = videoPlacementBuilder
  .withUrl('"http://www.site.com"')    // required
  .build();                            // create the placement

Methods:

MemberTypeDescription
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:

TypeDescription
AdsApp.VideoPlacementOperation The VideoPlacementOperation.

exclude()

Builds the excluded video placement. Returns an ExcludedVideoPlacementOperation that corresponds to the creation of the ExcludedVideoPlacement.

Return values:

TypeDescription
AdsApp.ExcludedVideoPlacementOperation The ExcludedVideoPlacementOperation.

withUrl(url)

Sets the URL of the placement. This field is required.

Arguments:

NameTypeDescription
url String The placement URL.

Return values:

TypeDescription
AdsApp.VideoPlacementBuilder A VideoPlacementBuilder with the specified URL.