Method: properties.reportTasks.create
เริ่มสร้างงานรายงาน เมธอดนี้จะส่งคืนงานรายงานอย่างรวดเร็ว และเริ่มส่งคําขอแบบไม่พร้อมกันที่ใช้เวลานานเพื่อสร้างรายงานที่กําหนดเองของข้อมูลเหตุการณ์ Google Analytics
ระบบจะเก็บรักษางานในรายงานไว้และสามารถค้นหาได้เป็นเวลา 72 ชั่วโมงหลังจากที่สร้างขึ้นแล้ว
งานรายงานที่สร้างโดยผู้ใช้ 1 รายสามารถแสดงและค้นหาโดยผู้ใช้ทั้งหมดที่มีสิทธิ์เข้าถึงพร็อพเพอร์ตี้ได้
คำขอ HTTP
POST https://analyticsdata.googleapis.com/v1alpha/{parent=properties/*}/reportTasks
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ ทรัพยากรระดับบนสุดที่จะสร้างงานรายงานนี้ รูปแบบ: properties/{propertyId}
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ ReportTask
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Operation
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth อย่างใดอย่างหนึ่งต่อไปนี้
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-05-14 UTC
[null,null,["อัปเดตล่าสุด 2024-05-14 UTC"],[[["Initiates a long-running asynchronous request to create a customized report of Google Analytics event data."],["Created report tasks are retained and available for querying for 72 hours."],["Report tasks are accessible to all users with property access."],["Requires authorization with either `https://www.googleapis.com/auth/analytics.readonly` or `https://www.googleapis.com/auth/analytics` scope."]]],["This describes the process to create a report task for Google Analytics event data. A `POST` request is sent to `https://analyticsdata.googleapis.com/v1alpha/{parent=properties/*}/reportTasks`, where `parent` specifies the property. The request body must include a `ReportTask` instance. Upon success, it will respond with an `Operation` instance. Authorization requires either the `analytics.readonly` or `analytics` scope. Created tasks are retained for 72 hours and accessible to all property users.\n"]]