试用 Google Analytics 的 MCP 服务器。从
GitHub 安装,并参阅
公告了解详情。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Method: properties.dataStreams.measurementProtocolSecrets.patch
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
PATCH https://analyticsadmin.googleapis.com/v1beta/{measurementProtocolSecret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}
网址采用 gRPC 转码语法。
路径参数
| 参数 |
measurementProtocolSecret.name |
string
标识符。此密钥的资源名称。此密钥可以是任何类型的数据流的子级。格式:properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
|
查询参数
| 参数 |
updateMask |
string (FieldMask format)
必需。要更新的字段的列表。系统不会更新省略的字段。 这是完全限定字段名称的逗号分隔列表。示例:"user.displayName,photo"。
|
授权范围
需要以下 OAuth 作用域:
https://www.googleapis.com/auth/analytics.edit
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-04-14。
[null,null,["最后更新时间 (UTC):2026-04-14。"],[],["This outlines how to update a measurement protocol secret using a `PATCH` request to the specified URL. The URL utilizes gRPC Transcoding syntax and includes a path parameter `measurementProtocolSecret.name`. A `updateMask` query parameter is required to specify which fields to update. The request and response bodies both use the `MeasurementProtocolSecret` resource. Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope.\n"]]