The flexible bidding strategy associated with this ad group.
getStrategySource()
Returns the bidding strategy source of this ad group. Always
returns 'CAMPAIGN'.
Return values:
Type
Description
String
The bidding strategy source of this ad group.
getStrategyType()
Returns the bidding strategy type of this 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 ad group.
setCpa(cpa)
Sets the Target CPA bid for this ad group.
Please note that although this method will effectively set the Target
CPA bid for this
ad group, the change may have no effect on actual bidding if
this
ad group has a BiddingStrategy which does not
involve Target CPA bids.
Returns nothing.
Arguments:
Name
Type
Description
cpa
double
The Target CPA bid for this ad group.
setCpc(cpc)
Sets the max CPC bid for this ad group.
Please note that although this method will effectively set the max CPC
bid for this
ad group, the change may have no effect on actual bidding if
this
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 ad group.
setCpm(cpm)
Sets the CPM bid for this ad group.
Please note that although this method will effectively set the CPM bid
for this
ad group, the change may have no effect on actual bidding if
this
ad group has a BiddingStrategy which does not
involve CPM bids.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eProvides access to an AdGroup's bidding fields, allowing retrieval and modification of bidding strategies and values.\u003c/p\u003e\n"],["\u003cp\u003eEnables retrieval of Target CPA, max CPC, and CPM bids using \u003ccode\u003egetCpa()\u003c/code\u003e, \u003ccode\u003egetCpc()\u003c/code\u003e, and \u003ccode\u003egetCpm()\u003c/code\u003e respectively.\u003c/p\u003e\n"],["\u003cp\u003eAllows setting Target CPA, max CPC, and CPM bids using \u003ccode\u003esetCpa()\u003c/code\u003e, \u003ccode\u003esetCpc()\u003c/code\u003e, and \u003ccode\u003esetCpm()\u003c/code\u003e respectively.\u003c/p\u003e\n"],["\u003cp\u003eOffers methods to retrieve the flexible bidding strategy and its type associated with the ad group.\u003c/p\u003e\n"],["\u003cp\u003eNote: Changes to bid values might not affect actual bidding if the ad group's bidding strategy doesn't utilize them.\u003c/p\u003e\n"]]],[],null,["# AdsApp.AdGroupBidding\n\nProvides access to an AdGroup's bidding fields.\n\n### Methods:\n\n| Member | Type | Description |\n|-------------------------------------------|--------------------------------------------------------------------------------------------|--------------------------------------------------------|\n| [getCpa()](#getCpa) | `double` | Returns the Target CPA bid for this ad group. |\n| [getCpc()](#getCpc) | `double` | Returns the max CPC bid for this ad group. |\n| [getCpm()](#getCpm) | `double` | Returns the CPM bid for this ad group. |\n| [getStrategy()](#getStrategy) | [AdsApp.BiddingStrategy](/google-ads/scripts/docs/reference/adsapp/adsapp_biddingstrategy) | Returns the flexible bidding strategy of the ad group. |\n| [getStrategySource()](#getStrategySource) | `String` | Returns the bidding strategy source of this ad group. |\n| [getStrategyType()](#getStrategyType) | `String` | Returns the bidding strategy type of this ad group. |\n| [setCpa(cpa)](#setCpa_cpa) | `void` | Sets the Target CPA bid for this ad group. |\n| [setCpc(cpc)](#setCpc_cpc) | `void` | Sets the max CPC bid for this ad group. |\n| [setCpm(cpm)](#setCpm_cpm) | `void` | Sets the CPM bid for this ad group. |\n\n`getCpa()`\n----------\n\nReturns the Target CPA bid for this ad group.\n\n### Return values:\n\n| Type | Description |\n|----------|---------------------------------------|\n| `double` | The Target CPA bid for this ad group. |\n\n`getCpc()`\n----------\n\nReturns the max CPC bid for this ad group.\n\n### Return values:\n\n| Type | Description |\n|----------|------------------------------------|\n| `double` | The max CPC bid for this ad group. |\n\n`getCpm()`\n----------\n\nReturns the CPM bid for this ad group.\n\nSee [Cost-per-thousand\nimpressions (CPM)](//support.google.com/google-ads/answer/6310) for more information.\n\n### Return values:\n\n| Type | Description |\n|----------|--------------------------------|\n| `double` | The CPM bid for this ad group. |\n\n`getStrategy()`\n---------------\n\nReturns the flexible bidding strategy of the ad group. If this 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 ad group. |\n\ngetStrategySource()\n-------------------\n\nReturns the bidding strategy source of this 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 ad group. |\n\n`getStrategyType()`\n-------------------\n\nReturns the bidding strategy type of this 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 ad group. |\n\n`setCpa(cpa)`\n-------------\n\nSets the Target CPA bid for this ad group.\n\nPlease note that although this method will effectively set the Target\nCPA bid for this\nad group, the change may have no effect on actual bidding if\nthis\nad group has a [BiddingStrategy](/google-ads/scripts/docs/reference/adsapp/adsapp_biddingstrategy) which does not\ninvolve Target CPA bids.\n\nReturns nothing.\n\n### Arguments:\n\n| Name | Type | Description |\n|------|----------|---------------------------------------|\n| cpa | `double` | The Target CPA bid for this ad group. |\n\n`setCpc(cpc)`\n-------------\n\nSets the max CPC bid for this ad group.\n\nPlease note that although this method will effectively set the max CPC\nbid for this\nad group, the change may have no effect on actual bidding if\nthis\nad 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 ad group. |\n\n`setCpm(cpm)`\n-------------\n\nSets the CPM bid for this ad group.\n\nPlease note that although this method will effectively set the CPM bid\nfor this\nad group, the change may have no effect on actual bidding if\nthis\nad group has a [BiddingStrategy](/google-ads/scripts/docs/reference/adsapp/adsapp_biddingstrategy) which does not\ninvolve CPM bids.\n\nSee [Cost-per-thousand\nimpressions (CPM)](//support.google.com/google-ads/answer/6310) for more information.\n\nReturns nothing.\n\n### Arguments:\n\n| Name | Type | Description |\n|------|----------|--------------------------------|\n| cpm | `double` | The CPM bid for this ad group. |"]]