AdsApp.BiddingStrategy
Stay organized with collections
Save and categorize content based on your preferences.
Represents a flexible bidding strategy. Bidding strategies store shared
bidding configuration data and are account-level objects. For more
information, refer to Using flexible bid
strategies
. Methods:
adGroups()
Returns the selector of all ad groups that use this bidding strategy. Return values:
campaigns()
Returns the selector of all search and display campaigns that use this
bidding strategy. Return values:
getEntityType()
Returns the type of this entity as a String
, in this case, "BiddingStrategy"
. Return values:
getId()
Returns the ID of the bidding strategy. Return values:
getName()
Returns the name of the bidding strategy. Return values:
getResourceName()
Returns the resource name of the bidding strategy. Return values:
getStatsFor(dateRange)
Returns stats for the specified date range. Supported values: TODAY, YESTERDAY, LAST_7_DAYS, THIS_WEEK_SUN_TODAY, LAST_WEEK,
LAST_14_DAYS, LAST_30_DAYS, LAST_BUSINESS_WEEK, LAST_WEEK_SUN_SAT,
THIS_MONTH, LAST_MONTH, ALL_TIME
.
Example:
var
stats
=
biddingStrategy
.
getStatsFor
(
"THIS_MONTH"
);
Arguments:
Return values:
getStatsFor(dateFrom, dateTo)
Returns stats for the specified custom date range. Both parameters can be
either an object containing year, month, and day fields, or an 8-digit
string in YYYYMMDD
form. For instance, March 24th,
2013
is represented as either {year: 2013, month: 3, day:
24}
or "20130324"
. The date range is inclusive on both
ends, so forDateRange("20130324", "20130324")
defines a range
of a single day. Arguments:
Return values:
getType()
Returns the type of the bidding strategy. Return values:
keywords()
Returns the selector of all keywords that use this bidding strategy. Return values:
Returns the selector of all shopping ad groups that use this bidding
strategy. Return values:
Returns the selector of all shopping campaigns that use this bidding
strategy. 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 2025-09-03 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 2025-09-03 UTC."],[[["\u003cp\u003eBidding strategies are flexible and stored at the account level, containing shared bidding configuration data.\u003c/p\u003e\n"],["\u003cp\u003eThey can be applied to various campaign types, including ad groups, campaigns, keywords, and shopping campaigns.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve performance statistics for specific date ranges using methods like \u003ccode\u003egetStatsFor()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBiddingStrategy\u003c/code\u003e objects allow access to key information like ID, name, and type.\u003c/p\u003e\n"],["\u003cp\u003eFor further details, consult the Google Ads support documentation on using flexible bid strategies.\u003c/p\u003e\n"]]],[],null,[]]