Method: properties.customMetrics.archive
เก็บ CustomMetric ในพร็อพเพอร์ตี้
คำขอ HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/customMetrics/*}:archive
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
name |
string
ต้องระบุ ชื่อของ CustomMetric ที่จะเก็บถาวร ตัวอย่างรูปแบบ: properties/1234/customMetrics/5678
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะเป็นออบเจ็กต์ JSON ว่าง
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/analytics.edit
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-01-14 UTC
[null,null,["อัปเดตล่าสุด 2025-01-14 UTC"],[[["Archives a specified CustomMetric associated with a Google Analytics 4 property."],["Requires an HTTP POST request to a specific endpoint with the CustomMetric's resource name."],["The request body should be empty, and upon success, the response body will also be empty."],["To authorize, you need the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["The core action is archiving a CustomMetric, specified by its `name` via a `POST` request to a URL using gRPC Transcoding. The `name`, a string representing the CustomMetric's identifier, is required as a path parameter. The request body must be empty. A successful response returns an empty JSON object. Authorization for this action requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope. The action uses `POST` HTTP request.\n"]]