AdsApp.ProductChannelBuilder
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
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:
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-12-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-03 UTC."],[],[]]