AdsApp.BiddingStrategyArgsBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Builder for setting arguments when applying a bidding strategy to a campaign.
Methods:
args()
Returns a JavaScript object representation of the specified args.
Return values:
withCpcBidCeiling(cpc)
Sets the cpc bid ceiling for a bidding strategy (specified in the account's
currency).
Arguments:
| Name | Type | Description |
| cpc |
double |
The cpc bid ceiling. |
Return values:
withEnhancedCpcEnabled(enhancedCpcEnabled)
Enables or disables enhanced cpc for a bidding strategy.
Arguments:
| Name | Type | Description |
| enhancedCpcEnabled |
boolean |
Whether enhanced cpc is enabled or disabled. |
Return values:
withLocationFraction(locationFraction)
Sets the desired percentage of ads to be shown in the targeted location.
Specified as a percentage from 0-100. To specify the targeted location,
call withLocationType.
Arguments:
| Name | Type | Description |
| locationFraction |
double |
The location fraction. |
Return values:
withLocationType(locationType)
Sets the targeted location for ads. Accepted values are: ANYWHERE_ON_PAGE,
TOP_OF_PAGE, ABSOLUTE_TOP_OF_PAGE
To specify the desired percentage of ads to show at the targeted
location, call withLocationFraction.
Arguments:
| Name | Type | Description |
| locationType |
String |
The location type. |
Return values:
withTargetRoas(targetRoas)
Sets the target roas for a bidding strategy. This is the desired revenue
(based on conversion data) per unit of spend. Value must be between 0.01
and 1000.0 inclusive.
Arguments:
| Name | Type | Description |
| targetRoas |
double |
The cpc bid floor. |
Return values: