AdsApp.​ShoppingCampaignBidding

Provides access to a shopping campaign's bidding fields.

Methods:

MemberTypeDescription
getStrategy AdsApp.BiddingStrategy Returns the flexible bidding strategy of the shopping campaign.
getStrategySource String Returns the bidding strategy source of this shopping campaign.
getStrategyType String Returns the bidding strategy type of this shopping campaign.
setStrategy void Sets the bidding strategy of this shopping campaign to the specified standard bidding strategy.
setStrategy void Sets the bidding strategy of this shopping campaign to the provided portfolio bidding strategy.

getStrategy()

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

Return values:

TypeDescription
AdsApp.BiddingStrategy The flexible bidding strategy associated with this shopping campaign.

getStrategySource()

Returns the bidding strategy source of this shopping campaign. Always returns 'CAMPAIGN'.

Return values:

TypeDescription
String The bidding strategy source of this shopping campaign.

getStrategyType()

Returns the bidding strategy type of this shopping campaign. 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 campaign.

setStrategy(biddingStrategy)

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

setStrategy(biddingStrategy)

Sets the bidding strategy of this shopping campaign to the provided portfolio bidding strategy.

Note that AdsApp 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 Google Ads user interface, and then access that bidding strategy using BiddingStrategySelector or BiddingStrategyIterator.

Returns nothing.

Arguments:

NameTypeDescription
biddingStrategy AdsApp.BiddingStrategy A portfolio bidding strategy for the shopping campaign.