Provides access to a display criterion's bidding fields.

### Methods:

| Member | Type | Description |
|---|---|---|
| [clearCpc()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_displaycriterionbidding#clearCpc) | `void` | Clears the max CPC bid for this display criterion. |
| [clearCpm()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_displaycriterionbidding#clearCpm) | `void` | Clears the CPM bid for this display criterion. |
| [getCpc()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_displaycriterionbidding#getCpc) | `double` | Returns the max CPC bid for this display criterion. |
| [getCpm()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_displaycriterionbidding#getCpm) | `double` | Returns the CPM bid for this display criterion. |
| [getStrategy()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_displaycriterionbidding#getStrategy) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_biddingstrategy` | Returns the flexible bidding strategy of the display criterion. |
| [getStrategySource()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_displaycriterionbidding#getStrategySource) | `String` | Returns the bidding strategy source of this display criterion. |
| [getStrategyType()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_displaycriterionbidding#getStrategyType) | `String` | Returns the bidding strategy type of this display criterion. |
| [setCpc(cpc)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_displaycriterionbidding#setCpc_cpc) | `void` | Sets the max CPC bid for this display criterion. |
| [setCpm(cpm)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_displaycriterionbidding#setCpm_cpm) | `void` | Sets the CPM bid for this display criterion. |

## `clearCpc()`

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

Please note that although this method will effectively clear the max CPC
bid for this
display criterion, the change may have no effect on actual bidding if
this
display criterion has a [BiddingStrategy](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_biddingstrategy) which does not
involve max CPC bids.

Returns nothing.

## `clearCpm()`

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

Please note that although this method will effectively clear the CPM bid
for this
display criterion, the change may have no effect on actual bidding if
this
display criterion has a [BiddingStrategy](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_biddingstrategy) which does not
involve CPM bids.

See [Cost-per-thousand
impressions (CPM)](https://support.google.com/google-ads/answer/6310) for more information.

Returns nothing.

## `getCpc()`

Returns the max CPC bid for this display criterion.

### Return values:

| Type | Description |
|---|---|
| `double` | The max CPC bid for this display criterion. |

## `getCpm()`

Returns the CPM bid for this display criterion.

See [Cost-per-thousand
impressions (CPM)](https://support.google.com/google-ads/answer/6310) for more information.

### Return values:

| Type | Description |
|---|---|
| `double` | The CPM bid for this display criterion. |

## `getStrategy()`

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

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_biddingstrategy` | The flexible bidding strategy associated with this display criterion. |

## `getStrategySource()`

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

> [!WARNING]
> **Deprecated.**Google Ads does not support setting bidding strategies at different levels. As a result, 'CAMPAIGN' is the only possible source for bidding strategies.

### Return values:

| Type | Description |
|---|---|
| `String` | The bidding strategy source of this display criterion. |

## `getStrategyType()`

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

### Return values:

| Type | Description |
|---|---|
| `String` | The strategy type of this display criterion. |

## `setCpc(cpc)`

Sets the max CPC bid for this display criterion.

Please note that although this method will effectively set the max CPC
bid for this
display criterion, the change may have no effect on actual bidding if
this
display criterion has a [BiddingStrategy](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_biddingstrategy) which does not
involve max CPC bids.

Returns nothing.

### Arguments:

| Name | Type | Description |
|---|---|---|
| cpc | `double` | The max CPC bid for this display criterion. |

## `setCpm(cpm)`

Sets the CPM bid for this display criterion.

Please note that although this method will effectively set the CPM bid
for this
display criterion, the change may have no effect on actual bidding if
this
display criterion has a [BiddingStrategy](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_biddingstrategy) which does not
involve CPM bids.

See [Cost-per-thousand
impressions (CPM)](https://support.google.com/google-ads/answer/6310) for more information.

Returns nothing.

### Arguments:

| Name | Type | Description |
|---|---|---|
| cpm | `double` | The CPM bid for this display criterion. |