Bắt đầu tạo một nhiệm vụ báo cáo. Phương thức này nhanh chóng trả về một tác vụ báo cáo và bắt đầu một yêu cầu không đồng bộ chạy trong thời gian dài để tạo thành một báo cáo tuỳ chỉnh về dữ liệu sự kiện Google Analytics của bạn.
Công việc trong báo cáo sẽ được giữ lại và truy vấn trong vòng 72 giờ sau khi tạo.
Tất cả người dùng có quyền truy cập vào tài sản đều có thể liệt kê và truy vấn một tác vụ báo cáo do một người dùng tạo.
Yêu cầu HTTP
POST https://analyticsdata.googleapis.com/v1alpha/{parent=properties/*}/reportTasks
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eInitiates a long-running asynchronous request to create a customized report of Google Analytics event data.\u003c/p\u003e\n"],["\u003cp\u003eCreated report tasks are retained and available for querying for 72 hours.\u003c/p\u003e\n"],["\u003cp\u003eReport tasks are accessible to all users with property access.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with either \u003ccode\u003ehttps://www.googleapis.com/auth/analytics.readonly\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/analytics\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["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"],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nInitiates the creation of a report task. This method quickly returns a report task and initiates a long running asynchronous request to form a customized report of your Google Analytics event data.\n\nA report task will be retained and available for querying for 72 hours after it has been created.\n\nA report task created by one user can be listed and queried by all users who have access to the property.\n\nHTTP request\n\n`POST https://analyticsdata.googleapis.com/v1alpha/{parent=properties/*}/reportTasks`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The parent resource where this report task will be created. Format: `properties/{propertyId}` |\n\nRequest body\n\nThe request body contains an instance of [ReportTask](/analytics/devguides/reporting/data/v1/rest/v1alpha/properties.reportTasks#ReportTask).\n\nResponse body\n\nIf successful, the response body contains a newly created instance of [Operation](/analytics/devguides/reporting/data/v1/rest/Shared.Types/Operation).\n\nAuthorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/analytics.readonly`\n- `https://www.googleapis.com/auth/analytics`"]]