試用 Google Analytics 的 MCP 伺服器。請前往
GitHub 安裝,並參閱
公告瞭解詳情。
Google 會運用 AI 技術將內容翻譯成您偏好的語言,但可能會出錯。
Method: properties.dataStreams.measurementProtocolSecrets.create
透過集合功能整理內容
您可以依據偏好儲存及分類內容。
建立 Measurement Protocol 密鑰。
HTTP 要求
POST https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets
這個網址使用 gRPC 轉碼語法。
路徑參數
| 參數 |
parent |
string
必要欄位。要建立這個密鑰的父項資源。格式:properties/{property}/dataStreams/{dataStream}
|
回應主體
如果成功,回應主體會包含新建立的 MeasurementProtocolSecret 例項。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/analytics.edit
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[],["This document details creating a measurement protocol secret via a `POST` HTTP request to a specific URL using gRPC Transcoding. The URL requires a `parent` path parameter, specifying the data stream within a property. The request body needs a `MeasurementProtocolSecret` instance. A successful response returns a newly created `MeasurementProtocolSecret` instance. Authorization for this action requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope. Users can interact using a \"Try it!\" feature.\n"]]