Hãy thử máy chủ MCP cho Google Analytics. Cài đặt từ
GitHub và xem
thông báo để biết thêm thông tin chi tiết.
Method: properties.dataStreams.measurementProtocolSecrets.patch
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Cập nhật một mã thông báo bí mật cho Measurement Protocol.
Yêu cầu HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{measurementProtocolSecret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
measurementProtocolSecret.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. Định dạng: thuộc tính/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
|
Tham số truy vấn
Tham số |
updateMask |
string (FieldMask format)
Bắt buộc. Danh sách trường cần cập nhật. Các trường đã bỏ qua sẽ không được cập nhật. Đây là danh sách các tên trường đủ điều kiện được phân tách bằng dấu phẩy. Ví dụ: "user.displayName,photo"
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của MeasurementProtocolSecret
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của MeasurementProtocolSecret
.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/analytics.edit
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-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["This documentation outlines how to update a measurement protocol secret using a PATCH request to a specific endpoint."],["It specifies the required path and query parameters, including `measurementProtocolSecret.name` and `updateMask`, respectively."],["The request body should contain a `MeasurementProtocolSecret` object to define the changes, and the response, upon success, will also contain a `MeasurementProtocolSecret` object reflecting the updates."],["To authorize this request, you'll need the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["This document details updating a measurement protocol secret via a PATCH request to a specific URL: `https://analyticsadmin.googleapis.com/v1alpha/{measurementProtocolSecret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}`. The `measurementProtocolSecret.name` is a required path parameter. The `updateMask` is a required query parameter specifying fields to update. The request and response bodies both contain a `MeasurementProtocolSecret` instance. The `analytics.edit` OAuth scope is required for authorization.\n"]]