Builder for [ProductCategory](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategory) objects.

### Methods:

| Member | Type | Description |
|---|---|---|
| [build()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategorybuilder#build) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategoryoperation` | Builds the product category. |
| [withBid(bid)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategorybuilder#withBid_bid) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategorybuilder` | Specifies the bid of the product category. |
| [withName(productCategoryName)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategorybuilder#withName_productCategoryName) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategorybuilder` | Specifies the name of the new product category. |
| [withName(productCategoryName, optionalLanguageCode)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategorybuilder#withName_productCategoryName-optionalLanguageCode) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategorybuilder` | Specifies the name of the new product category. |
| [withValue(value)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategorybuilder#withValue_value) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategorybuilder` | Specifies the value of the product category. |
| [withValue(value, optionalLanguageCode)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategorybuilder#withValue_value-optionalLanguageCode) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategorybuilder` |   |

## `build()`

Builds the product category. Returns a [ProductCategoryOperation](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategoryoperation) that corresponds to the creation of the [ProductCategory](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategory).

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategoryoperation` | The ProductCategoryOperation. |

## `withBid(bid)`

Specifies the bid of the product category. 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 |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategorybuilder` | The ProductCategoryBuilder with the specified bid. |

## `withName(productCategoryName)`

Specifies the name of the new product category. If the name is unspecified before calling 'build', the category will fail to build.

### Arguments:

| Name | Type | Description |
|---|---|---|
| productCategoryName | `String` | The name to specify for the new product category. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategorybuilder` | Product category builder. |

## `withName(productCategoryName, optionalLanguageCode)`

Specifies the name of the new product category. If the name is unspecified before calling 'build', the category will fail to build.

### Arguments:

| Name | Type | Description |
|---|---|---|
| productCategoryName | `String` | The name to specify for the new product category. |
| optionalLanguageCode | `String` | **Optional**locale to be used for localising the product bidding category names.**** |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategorybuilder` | Product category builder. |

## `withValue(value)`

Specifies the value of the product category.

### Arguments:

| Name | Type | Description |
|---|---|---|
| value | `String` | The value. |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategorybuilder` | The ProductCategoryBuilder with the specified value. |

## `withValue(value, optionalLanguageCode)`

### Arguments:

| Name | Type | Description |
|---|---|---|
| value | `String` |   |
| optionalLanguageCode | `String` | **Optional**locale to be used for localising the product bidding category names. If unspecified, the language code defaults to "en-US".**** |

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_productcategorybuilder` |   |