AdsApp.ProductConditionBuilder
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
This page documents the ProductConditionBuilder
, used for creating new product conditions in Google Ads scripts.
It provides methods to specify the bid, condition, and value of the product condition being built.
The build()
method finalizes the product condition and returns a ProductConditionOperation
for execution.
If the withBid()
method is not used, the product condition will inherit the bid of its parent product group.
The withCondition()
method is mandatory, and the product condition will fail to build if a condition is not specified.
Builder for
ProductCondition
objects.
Methods:
build()
Builds the product condition. Returns a
ProductConditionOperation that corresponds
to the creation of the
ProductCondition .
Return values:
withBid(bid)
Specifies the bid of the product condition. If this is unspecified, will
use the bid of the parent product group.
Arguments:
Name Type Description
bid
double
The bid.
Return values:
withCondition(condition)
Specifies the condition of the new product condition. If the condition is
unspecified before calling 'build', the condition will fail to build.
Arguments:
Name Type Description
condition
String
The condition to specify for the new product condition.
Return values:
withValue(value)
Specifies the value of the product condition.
Arguments:
Name Type Description
value
String
The value.
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-23 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-23 UTC."],[],[]]