AdWordsApp.​VideoAdGroupBuilder

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:

MemberTypeDescription
build AdWordsApp.VideoAdGroupOperation Creates a VideoAdGroup.
withAdGroupType AdWordsApp.VideoAdGroupBuilder Sets the video ad group type, either TRUE_VIEW_IN_STREAM, TRUE_VIEW_IN_DISPLAY or BUMPER.
withCpm AdWordsApp.VideoAdGroupBuilder Sets the CPM bid of the new video ad group to the specified value.
withCpv AdWordsApp.VideoAdGroupBuilder Sets the max CPV bid of the new video ad group to the specified value.
withName AdWordsApp.VideoAdGroupBuilder Sets the name of the new ad group to the specified value.
withStatus AdWordsApp.VideoAdGroupBuilder Sets the status of the new ad group to the specified value.

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:

TypeDescription
AdWordsApp.VideoAdGroupOperation The associated ad group operation.

withAdGroupType(adGroupType)

Sets the video ad group type, either TRUE_VIEW_IN_STREAM, TRUE_VIEW_IN_DISPLAY or BUMPER. This field is required.

Arguments:

NameTypeDescription
adGroupType String The type of the ad group.

Return values:

TypeDescription
AdWordsApp.VideoAdGroupBuilder Ad group builder with the specified ad group type.

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:

NameTypeDescription
cpm double The CPM bid of the video ad group.

Return values:

TypeDescription
AdWordsApp.VideoAdGroupBuilder The video ad group builder with the specified CPM.

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:

NameTypeDescription
cpv double The max CPV bid of the video ad group.

Return values:

TypeDescription
AdWordsApp.VideoAdGroupBuilder The video ad group builder with the specified max CPV.

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:

NameTypeDescription
name String Ad group name.

Return values:

TypeDescription
AdWordsApp.VideoAdGroupBuilder Ad group builder with the specified name.

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:

NameTypeDescription
status String Ad group status.

Return values:

TypeDescription
AdWordsApp.VideoAdGroupBuilder Ad group builder with the specified status.

发送以下问题的反馈:

此网页
AdWords Scripts
AdWords Scripts
需要帮助?请访问我们的支持页面