Method: properties.calculatedMetrics.delete
Xoá một CalculatedMetric trên một tài sản.
Yêu cầu HTTP
DELETE https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/calculatedMetrics/*}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
name |
string
Bắt buộc. Tên của CalculatedMetric cần xoá. Định dạng: tài sản/{property_id}/calculatedMetrics/{calculatedMetricId} Ví dụ: tài sản/1234/calculatedMetrics/Metric01
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ là một đối tượng JSON trống.
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-01-14 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-01-14 UTC."],[[["Deletes a specific CalculatedMetric associated with a Google Analytics 4 property."],["Requires specifying the property and CalculatedMetric IDs in the request URL path."],["Employs an HTTP DELETE request with an empty body, signifying data removal intention."],["Successful deletion results in an empty response body, confirming action completion."],["Needs authorization with the 'analytics.edit' scope for permission to modify property data."]]],["This document outlines how to delete a CalculatedMetric on a property via an HTTP DELETE request. The request URL requires the `name` path parameter, formatted as `properties/{property_id}/calculatedMetrics/{calculatedMetricId}`. The request body must be empty. A successful deletion returns an empty JSON object. Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope. The resource uses gRPC Transcoding syntax.\n"]]