REST Resource: properties.dataStreams.measurementProtocolSecrets
资源:MeasurementProtocolSecret
用于向 Measurement Protocol 发送命中数据的密钥值。
JSON 表示法 |
{
"name": string,
"displayName": string,
"secretValue": string
} |
字段 |
name |
string
仅限输出。此 Secret 的资源名称。此 Secret 可以是任何类型的串流的子级。Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
|
displayName |
string
必需。此 Secret 的直观易懂的显示名称。
|
secretValue |
string
仅限输出。Measurement Protocol 密钥值。将命中数据发送到此密钥的父级媒体资源时,将此值传递给 Measurement Protocol API 的 api_secret 字段。
|
方法 |
|
创建 Measurement Protocol Secret。 |
|
删除目标 MeasurementProtocolSecret。 |
|
查找单个 MeasurementProtocolSecret。 |
|
返回指定父媒体资源下的子 MeasurementProtocolSecret。 |
|
更新 Measurement Protocol 密钥。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-14。
[null,null,["最后更新时间 (UTC):2025-01-14。"],[[["Measurement Protocol Secret is a mechanism to securely send data to Google Analytics 4 using the Measurement Protocol API."],["It involves a secret value that needs to be passed to the `api_secret` field when sending hits."],["You can manage these secrets through the Google Analytics Admin API, allowing you to create, delete, get, list, and update them."],["Each secret is associated with a specific Google Analytics 4 property and data stream for data organization and security."]]],["MeasurementProtocolSecret is a secret value for sending hits to Measurement Protocol. It has a `name`, `displayName`, and `secretValue`. The secret value is used with the Measurement Protocol API. You can perform actions like create, delete, get, list, and update MeasurementProtocolSecrets. The secret's resource name follows a specific format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}. The display name is a user-friendly label and it's required.\n"]]