Method: properties.customMetrics.get
1 つの CustomMetric のルックアップ。
HTTP リクエスト
GET https://analyticsadmin.googleapis.com/v1beta/{name=properties/*/customMetrics/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
name |
string
必須。取得する CustomMetric の名前。形式の例: properties/1234/customMetrics/5678
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には CustomMetric
のインスタンスが含まれます。
承認スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-05-06 UTC。
[null,null,["最終更新日 2024-05-06 UTC。"],[[["Retrieves a single, user-defined metric (CustomMetric) for analysis within a Google Analytics 4 property."],["Requires specifying the complete resource name of the CustomMetric in the request path."],["The response provides comprehensive details about the requested CustomMetric if authorized with appropriate scopes."],["Allows read-only or edit access to the requested metric based on the provided authorization scope."]]],["The core content describes how to retrieve a single `CustomMetric`. A `GET` request is sent to a specified URL using gRPC Transcoding syntax. The `name` parameter, formatted as `properties/*/customMetrics/*`, is required in the URL path. The request body must be empty. A successful response returns a `CustomMetric` instance. Authorization requires either `analytics.readonly` or `analytics.edit` OAuth scopes.\n"]]