Method: properties.reportTasks.create
מתחיל ליצור משימת דוח. השיטה הזו מחזירה במהירות משימת דוח ויוצרת בקשה אסינכרונית ממושכת כדי ליצור דוח מותאם אישית של נתוני האירועים ב-Google Analytics.
משימת דוח תישמר ותהיה זמינה לשליחת שאילתות למשך 72 שעות לאחר יצירתה.
כל המשתמשים שיש להם גישה לנכס יכולים להציג משימת דוח שנוצרה על ידי משתמש אחד ולשלוח אליה שאילתות.
בקשת 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
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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"]]