Method: properties.reportTasks.create
Initiiert das Erstellen einer Berichtsaufgabe. Bei dieser Methode wird schnell eine Berichtsaufgabe zurückgegeben und eine lange laufende asynchrone Anforderung zum Erstellen eines benutzerdefinierten Berichts über Ihre Google Analytics-Ereignisdaten initiiert.
Eine Berichtsaufgabe wird aufbewahrt und kann 72 Stunden nach ihrer Erstellung abgefragt werden.
Eine Berichtsaufgabe, die von einem Nutzer erstellt wurde, kann von allen Nutzern mit Zugriff auf die Property aufgelistet und abgefragt werden.
HTTP-Anfrage
POST https://analyticsdata.googleapis.com/v1alpha/{parent=properties/*}/reportTasks
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
parent |
string
Erforderlich. Die übergeordnete Ressource, in der diese Berichtsaufgabe erstellt wird. Format: properties/{propertyId}
|
Anfragetext
Der Anfragetext enthält eine Instanz von ReportTask
.
Antworttext
Bei Erfolg enthält der Antworttext eine neu erstellte Instanz von Operation
.
Autorisierungsbereiche
Erfordert einen der folgenden OAuth-Bereiche:
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-05-14 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]