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.
The flexible bidding strategy associated with this shopping ad group.
getStrategySource()
Returns the bidding strategy source of this shopping ad group. Always
returns 'CAMPAIGN'.
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 which does not
involve max CPC bids.
[null,null,["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eProvides access to a shopping ad group's bidding fields, allowing for management of bidding strategies and maximum CPC bids.\u003c/p\u003e\n"],["\u003cp\u003eEnables retrieval of information about the current bidding strategy, including its type and source (although strategy source is deprecated).\u003c/p\u003e\n"],["\u003cp\u003eOffers methods to set the maximum CPC bid for a shopping ad group, but the actual impact on bidding may depend on the chosen bidding strategy.\u003c/p\u003e\n"],["\u003cp\u003eIncludes functionalities to retrieve the maximum CPC bid and the flexible bidding strategy associated with a shopping ad group.\u003c/p\u003e\n"]]],[],null,["# AdsApp.ShoppingAdGroupBidding\n\nProvides access to a shopping ad group's bidding fields.\n\n### Methods:\n\n| Member | Type | Description |\n|-------------------------------------------|--------------------------------------------------------------------------------------------|-----------------------------------------------------------------|\n| [getCpc()](#getCpc) | `double` | Returns the max CPC bid for this shopping ad group. |\n| [getStrategy()](#getStrategy) | [AdsApp.BiddingStrategy](/google-ads/scripts/docs/reference/adsapp/adsapp_biddingstrategy) | Returns the flexible bidding strategy of the shopping ad group. |\n| [getStrategySource()](#getStrategySource) | `String` | Returns the bidding strategy source of this shopping ad group. |\n| [getStrategyType()](#getStrategyType) | `String` | Returns the bidding strategy type of this shopping ad group. |\n| [setCpc(cpc)](#setCpc_cpc) | `void` | Sets the max CPC bid for this shopping ad group. |\n\n`getCpc()`\n----------\n\nReturns the max CPC bid for this shopping ad group.\n\n### Return values:\n\n| Type | Description |\n|----------|---------------------------------------------|\n| `double` | The max CPC bid for this shopping ad group. |\n\n`getStrategy()`\n---------------\n\nReturns 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.\n\n### Return values:\n\n| Type | Description |\n|--------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|\n| [AdsApp.BiddingStrategy](/google-ads/scripts/docs/reference/adsapp/adsapp_biddingstrategy) | The flexible bidding strategy associated with this shopping ad group. |\n\ngetStrategySource()\n-------------------\n\nReturns the bidding strategy source of this shopping ad group. Always returns 'CAMPAIGN'. **Deprecated.**Google Ads does not support setting bidding strategies at different levels. As a result, 'CAMPAIGN' is the only possible source for bidding strategies.\n\n### Return values:\n\n| Type | Description |\n|----------|--------------------------------------------------------|\n| `String` | The bidding strategy source of this shopping ad group. |\n\n`getStrategyType()`\n-------------------\n\nReturns 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.\n\n### Return values:\n\n| Type | Description |\n|----------|----------------------------------------------|\n| `String` | The strategy type of this shopping ad group. |\n\n`setCpc(cpc)`\n-------------\n\nSets the max CPC bid for this shopping ad group.\n\nPlease note that although this method will effectively set the max CPC\nbid for this\nshopping ad group, the change may have no effect on actual bidding if\nthis\nshopping ad group has a [BiddingStrategy](/google-ads/scripts/docs/reference/adsapp/adsapp_biddingstrategy) which does not\ninvolve max CPC bids.\n\nReturns nothing.\n\n### Arguments:\n\n| Name | Type | Description |\n|------|----------|---------------------------------------------|\n| cpc | `double` | The max CPC bid for this shopping ad group. |"]]