AdsApp.​CampaignBidding

Provides access to a campaign's bidding fields.

Methods:

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

getStrategy()

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

getStrategySource()

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

Return values:

TypeDescription
String The bidding strategy source of this campaign.

getStrategyType()

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

setStrategy(biddingStrategy)

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