AI-generated Key Takeaways
-
This content provides access to a shopping ad group's bidding fields.
-
You can retrieve the max CPC bid and bidding strategy information for a shopping ad group using the provided methods.
-
The bidding strategy source will always be 'CAMPAIGN'.
-
You can set the max CPC bid for a shopping ad group using the provided method.
Methods:
| Member | Type | Description |
|---|---|---|
| getCpc() | double |
Returns the max CPC bid for this shopping ad group. |
| getStrategy() | AdsApp.BiddingStrategy |
Returns the flexible bidding strategy of the shopping ad group. |
String |
Returns the bidding strategy source of this shopping ad group. | |
| getStrategyType() | String |
Returns the bidding strategy type of this shopping ad group. |
| 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 |
|---|---|
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'.
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.
Returns nothing.
Arguments:
| Name | Type | Description |
|---|---|---|
| cpc | double |
The max CPC bid for this shopping ad group. |