AdsApp.​KeywordBidding

Provides access to a keyword's bidding fields.

Methods:

MemberTypeDescription
clearCpcvoidClears the max CPC bid for this keyword.
clearCpmvoidClears the CPM bid for this keyword.
getCpcdoubleReturns the max CPC bid for this keyword.
getCpmdoubleReturns the CPM bid for this keyword.
getStrategyAdsApp.BiddingStrategyReturns the flexible bidding strategy of the keyword.
getStrategySourceStringReturns the bidding strategy source of this keyword.
getStrategyTypeStringReturns the bidding strategy type of this keyword.
setCpcvoidSets the max CPC bid for this keyword.
setCpmvoidSets the CPM bid for this keyword.

clearCpc()

Clears the max CPC bid for this keyword. This will allow this keyword to inherit its bid from the ad group level.

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

Returns nothing.

clearCpm()

Clears the CPM bid for this keyword. This will allow this keyword to inherit its bid from the ad group level.

Please note that although this method will effectively clear the CPM bid for this keyword, the change may have no effect on actual bidding if this keyword has a BiddingStrategy which does not involve CPM bids.

See Cost-per-thousand impressions (CPM) for more information.

Returns nothing.

getCpc()

Returns the max CPC bid for this keyword.

Return values:

TypeDescription
doubleThe max CPC bid for this keyword.

getCpm()

Returns the CPM bid for this keyword.

See Cost-per-thousand impressions (CPM) for more information.

Return values:

TypeDescription
doubleThe CPM bid for this keyword.

getStrategy()

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

Return values:

TypeDescription
AdsApp.BiddingStrategyThe flexible bidding strategy associated with this keyword.

getStrategySource()

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

Return values:

TypeDescription
StringThe bidding strategy source of this keyword.

getStrategyType()

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

Return values:

TypeDescription
StringThe strategy type of this keyword.

setCpc(cpc)

Sets the max CPC bid for this keyword.

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

Returns nothing.

Arguments:

NameTypeDescription
cpcdoubleThe max CPC bid for this keyword.

setCpm(cpm)

Sets the CPM bid for this keyword.

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

See Cost-per-thousand impressions (CPM) for more information.

Returns nothing.

Arguments:

NameTypeDescription
cpmdoubleThe CPM bid for this keyword.