AdsApp.​ProductChannelBuilder

  • ProductChannelBuilder is used to create ProductChannel objects.

  • The build() method constructs the product channel and returns a ProductChannelOperation.

  • You can specify the bid using withBid(bid) , the channel using withChannel(channel) , and the value using withValue(value) .

  • Calling withChannel() is required before calling build() .

Builder for ProductChannel objects.

Methods:

Member Type Description
AdsApp.ProductChannelOperation Builds the product channel.
AdsApp.ProductChannelBuilder Specifies the bid of the product channel.
AdsApp.ProductChannelBuilder Specifies the channel of the new product channel.
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:

Type Description
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:

Name Type Description
bid
double The bid.

Return values:

Type Description
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:

Name Type Description
channel
String The channel to specify for the new product channel.

Return values:

Type Description
AdsApp.ProductChannelBuilder Product channel builder.

withValue(value)

Specifies the value of the product channel.

Arguments:

Name Type Description
value
String The value.

Return values:

Type Description
AdsApp.ProductChannelBuilder The ProductChannelBuilder with the specified value.
Design a Mobile Site
View Site in Mobile | Classic
Share by: