REST Resource: properties.dataStreams.measurementProtocolSecrets
Resource: MeasurementProtocolSecret
Nilai secret yang digunakan untuk mengirim hit ke Measurement Protocol.
Representasi JSON |
{
"name": string,
"displayName": string,
"secretValue": string
} |
Kolom |
name |
string
Hanya output. Nama resource secret ini. Secret ini dapat berupa turunan dari jenis streaming apa pun. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
|
displayName |
string
Wajib. Nama tampilan yang dapat dibaca manusia untuk secret ini.
|
secretValue |
string
Hanya output. Nilai secret Measurement Protocol. Teruskan nilai ini ke kolom api_secret Measurement Protocol API saat mengirim hit ke properti induk rahasia ini.
|
Metode |
|
Membuat secret Measurement Protocol. |
|
Menghapus MeasurementProtocolSecret target. |
|
Mencari satu MeasurementProtocolSecret. |
|
Menampilkan MeasurementProtocolSecrets turunan pada Properti induk yang ditentukan. |
|
Memperbarui secret Measurement Protocol. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-01-14 UTC.
[null,null,["Terakhir diperbarui pada 2025-01-14 UTC."],[[["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"]]