REST Resource: properties.dataStreams.measurementProtocolSecrets
資源:MeasurementProtocolSecret
用於將命中傳送至 Measurement Protocol 的密鑰值。
JSON 表示法 |
{
"name": string,
"displayName": string,
"secretValue": string
} |
欄位 |
name |
string
僅供輸出。這個密鑰的資源名稱。這個密鑰可以是任何類型串流的子項。Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
|
displayName |
string
必要欄位。這個密鑰的易讀顯示名稱。
|
secretValue |
string
僅供輸出。Measurement Protocol 密鑰值。傳送命中事件至此密鑰的父項屬性時,請將這個值傳遞至 Measurement Protocol API 的 api_secret 欄位。
|
方法 |
|
建立 Measurement Protocol 密鑰。 |
|
刪除目標 MeasurementProtocolSecret。 |
|
查詢單一 MeasurementProtocolSecret。 |
|
傳回指定父項資源下的子項 MeasurementProtocolSecrets。 |
|
更新 Measurement Protocol 密鑰。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-01-14 (世界標準時間)。
[null,null,["上次更新時間: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"]]