Page Summary
-
The VideoAdBuilderSpace is the starting point for creating a video ad within a video ad group.
-
You can use specific builder methods like
inStreamAdBuilder()to create different types of video ads. -
The documentation provides details on various ad builder methods and their return types.
-
The
videoDiscoveryAdBuilder()is deprecated and should be replaced withinFeedAdBuilder().
Typical usage:
var videoAdOperation = videoAdGroup.newVideoAd().inStreamAdBuilder() .withVideo(video) .withAdName("Ad name") .withDisplayUrl("example.com") .withFinalUrl("http://www.example.com") .build(); var videoAd = videoAdOperation.getResult();
Methods:
bumperAdBuilder()
Returns a new bumper ad builder associated with the ad group. Return values:
| Type | Description |
|---|---|
AdsApp.BumperAdBuilder |
A new bumper ad builder associated with the ad group. |
inFeedAdBuilder()
Returns a new in-feed video ad builder associated with the ad group. Return values:
| Type | Description |
|---|---|
AdsApp.InFeedAdBuilder |
A new in-feed video ad builder associated with the ad group. |
inStreamAdBuilder()
Returns a new In-stream video ad builder associated with the ad group. Return values:
| Type | Description |
|---|---|
AdsApp.InStreamAdBuilder |
A new In-stream video ad builder associated with the ad group. |
nonSkippableAdBuilder()
Returns a new non-skippable ad builder associated with the ad group. Return values:
| Type | Description |
|---|---|
AdsApp.NonSkippableAdBuilder |
A new non-skippable ad builder associated with the ad group. |
responsiveVideoAdBuilder()
Returns a new responsive video ad builder associated with the ad group. Return values:
| Type | Description |
|---|---|
AdsApp.ResponsiveVideoAdBuilder |
A new responsive video ad builder associated with the ad group. |
