Google Analytics Admin V1alpha Client - Class MeasurementUnit (0.29.1)
Stay organized with collections
Save and categorize content based on your preferences.
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
MeasurementUnit unspecified or missing.
Generated from protobuf enum MEASUREMENT_UNIT_UNSPECIFIED = 0;
STANDARD
This metric uses default units.
Generated from protobuf enum STANDARD = 1;
CURRENCY
This metric measures a currency.
Generated from protobuf enum CURRENCY = 2;
FEET
This metric measures feet.
Generated from protobuf enum FEET = 3;
METERS
This metric measures meters.
Generated from protobuf enum METERS = 4;
KILOMETERS
This metric measures kilometers.
Generated from protobuf enum KILOMETERS = 5;
MILES
This metric measures miles.
Generated from protobuf enum MILES = 6;
MILLISECONDS
This metric measures milliseconds.
Generated from protobuf enum MILLISECONDS = 7;
SECONDS
This metric measures seconds.
Generated from protobuf enum SECONDS = 8;
MINUTES
This metric measures minutes.
Generated from protobuf enum MINUTES = 9;
HOURS
This metric measures hours.
Generated from protobuf enum HOURS = 10;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Analytics Admin V1alpha Client - Class MeasurementUnit (0.29.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.29.1 (latest)](/php/docs/reference/analytics-admin/latest/V1alpha.CustomMetric.MeasurementUnit)\n- [0.29.0](/php/docs/reference/analytics-admin/0.29.0/V1alpha.CustomMetric.MeasurementUnit)\n- [0.28.1](/php/docs/reference/analytics-admin/0.28.1/V1alpha.CustomMetric.MeasurementUnit)\n- [0.27.0](/php/docs/reference/analytics-admin/0.27.0/V1alpha.CustomMetric.MeasurementUnit)\n- [0.26.0](/php/docs/reference/analytics-admin/0.26.0/V1alpha.CustomMetric.MeasurementUnit)\n- [0.25.2](/php/docs/reference/analytics-admin/0.25.2/V1alpha.CustomMetric.MeasurementUnit)\n- [0.24.2](/php/docs/reference/analytics-admin/0.24.2/V1alpha.CustomMetric.MeasurementUnit)\n- [0.23.0](/php/docs/reference/analytics-admin/0.23.0/V1alpha.CustomMetric.MeasurementUnit)\n- [0.22.5](/php/docs/reference/analytics-admin/0.22.5/V1alpha.CustomMetric.MeasurementUnit)\n- [0.20.0](/php/docs/reference/analytics-admin/0.20.0/V1alpha.CustomMetric.MeasurementUnit)\n- [0.19.0](/php/docs/reference/analytics-admin/0.19.0/V1alpha.CustomMetric.MeasurementUnit)\n- [0.18.1](/php/docs/reference/analytics-admin/0.18.1/V1alpha.CustomMetric.MeasurementUnit)\n- [0.17.0](/php/docs/reference/analytics-admin/0.17.0/V1alpha.CustomMetric.MeasurementUnit)\n- [0.16.0](/php/docs/reference/analytics-admin/0.16.0/V1alpha.CustomMetric.MeasurementUnit)\n- [0.15.1](/php/docs/reference/analytics-admin/0.15.1/V1alpha.CustomMetric.MeasurementUnit)\n- [0.14.0](/php/docs/reference/analytics-admin/0.14.0/V1alpha.CustomMetric.MeasurementUnit)\n- [0.13.0](/php/docs/reference/analytics-admin/0.13.0/V1alpha.CustomMetric.MeasurementUnit)\n- [0.12.0](/php/docs/reference/analytics-admin/0.12.0/V1alpha.CustomMetric.MeasurementUnit)\n- [0.11.1](/php/docs/reference/analytics-admin/0.11.1/V1alpha.CustomMetric.MeasurementUnit)\n- [0.10.0](/php/docs/reference/analytics-admin/0.10.0/V1alpha.CustomMetric.MeasurementUnit)\n- [0.9.0](/php/docs/reference/analytics-admin/0.9.0/V1alpha.CustomMetric.MeasurementUnit)\n- [0.8.2](/php/docs/reference/analytics-admin/0.8.2/V1alpha.CustomMetric.MeasurementUnit) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Analytics Admin V1alpha Client class MeasurementUnit.\n\nPossible types of representing the custom metric's value.\n\nCurrency representation may change in the future, requiring a breaking API\nchange.\n\nProtobuf type `google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit`\n\nNamespace\n---------\n\nGoogle \\\\ Analytics \\\\ Admin \\\\ V1alpha \\\\ CustomMetric\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### MEASUREMENT_UNIT_UNSPECIFIED\n\n Value: 0\n\nMeasurementUnit unspecified or missing.\n\nGenerated from protobuf enum `MEASUREMENT_UNIT_UNSPECIFIED = 0;`\n\n### STANDARD\n\n Value: 1\n\nThis metric uses default units.\n\nGenerated from protobuf enum `STANDARD = 1;`\n\n### CURRENCY\n\n Value: 2\n\nThis metric measures a currency.\n\nGenerated from protobuf enum `CURRENCY = 2;`\n\n### FEET\n\n Value: 3\n\nThis metric measures feet.\n\nGenerated from protobuf enum `FEET = 3;`\n\n### METERS\n\n Value: 4\n\nThis metric measures meters.\n\nGenerated from protobuf enum `METERS = 4;`\n\n### KILOMETERS\n\n Value: 5\n\nThis metric measures kilometers.\n\nGenerated from protobuf enum `KILOMETERS = 5;`\n\n### MILES\n\n Value: 6\n\nThis metric measures miles.\n\nGenerated from protobuf enum `MILES = 6;`\n\n### MILLISECONDS\n\n Value: 7\n\nThis metric measures milliseconds.\n\nGenerated from protobuf enum `MILLISECONDS = 7;`\n\n### SECONDS\n\n Value: 8\n\nThis metric measures seconds.\n\nGenerated from protobuf enum `SECONDS = 8;`\n\n### MINUTES\n\n Value: 9\n\nThis metric measures minutes.\n\nGenerated from protobuf enum `MINUTES = 9;`\n\n### HOURS\n\n Value: 10\n\nThis metric measures hours.\n\nGenerated from protobuf enum `HOURS = 10;`"]]