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:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-13 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-08-13 UTC."}
[[["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 2024-08-13 UTC."]]