# Google Shopping Merchant Products V1beta 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

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Shopping Merchant Products V1beta Client class UnitPricingBaseMeasure.

The UnitPricingBaseMeasure of the product.

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

## Namespace

Google \\ Shopping \\ Merchant \\ Products \\ V1beta

## 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` |   |