AdsApp.​ProductConditionBuilder

Builder for ProductCondition objects.

Methods:

MemberTypeDescription
build AdsApp.ProductConditionOperation Builds the product condition.
withBid AdsApp.ProductConditionBuilder Specifies the bid of the product condition.
withCondition AdsApp.ProductConditionBuilder Specifies the condition of the new product condition.
withValue AdsApp.ProductConditionBuilder Specifies the value of the product condition.

build()

Builds the product condition. Returns a ProductConditionOperation that corresponds to the creation of the ProductCondition.

Return values:

TypeDescription
AdsApp.ProductConditionOperation The ProductConditionOperation.

withBid(bid)

Specifies the bid of the product condition. If this is unspecified, will use the bid of the parent product group.

Arguments:

NameTypeDescription
bid double The bid.

Return values:

TypeDescription
AdsApp.ProductConditionBuilder The ProductConditionBuilder with the specified bid.

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:

NameTypeDescription
condition String The condition to specify for the new product condition.

Return values:

TypeDescription
AdsApp.ProductConditionBuilder Product condition builder.

withValue(value)

Specifies the value of the product condition.

Arguments:

NameTypeDescription
value String The value.

Return values:

TypeDescription
AdsApp.ProductConditionBuilder The ProductConditionBuilder with the specified value.