AI-generated Key Takeaways
-
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 usingwithChannel(channel), and the value usingwithValue(value). -
Calling
withChannel()is required before callingbuild().
Methods:
| Member | Type | Description |
|---|---|---|
| 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:
| 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. |