# Google Shopping Merchant Products V1 Client - Class UnitPricingBaseMeasure (1.6.0)

1.6.0 (latest) 1.5.0 1.4.1 1.3.1 1.2.0 1.1.0 1.0.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.1 0.1.1 Reference documentation and code samples for the Google Shopping Merchant Products V1 Client class UnitPricingBaseMeasure.

The UnitPricingBaseMeasure of the product.

Generated from protobuf message `google.shopping.merchant.products.v1.UnitPricingBaseMeasure`

## Namespace

Google \\ Shopping \\ Merchant \\ Products \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ value` | `int|string` The denominator of the unit price. |
| `↳ unit` | `string` The unit of the denominator. |

### getValue

The denominator of the unit price.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setValue

The denominator of the unit price.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUnit

The unit of the denominator.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setUnit

The unit of the denominator.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |