Method: properties.customDimensions.create
คำขอ HTTP
POST https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/customDimensions
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ รูปแบบตัวอย่าง: property/1234
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ CustomDimension
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ CustomDimension
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
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"],[[["Creates a new CustomDimension within a specified Google Analytics 4 property."],["Requires `analytics.edit` OAuth scope for authorization."],["Utilizes an HTTP POST request to the provided URL with property ID as a path parameter."],["Request body should contain a CustomDimension object, as detailed in the provided documentation link."],["Successful response returns the newly created CustomDimension object."]]],["A `CustomDimension` is created via a POST request to `https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/customDimensions`, using gRPC Transcoding syntax. The `parent` path parameter (e.g., `properties/1234`) is required. The request body must include a `CustomDimension` instance. A successful response contains the newly created `CustomDimension`. Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope.\n"]]