AdsApp.​ProductChannelBuilder

Builder for ProductChannel objects.

Methods:

MemberTypeDescription
build AdsApp.ProductChannelOperation Builds the product channel.
withBid AdsApp.ProductChannelBuilder Specifies the bid of the product channel.
withChannel AdsApp.ProductChannelBuilder Specifies the channel of the new product channel.
withValue AdsApp.ProductChannelBuilder Specifies the value of the product channel.

build()

Builds the product channel. Returns a ProductChannelOperation that corresponds to the creation of the ProductChannel.

Return values:

TypeDescription
AdsApp.ProductChannelOperation The ProductChannelOperation.

withBid(bid)

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

Arguments:

NameTypeDescription
bid double The bid.

Return values:

TypeDescription
AdsApp.ProductChannelBuilder The ProductChannelBuilder with the specified bid.

withChannel(channel)

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

Arguments:

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

Return values:

TypeDescription
AdsApp.ProductChannelBuilder Product channel builder.

withValue(value)

Specifies the value of the product channel.

Arguments:

NameTypeDescription
value String The value.

Return values:

TypeDescription
AdsApp.ProductChannelBuilder The ProductChannelBuilder with the specified value.