AdsApp.ProductChannelBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Builder for
ProductChannel
objects.
Methods:
build()
Builds the product channel. Returns a
ProductChannelOperation that corresponds
to the creation of the
ProductChannel.
Return values:
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:
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:
withValue(value)
Specifies the value of the product channel.
Arguments:
Name | Type | Description |
value |
String |
The value. |
Return values:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-25 UTC.
[null,null,["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eThis page documents the \u003ccode\u003eProductChannelBuilder\u003c/code\u003e, used for creating new Product Channels in Google Ads.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify the bid, channel, and value for the new Product Channel using the builder's methods.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ebuild()\u003c/code\u003e method finalizes the Product Channel creation and returns a \u003ccode\u003eProductChannelOperation\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSpecifying the channel using \u003ccode\u003ewithChannel()\u003c/code\u003e is mandatory before building the Product Channel.\u003c/p\u003e\n"],["\u003cp\u003eIf the bid is not specified using \u003ccode\u003ewithBid()\u003c/code\u003e, the parent product group's bid will be used.\u003c/p\u003e\n"]]],[],null,["# AdsApp.ProductChannelBuilder\n\nBuilder for [ProductChannel](/google-ads/scripts/docs/reference/adsapp/adsapp_productchannel) objects.\n\n### Methods:\n\n| Member | Type | Description |\n|----------------------------------------------|------------------------------------------------------------------------------------------------------------|---------------------------------------------------|\n| [build()](#build) | [AdsApp.ProductChannelOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_productchanneloperation) | Builds the product channel. |\n| [withBid(bid)](#withBid_bid) | [AdsApp.ProductChannelBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_productchannelbuilder) | Specifies the bid of the product channel. |\n| [withChannel(channel)](#withChannel_channel) | [AdsApp.ProductChannelBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_productchannelbuilder) | Specifies the channel of the new product channel. |\n| [withValue(value)](#withValue_value) | [AdsApp.ProductChannelBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_productchannelbuilder) | Specifies the value of the product channel. |\n\n`build()`\n---------\n\nBuilds the product channel. Returns a [ProductChannelOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_productchanneloperation) that corresponds to the creation of the [ProductChannel](/google-ads/scripts/docs/reference/adsapp/adsapp_productchannel).\n\n### Return values:\n\n| Type | Description |\n|------------------------------------------------------------------------------------------------------------|------------------------------|\n| [AdsApp.ProductChannelOperation](/google-ads/scripts/docs/reference/adsapp/adsapp_productchanneloperation) | The ProductChannelOperation. |\n\n`withBid(bid)`\n--------------\n\nSpecifies the bid of the product channel. If this is unspecified, will use the bid of the parent product group.\n\n### Arguments:\n\n| Name | Type | Description |\n|------|----------|-------------|\n| bid | `double` | The bid. |\n\n### Return values:\n\n| Type | Description |\n|--------------------------------------------------------------------------------------------------------|---------------------------------------------------|\n| [AdsApp.ProductChannelBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_productchannelbuilder) | The ProductChannelBuilder with the specified bid. |\n\n`withChannel(channel)`\n----------------------\n\nSpecifies the channel of the new product channel. This must be called before calling [ProductChannelBuilder.build()](/google-ads/scripts/docs/reference/adsapp/adsapp_productchannelbuilder#build) otherwise, creation of the [ProductChannel](/google-ads/scripts/docs/reference/adsapp/adsapp_productchannel) will fail.\n\n### Arguments:\n\n| Name | Type | Description |\n|---------|----------|-----------------------------------------------------|\n| channel | `String` | The channel to specify for the new product channel. |\n\n### Return values:\n\n| Type | Description |\n|--------------------------------------------------------------------------------------------------------|--------------------------|\n| [AdsApp.ProductChannelBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_productchannelbuilder) | Product channel builder. |\n\n`withValue(value)`\n------------------\n\nSpecifies the value of the product channel.\n\n### Arguments:\n\n| Name | Type | Description |\n|-------|----------|-------------|\n| value | `String` | The value. |\n\n### Return values:\n\n| Type | Description |\n|--------------------------------------------------------------------------------------------------------|-----------------------------------------------------|\n| [AdsApp.ProductChannelBuilder](/google-ads/scripts/docs/reference/adsapp/adsapp_productchannelbuilder) | The ProductChannelBuilder with the specified value. |"]]