For instance, to create a new product category, you might use:
var root = AdsApp.shoppingAdGroups().get().next().rootProductGroup(); root.newChild().categoryBuilder().withName('Electronics').build();
Methods:
Member | Type | Description |
---|---|---|
brandBuilder | AdsApp.ProductBrandBuilder |
Returns a product brand builder. |
categoryBuilder | AdsApp.ProductCategoryBuilder |
Returns a product category builder. |
channelBuilder | AdsApp.ProductChannelBuilder |
Returns a product channel builder. |
channelExclusivityBuilder | AdsApp.ProductChannelExclusivityBuilder |
Returns a product channel exclusivity builder. |
conditionBuilder | AdsApp.ProductConditionBuilder |
Returns a product condition builder. |
customLabelBuilder | AdsApp.ProductCustomLabelBuilder |
Returns a product custom label builder. |
itemIdBuilder | AdsApp.ProductItemIdBuilder |
Returns a product item ID builder. |
productTypeBuilder | AdsApp.ProductTypeBuilder |
Returns a product type builder. |
brandBuilder()
Returns a product brand builder. Return values:
Type | Description |
---|---|
AdsApp.ProductBrandBuilder |
A product brand builder. |
categoryBuilder()
Returns a product category builder. Return values:
Type | Description |
---|---|
AdsApp.ProductCategoryBuilder |
A product category builder. |
channelBuilder()
Returns a product channel builder. Return values:
Type | Description |
---|---|
AdsApp.ProductChannelBuilder |
A product channel builder. |
channelExclusivityBuilder()
Returns a product channel exclusivity builder. Return values:
Type | Description |
---|---|
AdsApp.ProductChannelExclusivityBuilder |
A product channel exclusivity builder. |
conditionBuilder()
Returns a product condition builder. Return values:
Type | Description |
---|---|
AdsApp.ProductConditionBuilder |
A product condition builder. |
customLabelBuilder()
Returns a product custom label builder. Return values:
Type | Description |
---|---|
AdsApp.ProductCustomLabelBuilder |
A product custom label builder. |
itemIdBuilder()
Returns a product item ID builder. Return values:
Type | Description |
---|---|
AdsApp.ProductItemIdBuilder |
A product item ID builder. |
productTypeBuilder()
Returns a product type builder. Return values:
Type | Description |
---|---|
AdsApp.ProductTypeBuilder |
A product type builder. |