AdsApp.​ProductConditionBuilder

Builder for ProductCondition objects.

Methods:

MemberTypeDescription
buildAdsApp.ProductConditionOperationBuilds the product condition.
withBidAdsApp.ProductConditionBuilderSpecifies the bid of the product condition.
withConditionAdsApp.ProductConditionBuilderSpecifies the condition of the new product condition.
withValueAdsApp.ProductConditionBuilderSpecifies 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.ProductConditionOperationThe 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
biddoubleThe bid.

Return values:

TypeDescription
AdsApp.ProductConditionBuilderThe 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
conditionStringThe condition to specify for the new product condition.

Return values:

TypeDescription
AdsApp.ProductConditionBuilderProduct condition builder.

withValue(value)

Specifies the value of the product condition.

Arguments:

NameTypeDescription
valueStringThe value.

Return values:

TypeDescription
AdsApp.ProductConditionBuilderThe ProductConditionBuilder with the specified value.