Provides access to a shopping ad group's bidding fields.

### Methods:

| Member | Type | Description |
|---|---|---|
| [getCpc()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_shoppingadgroupbidding#getCpc) | `double` | Returns the max CPC bid for this shopping ad group. |
| [getStrategy()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_shoppingadgroupbidding#getStrategy) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_biddingstrategy` | Returns the flexible bidding strategy of the shopping ad group. |
| [getStrategySource()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_shoppingadgroupbidding#getStrategySource) | `String` | Returns the bidding strategy source of this shopping ad group. |
| [getStrategyType()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_shoppingadgroupbidding#getStrategyType) | `String` | Returns the bidding strategy type of this shopping ad group. |
| [setCpc(cpc)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_shoppingadgroupbidding#setCpc_cpc) | `void` | Sets the max CPC bid for this shopping ad group. |

## `getCpc()`

Returns the max CPC bid for this shopping ad group.

### Return values:

| Type | Description |
|---|---|
| `double` | The max CPC bid for this shopping ad group. |

## `getStrategy()`

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

## `getStrategySource()`

Returns the bidding strategy source of this shopping ad group. 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 shopping ad group. |

## `getStrategyType()`

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

## `setCpc(cpc)`

Sets the max CPC bid for this shopping ad group.

Please note that although this method will effectively set the max CPC
bid for this
shopping ad group, the change may have no effect on actual bidding if
this
shopping ad group 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 shopping ad group. |