AdWordsApp.​YouTubeChannelBidding

Methods:

MemberTypeDescription
clearCpc void Clears the max CPC bid for this YouTube channel.
clearCpm void Clears the CPM bid for this YouTube channel.
getCpc double Returns the max CPC bid for this YouTube channel.
getCpm double Returns the CPM bid for this YouTube channel.
getStrategy AdWordsApp.BiddingStrategy Returns the flexible bidding strategy of the YouTube channel.
getStrategySource String Returns the bidding strategy source of this YouTube channel.
getStrategyType String Returns the bidding strategy type of this YouTube channel.
setCpc void Sets the max CPC bid for this YouTube channel.
setCpm void Sets the CPM bid for this YouTube channel.

clearCpc()

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

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

Returns nothing.

clearCpm()

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

Please note that although this method will effectively clear the CPM bid for this YouTube channel, the change may have no effect on actual bidding if this YouTube channel 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 YouTube channel.

Return values:

TypeDescription
double The max CPC bid for this YouTube channel.

getCpm()

Returns the CPM bid for this YouTube channel.

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

Return values:

TypeDescription
double The CPM bid for this YouTube channel.

getStrategy()

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

Return values:

TypeDescription
AdWordsApp.BiddingStrategy The flexible bidding strategy associated with this YouTube channel.

getStrategySource()

Returns the bidding strategy source of this YouTube channel. 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 YouTube channel.

getStrategyType()

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

setCpc(cpc)

Sets the max CPC bid for this YouTube channel.

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

Returns nothing.

Arguments:

NameTypeDescription
cpc double The max CPC bid for this YouTube channel.

setCpm(cpm)

Sets the CPM bid for this YouTube channel.

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

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

Returns nothing.

Arguments:

NameTypeDescription
cpm double The CPM bid for this YouTube channel.

Send feedback about...

Google Ads scripts
Google Ads scripts
Need help? Visit our support page.