# Google Analytics Admin V1alpha Client - Class MeasurementUnit (0.32.0)

0.32.0 (latest) 0.31.3 0.30.0 0.29.1 0.28.1 0.27.0 0.26.0 0.25.2 0.24.2 0.23.0 0.22.5 0.20.0 0.19.0 0.18.1 0.17.0 0.16.0 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.2

> [!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 Analytics Admin V1alpha Client class MeasurementUnit.

Possible types of representing the custom metric's value.

Currency representation may change in the future, requiring a breaking API
change.

Protobuf type `google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit`

## Namespace

Google \\ Analytics \\ Admin \\ V1alpha \\ CustomMetric

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### MEASUREMENT_UNIT_UNSPECIFIED

    Value: 0

MeasurementUnit unspecified or missing.

Generated from protobuf enum `MEASUREMENT_UNIT_UNSPECIFIED = 0;`

### STANDARD

    Value: 1

This metric uses default units.

Generated from protobuf enum `STANDARD = 1;`

### CURRENCY

    Value: 2

This metric measures a currency.

Generated from protobuf enum `CURRENCY = 2;`

### FEET

    Value: 3

This metric measures feet.

Generated from protobuf enum `FEET = 3;`

### METERS

    Value: 4

This metric measures meters.

Generated from protobuf enum `METERS = 4;`

### KILOMETERS

    Value: 5

This metric measures kilometers.

Generated from protobuf enum `KILOMETERS = 5;`

### MILES

    Value: 6

This metric measures miles.

Generated from protobuf enum `MILES = 6;`

### MILLISECONDS

    Value: 7

This metric measures milliseconds.

Generated from protobuf enum `MILLISECONDS = 7;`

### SECONDS

    Value: 8

This metric measures seconds.

Generated from protobuf enum `SECONDS = 8;`

### MINUTES

    Value: 9

This metric measures minutes.

Generated from protobuf enum `MINUTES = 9;`

### HOURS

    Value: 10

This metric measures hours.

Generated from protobuf enum `HOURS = 10;`