AdWordsApp.​ShoppingAdGroupBuilder

Builder for a shopping ad group under construction.

Typical usage:

 var shoppingAdGroupBuilder = campaign.newAdGroupBuilder();
 var shoppingAdGroupOperation = shoppingAdGroupBuilder
    .withName("shopping ad group name")
    .withStatus("PAUSED")
    .build();
 var shoppingAdGroup = shoppingAdGroupOperation.getResult();

Methods:

MemberTypeDescription
build AdWordsApp.ShoppingAdGroupOperation Creates a ShoppingAdGroup.
withBiddingStrategy AdWordsApp.ShoppingAdGroupBuilder Sets the bidding strategy of the new shopping ad group to the specified standard bidding strategy.
withBiddingStrategy AdWordsApp.ShoppingAdGroupBuilder Sets the bidding strategy of the new shopping ad group to the specified value.
withCpc AdWordsApp.ShoppingAdGroupBuilder Sets the max CPC bid of the new shopping ad group to the specified value.
withName AdWordsApp.ShoppingAdGroupBuilder Sets the name of the new shopping ad group to the specified value.
withStatus AdWordsApp.ShoppingAdGroupBuilder Sets the status of the new shopping ad group to the specified value.

build()

Creates a ShoppingAdGroup. Returns a ShoppingAdGroupOperation that can be used to get the new shopping ad group (or access any associated errors if creation failed).

Return values:

TypeDescription
AdWordsApp.ShoppingAdGroupOperation The associated shopping ad group operation.

withBiddingStrategy(biddingStrategy)

Sets the bidding strategy of the new shopping ad group to the specified standard bidding strategy.

The AdWords API bidding guide contains a list of all valid standard bidding strategies. Note that specifying portfolio strategies will result in error.

Arguments:

NameTypeDescription
biddingStrategy String The standard bidding strategy of the shopping ad group.

Return values:

TypeDescription
AdWordsApp.ShoppingAdGroupBuilder The shopping ad group builder with the specified bidding strategy.

withBiddingStrategy(biddingStrategy)

Sets the bidding strategy of the new shopping ad group to the specified value.

Arguments:

NameTypeDescription
biddingStrategy AdWordsApp.BiddingStrategy The portfolio bidding strategy of the shopping ad group.

Return values:

TypeDescription
AdWordsApp.ShoppingAdGroupBuilder The shopping ad group builder with the specified bidding strategy.

withCpc(cpc)

Sets the max CPC bid of the new shopping ad group to the specified value.

Arguments:

NameTypeDescription
cpc double The max CPC bid of the shopping ad group.

Return values:

TypeDescription
AdWordsApp.ShoppingAdGroupBuilder The shopping ad group builder with the specified max CPC.

withName(name)

Sets the name of the new shopping ad group to the specified value. If ad group name is not set, the shopping ad group will assume a default name ('Ad Group #5').

Arguments:

NameTypeDescription
name String Shopping ad group name.

Return values:

TypeDescription
AdWordsApp.ShoppingAdGroupBuilder Shopping ad group builder with the specified name.

withStatus(status)

Sets the status of the new shopping 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.ShoppingAdGroupBuilder Shopping ad group builder with the specified status.

发送以下问题的反馈:

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