Required. Display name for this custom metric as shown in the Analytics UI.
Max length of 82 characters, alphanumeric plus space and underscore
starting with a letter. Legacy system-generated display names may contain
square brackets, but updates to this field will never permit square
brackets.
Required. Display name for this custom metric as shown in the Analytics UI.
Max length of 82 characters, alphanumeric plus space and underscore
starting with a letter. Legacy system-generated display names may contain
square brackets, but updates to this field will never permit square
brackets.
Required. Immutable. Tagging name for this custom metric.
If this is an event-scoped metric, then this is the event parameter
name.
May only contain alphanumeric and underscore charactes, starting with a
letter. Max length of 40 characters for event-scoped metrics.
Required. Immutable. Tagging name for this custom metric.
If this is an event-scoped metric, then this is the event parameter
name.
May only contain alphanumeric and underscore charactes, starting with a
letter. Max length of 40 characters for event-scoped metrics.
Optional. Types of restricted data that this metric may contain. Required
for metrics with CURRENCY measurement unit. Must be empty for metrics with
a non-CURRENCY measurement unit.
Optional. Types of restricted data that this metric may contain. Required
for metrics with CURRENCY measurement unit. Must be empty for metrics with
a non-CURRENCY measurement unit.
Optional. Types of restricted data that this metric may contain. Required
for metrics with CURRENCY measurement unit. Must be empty for metrics with
a non-CURRENCY measurement unit.
Optional. Types of restricted data that this metric may contain. Required
for metrics with CURRENCY measurement unit. Must be empty for metrics with
a non-CURRENCY measurement unit.
Optional. Types of restricted data that this metric may contain. Required
for metrics with CURRENCY measurement unit. Must be empty for metrics with
a non-CURRENCY measurement unit.
[[["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-04-09 UTC."],[[["This page provides a comprehensive list of versions for the `CustomMetric` class within the Google Analytics Admin API for Java, ranging from version 0.14.0 to the latest 0.70.0."],["The `CustomMetric` class is a definition for a custom metric used in Google Analytics, implementing `CustomMetricOrBuilder` and extending `GeneratedMessageV3` for handling protocol buffer messages."],["`CustomMetric` contains fields like `name`, `parameter_name`, `display_name`, `description`, `measurement_unit`, and `scope`, which define various attributes of a custom metric, including its resource name, tagging name, display name, description, value type, and scope."],["The class offers static methods for parsing, getting default instances, and building instances, which are essential for working with `CustomMetric` objects in a Java environment."],["The page lists the inheritance tree and all implemented methods, as well as the static fields and static methods of the `CustomMetric` class."]]],[]]