Google アナリティクス用の MCP サーバーをお試しください。
GitHub からインストールします。詳細については、
お知らせをご覧ください。
Google は AI 技術を使用して、コンテンツをご希望の言語に翻訳しています。AI 翻訳には誤りが含まれる場合があります。
Method: properties.calculatedMetrics.patch
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
プロパティの CalculatedMetric を更新します。
HTTP リクエスト
PATCH https://analyticsadmin.googleapis.com/v1alpha/{calculatedMetric.name=properties/*/calculatedMetrics/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
| パラメータ |
calculatedMetric.name |
string
ID。この CalculatedMetric のリソース名。形式: 'properties/{property_id}/calculatedMetrics/{calculatedMetricId}'
|
クエリ パラメータ
| パラメータ |
updateMask |
string (FieldMask format)
必須。更新するフィールドのリスト。省略されたフィールドは更新されません。エンティティ全体を置き換えるには、文字列「*」を含む 1 つのパスを使用して、すべてのフィールドを照合します。 完全修飾フィールド名のカンマ区切りリスト。例: "user.displayName,photo"。
|
リクエストの本文
リクエストの本文には CalculatedMetric のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には CalculatedMetric のインスタンスが含まれます。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/analytics.edit
[null,null,["最終更新日 2026-04-14 UTC。"],[],["This document outlines the process for updating a CalculatedMetric on a property using a PATCH request. The endpoint is `https://analyticsadmin.googleapis.com/v1alpha/{calculatedMetric.name=properties/*/calculatedMetrics/*}`, defined using gRPC Transcoding. The `calculatedMetric.name` path parameter specifies the resource, while `updateMask` in the query parameters dictates which fields to update. The request and response bodies use the `CalculatedMetric` resource. This operation requires the `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"]]