Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
The ProductCustomLabelBuilder is used to create ProductCustomLabel objects, which can be used to organize and manage product groups.
You can specify the bid, type, and value of the product custom label using the withBid, withType, and withValue methods, respectively.
The build method finalizes the creation of the ProductCustomLabel and returns a ProductCustomLabelOperation to apply the changes.
Product custom label types are preferably set using INDEX0, INDEX1, etc., but legacy formats like CUSTOM_LABEL_0, CUSTOM_LABEL_1, etc., are also accepted.
If the bid is not explicitly specified using withBid, the product custom label will inherit the bid from its parent product group.
The ProductCustomLabelBuilder with the specified bid.
withType(type)
Specifies the type of custom label and returns the product custom label
builder. The preferred values for label types follow the pattern: INDEX0,
INDEX1, ..., but this method also accepts the legacy values formatted like:
CUSTOM_LABEL_0, CUSTOM_LABEL_1, ...
Arguments:
Name
Type
Description
type
String
The type of custom label. Possible values: INDEX0,
INDEX1, INDEX2, INDEX3,
INDEX4, CUSTOM_LABEL_0,
CUSTOM_LABEL_1, CUSTOM_LABEL_2,
CUSTOM_LABEL_3, CUSTOM_LABEL_4.
[[["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-09-23 UTC."],[],[]]