Method: properties.customMetrics.get
ค้นหา CustomMetrics เดียว
คำขอ HTTP
GET https://analyticsadmin.googleapis.com/v1beta/{name=properties/*/customMetrics/*}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
name |
string
ต้องระบุ ชื่อของ CustomMetric ที่จะรับ รูปแบบตัวอย่าง: property/1234/customMetrics/5678
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ CustomMetric
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth อย่างใดอย่างหนึ่งต่อไปนี้
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-05-06 UTC
[null,null,["อัปเดตล่าสุด 2024-05-06 UTC"],[[["Retrieves a single, user-defined metric (CustomMetric) for analysis within a Google Analytics 4 property."],["Requires specifying the complete resource name of the CustomMetric in the request path."],["The response provides comprehensive details about the requested CustomMetric if authorized with appropriate scopes."],["Allows read-only or edit access to the requested metric based on the provided authorization scope."]]],[]]