Google Analytics · Schema

GetReportsRequest

The batch request containing multiple report request.

AnalyticsDataGoogleMetricsReportingWeb AnalyticsMachine LearningAttribution

Properties

Name Type Description
reportRequests array Requests, each request will have a separate response. There can be a maximum of 5 requests. All requests should have the same `dateRanges`, `viewId`, `segments`, `samplingLevel`, and `cohortGroup`.
useResourceQuotas boolean Enables [resource based quotas](/analytics/devguides/reporting/core/v4/limits-quotas#analytics_reporting_api_v4), (defaults to `False`). If this field is set to `True` the per view (profile) quotas ar
View JSON Schema on GitHub

JSON Schema

google-analytics-getreportsrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/GetReportsRequest",
  "title": "GetReportsRequest",
  "description": "The batch request containing multiple report request.",
  "properties": {
    "reportRequests": {
      "description": "Requests, each request will have a separate response. There can be a maximum of 5 requests. All requests should have the same `dateRanges`, `viewId`, `segments`, `samplingLevel`, and `cohortGroup`.",
      "items": {
        "$ref": "#/components/schemas/ReportRequest"
      },
      "type": "array"
    },
    "useResourceQuotas": {
      "description": "Enables [resource based quotas](/analytics/devguides/reporting/core/v4/limits-quotas#analytics_reporting_api_v4), (defaults to `False`). If this field is set to `True` the per view (profile) quotas are governed by the computational cost of the request. Note that using cost based quotas will higher enable sampling rates. (10 Million for `SMALL`, 100M for `LARGE`. See the [limits and quotas documentation](/analytics/devguides/reporting/core/v4/limits-quotas#analytics_reporting_api_v4) for details.",
      "type": "boolean",
      "example": true
    }
  },
  "type": "object"
}