AdsApp.​ProductChannelBuilder

  • This page documents the ProductChannelBuilder, used for creating new Product Channels in Google Ads.

  • You can specify the bid, channel, and value for the new Product Channel using the builder's methods.

  • The build() method finalizes the Product Channel creation and returns a ProductChannelOperation.

  • Specifying the channel using withChannel() is mandatory before building the Product Channel.

  • If the bid is not specified using withBid(), the parent product group's bid will be used.

Builder for ProductChannel objects.

Methods:

MemberTypeDescription
build() AdsApp.ProductChannelOperation Builds the product channel.
withBid(bid) AdsApp.ProductChannelBuilder Specifies the bid of the product channel.
withChannel(channel) AdsApp.ProductChannelBuilder Specifies the channel of the new product channel.
withValue(value) 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.