REST Resource: properties.dataStreams.measurementProtocolSecrets
Tài nguyên: MeasurementProtocolSecret
Giá trị bí mật dùng để gửi lượt truy cập đến Measurement Protocol.
Biểu diễn dưới dạng JSON |
{
"name": string,
"displayName": string,
"secretValue": string
} |
Trường |
name |
string
Chỉ có đầu ra. Tên tài nguyên của khoá bí mật này. Khoá bí mật này có thể là phần tử con của bất kỳ loại luồng nào. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
|
displayName |
string
Bắt buộc. Tên hiển thị mà con người đọc được cho khoá bí mật này.
|
secretValue |
string
Chỉ có đầu ra. Giá trị bí mật của Measurement Protocol. Truyền giá trị này đến trường api_secret của API Measurement Protocol khi gửi lượt truy cập đến tài sản mẹ của mã thông báo bí mật này.
|
Phương thức |
|
Tạo mã thông báo bí mật cho Measurement Protocol. |
|
Xoá MeasurementProtocolSecret mục tiêu. |
|
Truy vấn một MeasurementProtocolSecret. |
|
Trả về MeasurementProtocolSecrets con trong Tài sản mẹ được chỉ định. |
|
Cập nhật khoá bí mật của Measurement Protocol. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-01-14 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]