AdsApp.​ProductChannelExclusivityBuilder

  • This page documents the ProductChannelExclusivityBuilder, used for creating new product channel exclusivity settings in Google Ads.

  • The builder allows specifying the bid, channel exclusivity, and value for the new product channel exclusivity.

  • build() is the core method, used to finalize and create the ProductChannelExclusivityOperation.

  • If a bid is not specified using withBid(), it will default to the parent product group's bid.

  • Specifying channel exclusivity using withChannelExclusivity() is mandatory before building the product channel exclusivity.

Builder for ProductChannelExclusivity objects.

Methods:

MemberTypeDescription
build() AdsApp.ProductChannelExclusivityOperation Builds the product channel exclusivity.
withBid(bid) AdsApp.ProductChannelExclusivityBuilder Specifies the bid of the product channel exclusivity.
withChannelExclusivity(channelExclusivity) AdsApp.ProductChannelExclusivityBuilder Specifies the channel exclusivity of the new product channel exclusivity.
withValue(value) AdsApp.ProductChannelExclusivityBuilder Specifies the value of the product channel exclusivity.

build()

Builds the product channel exclusivity. Returns a ProductChannelExclusivityOperation that corresponds to the creation of the ProductChannelExclusivity.

Return values:

TypeDescription
AdsApp.ProductChannelExclusivityOperation The ProductChannelExclusivityOperation.

withBid(bid)

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

Arguments:

NameTypeDescription
bid double The bid.

Return values:

TypeDescription
AdsApp.ProductChannelExclusivityBuilder The ProductChannelExclusivityBuilder with the specified bid.

withChannelExclusivity(channelExclusivity)

Specifies the channel exclusivity of the new product channel exclusivity. This must be called before calling ProductChannelExclusivityBuilder.build() otherwise, creation of the ProductChannelExclusivity will fail.

Arguments:

NameTypeDescription
channelExclusivity String The channel exclusivity to specify for the new product channel exclusivity.

Return values:

TypeDescription
AdsApp.ProductChannelExclusivityBuilder Product channel exclusivity builder.

withValue(value)

Specifies the value of the product channel exclusivity.

Arguments:

NameTypeDescription
value String The value.

Return values:

TypeDescription
AdsApp.ProductChannelExclusivityBuilder The ProductChannelExclusivityBuilder with the specified value.