Method: properties.customMetrics.get

  • This document provides a lookup for a single CustomMetric.

  • The HTTP request uses the GET method with a URL specifying the property and custom metric name.

  • The request requires a name path parameter with a specific format, and the request body must be empty.

  • The response body, if successful, will contain a CustomMetric instance.

  • Authorization requires either the analytics.readonly or analytics.edit OAuth scope.

Lookup for a single CustomMetric.

HTTP request

GET https://analyticsadmin.googleapis.com/v1beta/{name=properties/*/customMetrics/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the CustomMetric to get. Example format: properties/1234/customMetrics/5678

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of CustomMetric.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/analytics.readonly
  • https://www.googleapis.com/auth/analytics.edit