Builder for a video ad group under construction.
Typical usage:
var videoAdGroupBuilder = videoCampaign.newVideoAdGroupBuilder();
var videoAdGroupOperation = videoAdGroupBuilder
.withName("ad group name")
.withStatus("PAUSED")
.withAdGroupType('TRUE_VIEW_IN_STREAM')
.build();
var videoAdGroup = videoAdGroupOperation.getResult();
Methods:
build()
Creates a
VideoAdGroup. Returns an
VideoAdGroupOperation that can be used to
get the new ad group (or access any associated errors if creation failed).
Return values:
withAdGroupType(adGroupType)
Sets the video ad group type, either
TRUE_VIEW_IN_STREAM
,
TRUE_VIEW_IN_DISPLAY
or
BUMPER
.
This field is required.
Arguments:
Name | Type | Description |
adGroupType |
String |
The type of the ad group. |
Return values:
withCpm(cpm)
Sets the CPM bid of the new video ad group to the specified value.
See
Cost-per-thousand impressions (CPM) for more information.
If the bid is not set, the ad group will assume a default max CPM bid of $0.01.
Arguments:
Name | Type | Description |
cpm |
double |
The CPM bid of the video ad group. |
Return values:
withCpv(cpv)
Sets the max CPV bid of the new video ad group to the specified value.
If the bid is not set, the ad group will assume a default max CPV bid of $0.01.
Arguments:
Name | Type | Description |
cpv |
double |
The max CPV bid of the video ad group. |
Return values:
withName(name)
Sets the name of the new ad group to the specified value. If ad group name is not set, the ad
group will assume a default name ('Ad Group #5').
Arguments:
Name | Type | Description |
name |
String |
Ad group name. |
Return values:
withStatus(status)
Sets the status of the new ad group to the specified value. If the status is not set, it will
default to
ENABLED
.
Arguments:
Name | Type | Description |
status |
String |
Ad group status. |
Return values: