ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
GitHub และดูรายละเอียดเพิ่มเติมได้ที่
ประกาศ
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Method: properties.customDimensions.patch
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
อัปเดต CustomDimension ในพร็อพเพอร์ตี้
คำขอ HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{customDimension.name=properties/*/customDimensions/*}
URL ใช้ไวยากรณ์การแปลงรหัส gRPC
พารามิเตอร์เส้นทาง
| พารามิเตอร์ |
customDimension.name |
string
ตัวระบุ ชื่อทรัพยากรสำหรับทรัพยากร CustomDimension นี้ รูปแบบ: properties/{property}/customDimensions/{customDimension}
|
พารามิเตอร์การค้นหา
| พารามิเตอร์ |
updateMask |
string (FieldMask format)
ต้องระบุ รายการฟิลด์ที่จะอัปเดต ระบบจะไม่แก้ไขช่องที่เว้นว่างไว้ หากต้องการแทนที่เอนทิตีทั้งหมด ให้ใช้เส้นทางเดียวที่มีสตริง "*" เพื่อให้ตรงกับทุกช่อง นี่คือรายการชื่อฟิลด์แบบสมบูรณ์ที่คั่นด้วยคอมมา ตัวอย่าง: "user.displayName,photo"
|
เนื้อความของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ CustomDimension
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ CustomDimension
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/analytics.edit
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2026-04-14 UTC
[null,null,["อัปเดตล่าสุด 2026-04-14 UTC"],[],["This document details updating a CustomDimension on a property using a PATCH request. The endpoint is `https://analyticsadmin.googleapis.com/v1alpha/{customDimension.name=properties/*/customDimensions/*}`. Required parameters include the `customDimension.name` path parameter and the `updateMask` query parameter, which specifies fields to be updated. The request body contains a CustomDimension instance, and the successful response returns an updated CustomDimension instance. The process requires `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"]]