AdWordsApp.​ShoppingAdGroupBidding

Provides access to a shopping ad group's bidding fields.

Methods:

MemberTypeDescription
clearStrategy void Clears the bidding strategy for this shopping ad group.
getCpc double Returns the max CPC bid for this shopping ad group.
getStrategy AdWordsApp.BiddingStrategy Returns the flexible bidding strategy of the shopping ad group.
getStrategySource String Returns the bidding strategy source of this shopping ad group.
getStrategyType String Returns the bidding strategy type of this shopping ad group.
setCpc void Sets the max CPC bid for this shopping ad group.
setStrategy void Sets the bidding strategy of this shopping ad group to the provided portfolio bidding strategy.
setStrategy void Sets the bidding strategy of this shopping ad group to the specified standard bidding strategy.

clearStrategy()

Clears the bidding strategy for this shopping ad group. This will allow this shopping ad group to inherit its bidding strategy from the shopping campaign level.

Returns nothing.

getCpc()

Returns the max CPC bid for this shopping ad group.

Return values:

TypeDescription
double The max CPC bid for this shopping ad group.

getStrategy()

Returns the flexible bidding strategy of the shopping ad group. If this shopping ad group has an anonymous bidding strategy, or no bidding strategy, null is returned.

Return values:

TypeDescription
AdWordsApp.BiddingStrategy The flexible bidding strategy associated with this shopping ad group.

getStrategySource()

Returns the bidding strategy source of this shopping ad group. The bidding strategy source indicates where the bidding strategy came from: 'CAMPAIGN', 'ADGROUP', or 'CRITERION'.

Return values:

TypeDescription
String The bidding strategy source of this shopping ad group.

getStrategyType()

Returns the bidding strategy type of this shopping ad group. This may either be an anonymous bidding strategy, or the type of a flexible bidding strategy.

Return values:

TypeDescription
String The strategy type of this shopping ad group.

setCpc(cpc)

Sets the max CPC bid for this shopping ad group.

Please note that although this method will effectively set the max CPC bid for this shopping ad group, the change may have no effect on actual bidding if this shopping ad group has a BiddingStrategy which does not involve max CPC bids.

Returns nothing.

Arguments:

NameTypeDescription
cpc double The max CPC bid for this shopping ad group.

setStrategy(biddingStrategy)

Sets the bidding strategy of this shopping ad group to the provided portfolio bidding strategy.

Note that AdWordsApp does not support creating bidding strategies, so if the desired portfolio bidding strategy does not already exist in your account, you should first create the bidding strategy through the AdWords user interface, and then access that bidding strategy using BiddingStrategySelector or BiddingStrategyIterator.

Returns nothing.

Arguments:

NameTypeDescription
biddingStrategy AdWordsApp.BiddingStrategy A portfolio bidding strategy for the shopping ad group.

setStrategy(biddingStrategy)

Sets the bidding strategy of this 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.

Returns nothing.

Arguments:

NameTypeDescription
biddingStrategy String A string representation of a standard bidding strategy.

发送以下问题的反馈:

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