{"openapi":"3.1.0","info":{"title":"AAuth for Analytics","version":"v1+v1beta+v2","description":"Google Search Console, Google Analytics and YouTube Analytics for your AI assistant: read-only reports on your own sites, properties and channel, plus sitemap submission you approve.","x-discovery-revision":"Google Search Console API: 20261003; Google Analytics Data API: 20260930; YouTube Analytics API: 20260930","x-upstream":["https://searchconsole.googleapis.com/","https://analyticsdata.googleapis.com/","https://youtubeanalytics.googleapis.com/"]},"servers":[{"url":"https://analytics.connect.aauth.dev"}],"paths":{"/sites/{siteUrl}":{"get":{"operationId":"get_site","x-google-operation":"webmasters.sites.get","summary":" Retrieves information about specific site.","description":" Retrieves information about specific site.","parameters":[{"name":"siteUrl","in":"path","description":"The URI of the property as defined in Search Console. **Examples:** `http://www.example.com/` or `sc-domain:example.com`.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WmxSite"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/webmasters.readonly"]}]}},"/sites":{"get":{"operationId":"list_sites","x-google-operation":"webmasters.sites.list","summary":" Lists the user's Search Console sites.","description":" Lists the user's Search Console sites.","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SitesListResponse"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/webmasters.readonly"]}]}},"/sites/{siteUrl}/sitemaps/{feedpath}":{"put":{"operationId":"submit_sitemap","x-google-operation":"webmasters.sitemaps.submit","summary":"Submits a sitemap for a site.","description":"Submits a sitemap for a site.","parameters":[{"name":"siteUrl","in":"path","description":"The site's URL, including protocol. For example: `http://www.example.com/`.","required":true,"schema":{"type":"string"}},{"name":"feedpath","in":"path","description":"The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response"}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/webmasters"]}],"x-aauth-access-mode":"auth-token"}},"/sites/{siteUrl}/sitemaps":{"get":{"operationId":"list_sitemaps","x-google-operation":"webmasters.sitemaps.list","summary":" Lists the [sitemaps-entries](/webmaster-tools/v3/sitemaps) submitted for this site, or included in the sitemap index file (if `sitemapIndex` is specified in the request).","description":" Lists the [sitemaps-entries](/webmaster-tools/v3/sitemaps) submitted for this site, or included in the sitemap index file (if `sitemapIndex` is specified in the request).","parameters":[{"name":"siteUrl","in":"path","description":"The site's URL, including protocol. For example: `http://www.example.com/`.","required":true,"schema":{"type":"string"}},{"name":"sitemapIndex","in":"query","description":" A URL of a site's sitemap index. For example: `http://www.example.com/sitemapindex.xml`.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SitemapsListResponse"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/webmasters.readonly"]}]}},"/inspect-url":{"post":{"operationId":"inspect_url","x-google-operation":"searchconsole.urlInspection.index.inspect","summary":"Index inspection.","description":"Index inspection.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InspectUrlIndexRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InspectUrlIndexResponse"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/webmasters.readonly"]}]}},"/sites/{siteUrl}/search-analytics":{"post":{"operationId":"query_search_analytics","x-google-operation":"webmasters.searchanalytics.query","summary":"Query your data with filters and parameters that you define. Returns zero or more rows grouped by the row keys that you define. You must define a date range of one or more days. When date is one of the group by values, any days without data are omitted from the result list. If you need to know which days have data, issue a broad date range query grouped by date for any metric, and see which day rows are returned.","description":"Query your data with filters and parameters that you define. Returns zero or more rows grouped by the row keys that you define. You must define a date range of one or more days. When date is one of the group by values, any days without data are omitted from the result list. If you need to know which days have data, issue a broad date range query grouped by date for any metric, and see which day rows are returned.","parameters":[{"name":"siteUrl","in":"path","description":"The site's URL, including protocol. For example: `http://www.example.com/`.","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchAnalyticsQueryRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchAnalyticsQueryResponse"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/webmasters.readonly"]}]}},"/properties/{propertiesId}/report":{"post":{"operationId":"run_report","x-google-operation":"analyticsdata.properties.runReport","summary":"Returns a customized report of your Google Analytics event data. Reports contain statistics derived from data collected by the Google Analytics tracking code. The data returned from the API is as a table with columns for the requested dimensions and metrics. Metrics are individual measurements of user activity on your property, such as active users or event count. Dimensions break down metrics across some common criteria, such as country or event name. For a guide to constructing requests & understanding responses, see [Creating a Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics).","description":"Returns a customized report of your Google Analytics event data. Reports contain statistics derived from data collected by the Google Analytics tracking code. The data returned from the API is as a table with columns for the requested dimensions and metrics. Metrics are individual measurements of user activity on your property, such as active users or event count. Dimensions break down metrics across some common criteria, such as country or event name. For a guide to constructing requests & understanding responses, see [Creating a Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics).","parameters":[{"name":"propertiesId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GaRunReportRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GaRunReportResponse"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/analytics.readonly"]}]}},"/properties/{propertiesId}/metadata":{"get":{"operationId":"get_metadata","x-google-operation":"analyticsdata.properties.getMetadata","summary":"Returns metadata for dimensions and metrics available in reporting methods. Used to explore the dimensions and metrics. In this method, a Google Analytics property identifier is specified in the request, and the metadata response includes Custom dimensions and metrics as well as Universal metadata. For example if a custom metric with parameter name `levels_unlocked` is registered to a property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata are dimensions and metrics applicable to any property such as `country` and `totalUsers`.","description":"Returns metadata for dimensions and metrics available in reporting methods. Used to explore the dimensions and metrics. In this method, a Google Analytics property identifier is specified in the request, and the metadata response includes Custom dimensions and metrics as well as Universal metadata. For example if a custom metric with parameter name `levels_unlocked` is registered to a property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata are dimensions and metrics applicable to any property such as `country` and `totalUsers`.","parameters":[{"name":"propertiesId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GaMetadata"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/analytics.readonly"]}]}},"/properties/{propertiesId}/realtime-report":{"post":{"operationId":"run_realtime_report","x-google-operation":"analyticsdata.properties.runRealtimeReport","summary":"Returns a customized report of realtime event data for your property. Events appear in realtime reports seconds after they have been sent to the Google Analytics. Realtime reports show events and usage data for the periods of time ranging from the present moment to 30 minutes ago (up to 60 minutes for Google Analytics 360 properties). For a guide to constructing realtime requests & understanding responses, see [Creating a Realtime Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).","description":"Returns a customized report of realtime event data for your property. Events appear in realtime reports seconds after they have been sent to the Google Analytics. Realtime reports show events and usage data for the periods of time ranging from the present moment to 30 minutes ago (up to 60 minutes for Google Analytics 360 properties). For a guide to constructing realtime requests & understanding responses, see [Creating a Realtime Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).","parameters":[{"name":"propertiesId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GaRunRealtimeReportRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GaRunRealtimeReportResponse"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/analytics.readonly"]}]}},"/properties/{propertiesId}/reports":{"post":{"operationId":"run_reports","x-google-operation":"analyticsdata.properties.batchRunReports","summary":"Returns multiple reports in a batch. All reports must be for the same Google Analytics property.","description":"Returns multiple reports in a batch. All reports must be for the same Google Analytics property.","parameters":[{"name":"propertiesId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GaBatchRunReportsRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GaBatchRunReportsResponse"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/analytics.readonly"]}]}},"/channel/reports":{"get":{"operationId":"query_channel_report","x-google-operation":"youtubeAnalytics.reports.query","summary":"Retrieve your YouTube Analytics reports.","description":"Retrieve your YouTube Analytics reports.","parameters":[{"name":"currency","in":"query","description":"The currency to which financial metrics should be converted. The default is US Dollar (USD). If the result contains no financial metrics, this flag will be ignored. Responds with an error if the specified currency is not recognized.\", pattern: [A-Z]{3}","required":false,"schema":{"type":"string"}},{"name":"includeHistoricalChannelData","in":"query","description":"If set to true historical data (i.e. channel data from before the linking of the channel to the content owner) will be retrieved.\",","required":false,"schema":{"type":"boolean"}},{"name":"dimensions","in":"query","description":"A comma-separated list of YouTube Analytics dimensions, such as `views` or `ageGroup,gender`. See the [Available Reports](/youtube/analytics/v2/available_reports) document for a list of the reports that you can retrieve and the dimensions used for those reports. Also see the [Dimensions](/youtube/analytics/v2/dimsmets/dims) document for definitions of those dimensions.\" pattern: [0-9a-zA-Z,]+","required":false,"schema":{"type":"string"}},{"name":"maxResults","in":"query","description":"The maximum number of rows to include in the response.\", minValue: 1","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"ids","in":"query","description":"Identifies the YouTube channel or content owner for which you are retrieving YouTube Analytics data. - To request data for a YouTube user, set the `ids` parameter value to `channel==CHANNEL_ID`, where `CHANNEL_ID` specifies the unique YouTube channel ID. - To request data for a YouTube CMS content owner, set the `ids` parameter value to `contentOwner==OWNER_NAME`, where `OWNER_NAME` is the CMS name of the content owner. required: true, pattern: [a-zA-Z]+==[a-zA-Z0-9_+-]+","required":false,"schema":{"type":"string"}},{"name":"startIndex","in":"query","description":"An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter (one-based, inclusive).\", minValue: 1","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"sort","in":"query","description":"A comma-separated list of dimensions or metrics that determine the sort order for YouTube Analytics data. By default the sort order is ascending. The '`-`' prefix causes descending sort order.\", pattern: [-0-9a-zA-Z,]+","required":false,"schema":{"type":"string"}},{"name":"endDate","in":"query","description":"The end date for fetching YouTube Analytics data. The value should be in `YYYY-MM-DD` format. required: true, pattern: [0-9]{4}-[0-9]{2}-[0-9]{2}","required":false,"schema":{"type":"string"}},{"name":"startDate","in":"query","description":"The start date for fetching YouTube Analytics data. The value should be in `YYYY-MM-DD` format. required: true, pattern: \"[0-9]{4}-[0-9]{2}-[0-9]{2}","required":false,"schema":{"type":"string"}},{"name":"metrics","in":"query","description":"A comma-separated list of YouTube Analytics metrics, such as `views` or `likes,dislikes`. See the [Available Reports](/youtube/analytics/v2/available_reports) document for a list of the reports that you can retrieve and the metrics available in each report, and see the [Metrics](/youtube/analytics/v2/dimsmets/mets) document for definitions of those metrics. required: true, pattern: [0-9a-zA-Z,]+","required":false,"schema":{"type":"string"}},{"name":"filters","in":"query","description":"A list of filters that should be applied when retrieving YouTube Analytics data. The [Available Reports](/youtube/analytics/v2/available_reports) document identifies the dimensions that can be used to filter each report, and the [Dimensions](/youtube/analytics/v2/dimsmets/dims) document defines those dimensions. If a request uses multiple filters, join them together with a semicolon (`;`), and the returned result table will satisfy both filters. For example, a filters parameter value of `video==dMH0bHeiRNg;country==IT` restricts the result set to include data for the given video in Italy.\",","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YtQueryResponse"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/yt-analytics.readonly"]}]}},"/channel/group-items":{"get":{"operationId":"list_channel_group_items","x-google-operation":"youtubeAnalytics.groupItems.list","summary":"Returns a collection of group items that match the API request parameters.","description":"Returns a collection of group items that match the API request parameters.","parameters":[{"name":"groupId","in":"query","description":"The `groupId` parameter specifies the unique ID of the group for which you want to retrieve group items.","required":false,"schema":{"type":"string"}},{"name":"onBehalfOfContentOwner","in":"query","description":"This parameter can only be used in a properly authorized request. **Note:** This parameter is intended exclusively for YouTube content partners that own and manage many different YouTube channels. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube user who is acting on behalf of the content owner specified in the parameter value. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The account that the user authenticates with must be linked to the specified YouTube content owner.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YtListGroupItemsResponse"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/yt-analytics.readonly"]}]}},"/channel/groups":{"get":{"operationId":"list_channel_groups","x-google-operation":"youtubeAnalytics.groups.list","summary":"Returns a collection of groups that match the API request parameters. For example, you can retrieve all groups that the authenticated user owns, or you can retrieve one or more groups by their unique IDs.","description":"Returns a collection of groups that match the API request parameters. For example, you can retrieve all groups that the authenticated user owns, or you can retrieve one or more groups by their unique IDs.","parameters":[{"name":"pageToken","in":"query","description":"The `pageToken` parameter identifies a specific page in the result set that should be returned. In an API response, the `nextPageToken` property identifies the next page that can be retrieved.","required":false,"schema":{"type":"string"}},{"name":"onBehalfOfContentOwner","in":"query","description":"This parameter can only be used in a properly authorized request. **Note:** This parameter is intended exclusively for YouTube content partners that own and manage many different YouTube channels. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube user who is acting on behalf of the content owner specified in the parameter value. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The account that the user authenticates with must be linked to the specified YouTube content owner.","required":false,"schema":{"type":"string"}},{"name":"mine","in":"query","description":"This parameter can only be used in a properly authorized request. Set this parameter's value to true to retrieve all groups owned by the authenticated user.","required":false,"schema":{"type":"boolean"}},{"name":"id","in":"query","description":"The `id` parameter specifies a comma-separated list of the YouTube group ID(s) for the resource(s) that are being retrieved. Each group must be owned by the authenticated user. In a `group` resource, the `id` property specifies the group's YouTube group ID. Note that if you do not specify a value for the `id` parameter, then you must set the `mine` parameter to `true`.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YtListGroupsResponse"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/yt-analytics.readonly"]}]}}},"components":{"schemas":{"AmpInspectionResult":{"properties":{"lastCrawlTime":{"description":"Last time this AMP version was crawled by Google. Absent if the URL was never crawled successfully.","type":"string","format":"google-datetime"},"ampUrl":{"description":"URL of the AMP that was inspected. If the submitted URL is a desktop page that refers to an AMP version, the AMP version will be inspected.","type":"string"},"robotsTxtState":{"description":"Whether or not the page is blocked to Google by a robots.txt rule.","type":"string","enum":["ROBOTS_TXT_STATE_UNSPECIFIED","ALLOWED","DISALLOWED"],"enumDescriptions":["Unknown robots.txt state, typically because the page wasn't fetched or found, or because robots.txt itself couldn't be reached.","Crawl allowed by robots.txt.","Crawl blocked by robots.txt."]},"ampIndexStatusVerdict":{"type":"string","enum":["VERDICT_UNSPECIFIED","PASS","PARTIAL","FAIL","NEUTRAL"],"description":"Index status of the AMP URL.","enumDescriptions":["Unknown verdict.","Equivalent to \"Valid\" for the page or item in Search Console.","Reserved, no longer in use.","Equivalent to \"Error\" or \"Invalid\" for the page or item in Search Console.","Equivalent to \"Excluded\" for the page or item in Search Console."]},"issues":{"type":"array","items":{"$ref":"#/components/schemas/AmpIssue"},"description":"A list of zero or more AMP issues found for the inspected URL."},"pageFetchState":{"description":"Whether or not Google could fetch the AMP.","type":"string","enum":["PAGE_FETCH_STATE_UNSPECIFIED","SUCCESSFUL","SOFT_404","BLOCKED_ROBOTS_TXT","NOT_FOUND","ACCESS_DENIED","SERVER_ERROR","REDIRECT_ERROR","ACCESS_FORBIDDEN","BLOCKED_4XX","INTERNAL_CRAWL_ERROR","INVALID_URL"],"enumDescriptions":["Unknown fetch state.","Successful fetch.","Soft 404.","Blocked by robots.txt.","Not found (404).","Blocked due to unauthorized request (401).","Server error (5xx).","Redirection error.","Blocked due to access forbidden (403).","Blocked due to other 4xx issue (not 403, 404).","Internal error.","Invalid URL."]},"indexingState":{"description":"Whether or not the page blocks indexing through a noindex rule.","type":"string","enum":["AMP_INDEXING_STATE_UNSPECIFIED","AMP_INDEXING_ALLOWED","BLOCKED_DUE_TO_NOINDEX","BLOCKED_DUE_TO_EXPIRED_UNAVAILABLE_AFTER"],"enumDescriptions":["Unknown indexing status.","Indexing allowed.","Indexing not allowed, 'noindex' detected.","Indexing not allowed, 'unavailable_after' date expired."]},"verdict":{"enumDescriptions":["Unknown verdict.","Equivalent to \"Valid\" for the page or item in Search Console.","Reserved, no longer in use.","Equivalent to \"Error\" or \"Invalid\" for the page or item in Search Console.","Equivalent to \"Excluded\" for the page or item in Search Console."],"type":"string","enum":["VERDICT_UNSPECIFIED","PASS","PARTIAL","FAIL","NEUTRAL"],"description":"The status of the most severe error on the page. If a page has both warnings and errors, the page status is error. Error status means the page cannot be shown in Search results."}},"type":"object","description":"AMP inspection result of the live page or the current information from Google's index, depending on whether you requested a live inspection or not."},"AmpIssue":{"description":"AMP issue.","type":"object","properties":{"issueMessage":{"description":"Brief description of this issue.","type":"string"},"severity":{"type":"string","enum":["SEVERITY_UNSPECIFIED","WARNING","ERROR"],"enumDescriptions":["Unknown severity.","Warning.","Error."],"description":"Severity of this issue: WARNING or ERROR."}}},"ApiDataRow":{"type":"object","properties":{"position":{"type":"number","format":"double"},"keys":{"items":{"type":"string"},"type":"array"},"impressions":{"type":"number","format":"double"},"clicks":{"format":"double","type":"number"},"ctr":{"type":"number","format":"double"}}},"ApiDimensionFilter":{"description":"A filter test to be applied to each row in the data set, where a match can return the row. Filters are string comparisons, and values and dimension names are not case-sensitive. Individual filters are either AND'ed or OR'ed within their parent filter group, according to the group's group type. You do not need to group by a specified dimension to filter against it.","type":"object","properties":{"expression":{"type":"string"},"dimension":{"enumDescriptions":["","","","",""],"type":"string","enum":["QUERY","PAGE","COUNTRY","DEVICE","SEARCH_APPEARANCE"]},"operator":{"type":"string","enum":["EQUALS","NOT_EQUALS","CONTAINS","NOT_CONTAINS","INCLUDING_REGEX","EXCLUDING_REGEX"],"enumDescriptions":["","","","","",""]}}},"ApiDimensionFilterGroup":{"description":"A set of `dimension` value filters to test against each row. Only rows that pass all filter groups will be returned. All results within a filter group are either AND'ed or OR'ed together, depending on the group type selected. All filter groups are AND'ed together.","type":"object","properties":{"groupType":{"type":"string","enum":["AND"],"enumDescriptions":[""],"description":"Optional. The logic operator between filters of the same group."},"filters":{"items":{"$ref":"#/components/schemas/ApiDimensionFilter"},"description":"Optional. A list of single-value filters in this group.","type":"array"}}},"DetectedItems":{"type":"object","properties":{"items":{"description":"List of Rich Results items.","items":{"$ref":"#/components/schemas/Item"},"type":"array"},"richResultType":{"description":"Rich Results type","type":"string"}},"description":"Rich Results items grouped by type."},"IndexStatusInspectionResult":{"type":"object","properties":{"coverageState":{"description":"Could Google find and index the page. More details about page indexing appear in 'indexing_state'.","type":"string"},"sitemap":{"type":"array","items":{"type":"string"},"description":"Any sitemaps that this URL was listed in, as known by Google. Not guaranteed to be an exhaustive list, especially if Google did not discover this URL through a sitemap. Absent if no sitemaps were found."},"pageFetchState":{"type":"string","enum":["PAGE_FETCH_STATE_UNSPECIFIED","SUCCESSFUL","SOFT_404","BLOCKED_ROBOTS_TXT","NOT_FOUND","ACCESS_DENIED","SERVER_ERROR","REDIRECT_ERROR","ACCESS_FORBIDDEN","BLOCKED_4XX","INTERNAL_CRAWL_ERROR","INVALID_URL"],"description":"Whether or not Google could retrieve the page from your server. Equivalent to [\"page fetch\"](https://support.google.com/webmasters/answer/9012289#index_coverage) in the URL inspection report.","enumDescriptions":["Unknown fetch state.","Successful fetch.","Soft 404.","Blocked by robots.txt.","Not found (404).","Blocked due to unauthorized request (401).","Server error (5xx).","Redirection error.","Blocked due to access forbidden (403).","Blocked due to other 4xx issue (not 403, 404).","Internal error.","Invalid URL."]},"crawledAs":{"description":"Primary crawler that was used by Google to crawl your site.","type":"string","enum":["CRAWLING_USER_AGENT_UNSPECIFIED","DESKTOP","MOBILE"],"enumDescriptions":["Unknown user agent.","Desktop user agent.","Mobile user agent."]},"googleCanonical":{"description":"The URL of the page that Google selected as canonical. If the page was not indexed, this field is absent.","type":"string"},"lastCrawlTime":{"type":"string","description":"Last time this URL was crawled by Google using the [primary crawler](https://support.google.com/webmasters/answer/7440203#primary_crawler). Absent if the URL was never crawled successfully.","format":"google-datetime"},"referringUrls":{"type":"array","items":{"type":"string"},"description":"URLs that link to the inspected URL, directly and indirectly."},"userCanonical":{"type":"string","description":"The URL that your page or site [declares as canonical](https://developers.google.com/search/docs/advanced/crawling/consolidate-duplicate-urls?#define-canonical). If you did not declare a canonical URL, this field is absent."},"verdict":{"description":"High level verdict about whether the URL *is* indexed (indexed status), or *can be* indexed (live inspection).","type":"string","enum":["VERDICT_UNSPECIFIED","PASS","PARTIAL","FAIL","NEUTRAL"],"enumDescriptions":["Unknown verdict.","Equivalent to \"Valid\" for the page or item in Search Console.","Reserved, no longer in use.","Equivalent to \"Error\" or \"Invalid\" for the page or item in Search Console.","Equivalent to \"Excluded\" for the page or item in Search Console."]},"robotsTxtState":{"description":"Whether or not the page is blocked to Google by a robots.txt rule.","type":"string","enum":["ROBOTS_TXT_STATE_UNSPECIFIED","ALLOWED","DISALLOWED"],"enumDescriptions":["Unknown robots.txt state, typically because the page wasn't fetched or found, or because robots.txt itself couldn't be reached.","Crawl allowed by robots.txt.","Crawl blocked by robots.txt."]},"indexingState":{"type":"string","enum":["INDEXING_STATE_UNSPECIFIED","INDEXING_ALLOWED","BLOCKED_BY_META_TAG","BLOCKED_BY_HTTP_HEADER","BLOCKED_BY_ROBOTS_TXT"],"enumDescriptions":["Unknown indexing status.","Indexing allowed.","Indexing not allowed, 'noindex' detected in 'robots' meta tag.","Indexing not allowed, 'noindex' detected in 'X-Robots-Tag' http header.","Reserved, no longer in use."],"description":"Whether or not the page blocks indexing through a noindex rule."}},"description":"Results of index status inspection for either the live page or the version in Google's index, depending on whether you requested a live inspection or not. For more information, see the [Index coverage report documentation](https://support.google.com/webmasters/answer/7440203)."},"InspectUrlIndexRequest":{"type":"object","description":"Index inspection request.","properties":{"languageCode":{"type":"string","description":"Optional. An [IETF BCP-47](https://en.wikipedia.org/wiki/IETF_language_tag) language code representing the requested language for translated issue messages, e.g. \"en-US\", \"or \"de-CH\". Default value is \"en-US\"."},"inspectionUrl":{"description":"Required. URL to inspect. Must be under the property specified in \"site_url\".","type":"string"},"siteUrl":{"type":"string","description":"Required. The URL of the property as defined in Search Console. **Examples:** `http://www.example.com/` for a URL-prefix property, or `sc-domain:example.com` for a Domain property."}}},"InspectUrlIndexResponse":{"properties":{"inspectionResult":{"description":"URL inspection results.","$ref":"#/components/schemas/UrlInspectionResult"}},"type":"object","description":"Index-Status inspection response."},"Item":{"properties":{"issues":{"description":"A list of zero or more rich result issues found for this instance.","type":"array","items":{"$ref":"#/components/schemas/RichResultsIssue"}},"name":{"description":"The user-provided name of this item.","type":"string"}},"description":"A specific rich result found on the page.","type":"object"},"Metadata":{"description":"An object that may be returned with your query results, providing context about the state of the data. When you request recent data (using `all` or `hourly_all` for `dataState`), some of the rows returned may represent data that is incomplete, which means that the data is still being collected and processed. This metadata object helps you identify exactly when this starts and ends. All dates and times provided in this object are in the `America/Los_Angeles` time zone. The specific field returned within this object depends on how you've grouped your data in the request. See details in inner fields.","type":"object","properties":{"firstIncompleteDate":{"description":"The first date for which the data is still being collected and processed, presented in `YYYY-MM-DD` format (ISO-8601 extended local date format). This field is populated only when the request's `dataState` is \"`all`\", data is grouped by \"`DATE`\", and the requested date range contains incomplete data points. All values after the `first_incomplete_date` may still change noticeably.","type":"string"},"firstIncompleteHour":{"description":"The first hour for which the data is still being collected and processed, presented in `YYYY-MM-DDThh:mm:ss[+|-]hh:mm` format (ISO-8601 extended offset date-time format). This field is populated only when the request's `dataState` is \"`hourly_all`\", data is grouped by \"`HOUR`\" and the requested date range contains incomplete data points. All values after the `first_incomplete_hour` may still change noticeably.","type":"string"}}},"MobileUsabilityInspectionResult":{"description":"Mobile-usability inspection results.","properties":{"verdict":{"description":"High-level mobile-usability inspection result for this URL.","type":"string","enum":["VERDICT_UNSPECIFIED","PASS","PARTIAL","FAIL","NEUTRAL"],"enumDescriptions":["Unknown verdict.","Equivalent to \"Valid\" for the page or item in Search Console.","Reserved, no longer in use.","Equivalent to \"Error\" or \"Invalid\" for the page or item in Search Console.","Equivalent to \"Excluded\" for the page or item in Search Console."]},"issues":{"description":"A list of zero or more mobile-usability issues detected for this URL.","type":"array","items":{"$ref":"#/components/schemas/MobileUsabilityIssue"}}},"type":"object"},"MobileUsabilityIssue":{"description":"Mobile-usability issue.","type":"object","properties":{"issueType":{"type":"string","enum":["MOBILE_USABILITY_ISSUE_TYPE_UNSPECIFIED","USES_INCOMPATIBLE_PLUGINS","CONFIGURE_VIEWPORT","FIXED_WIDTH_VIEWPORT","SIZE_CONTENT_TO_VIEWPORT","USE_LEGIBLE_FONT_SIZES","TAP_TARGETS_TOO_CLOSE"],"description":"Mobile-usability issue type.","enumDescriptions":["Unknown issue. Sorry, we don't have any description for the rule that was broken.","Plugins incompatible with mobile devices are being used. [Learn more] (https://support.google.com/webmasters/answer/6352293#flash_usage#error-list).","Viewport is not specified using the meta viewport tag. [Learn more] (https://support.google.com/webmasters/answer/6352293#viewport_not_configured#error-list).","Viewport defined to a fixed width. [Learn more] (https://support.google.com/webmasters/answer/6352293#fixed-width_viewport#error-list).","Content not sized to viewport. [Learn more] (https://support.google.com/webmasters/answer/6352293#content_not_sized_to_viewport#error-list).","Font size is too small for easy reading on a small screen. [Learn More] (https://support.google.com/webmasters/answer/6352293#small_font_size#error-list).","Touch elements are too close to each other. [Learn more] (https://support.google.com/webmasters/answer/6352293#touch_elements_too_close#error-list)."]},"message":{"description":"Additional information regarding the issue.","type":"string"},"severity":{"description":"Not returned; reserved for future use.","type":"string","enum":["SEVERITY_UNSPECIFIED","WARNING","ERROR"],"enumDescriptions":["Unknown severity.","Warning.","Error."]}}},"RichResultsInspectionResult":{"description":"Rich-Results inspection result, including any rich results found at this URL.","type":"object","properties":{"verdict":{"enumDescriptions":["Unknown verdict.","Equivalent to \"Valid\" for the page or item in Search Console.","Reserved, no longer in use.","Equivalent to \"Error\" or \"Invalid\" for the page or item in Search Console.","Equivalent to \"Excluded\" for the page or item in Search Console."],"type":"string","enum":["VERDICT_UNSPECIFIED","PASS","PARTIAL","FAIL","NEUTRAL"],"description":"High-level rich results inspection result for this URL."},"detectedItems":{"items":{"$ref":"#/components/schemas/DetectedItems"},"description":"A list of zero or more rich results detected on this page. Rich results that cannot even be parsed due to syntactic issues will not be listed here.","type":"array"}}},"RichResultsIssue":{"description":"Severity and status of a single issue affecting a single rich result instance on a page.","type":"object","properties":{"issueMessage":{"description":"Rich Results issue type.","type":"string"},"severity":{"enumDescriptions":["Unknown severity.","Warning.","Error."],"type":"string","enum":["SEVERITY_UNSPECIFIED","WARNING","ERROR"],"description":"Severity of this issue: WARNING, or ERROR. Items with an issue of status ERROR cannot appear with rich result features in Google Search results."}}},"SearchAnalyticsQueryRequest":{"type":"object","properties":{"rowLimit":{"format":"int32","type":"integer","description":"[Optional; Default is 1000] The maximum number of rows to return. Must be a number from 1 to 25,000 (inclusive)."},"dimensions":{"type":"array","items":{"type":"string","enum":["DATE","QUERY","PAGE","COUNTRY","DEVICE","SEARCH_APPEARANCE","HOUR"],"enumDescriptions":["Group by date, which is returned in YYYY-MM-DD format, in PT time (UTC - 7:00/8:00).","Group by query string.","Group by page, a URI string.","Group by country, specified by 3-letter country code ([ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3)).","Group by device type (DESKTOP, MOBILE and TABLET).","Group by search result feature.","Group by hour, which is returned in YYYY-MM-DDThh:mm:ss[+|-]hh:mm format (ISO-8601 extended offset date-time format) in PT time (UTC - 7:00/8:00). Data is available up to 10 days. Requires setting the dataState to HOURLY_ALL."]},"description":"[Optional] Zero or more dimensions to group results by. Dimensions are the group-by values in the Search Analytics page. Dimensions are combined to create a unique row key for each row. Results are grouped in the order that you supply these dimensions."},"startRow":{"format":"int32","description":"[Optional; Default is 0] Zero-based index of the first row in the response. Must be a non-negative number.","type":"integer"},"type":{"type":"string","enum":["WEB","IMAGE","VIDEO","NEWS","DISCOVER","GOOGLE_NEWS"],"enumDescriptions":["","","","News tab in search.","Discover.","Google News (news.google.com or mobile app)."],"description":"Optional. [Optional; Default is \\\"web\\\"] Type of report: search type, or either Discover or Gnews."},"searchType":{"enumDescriptions":["","","","News tab in search.","Discover.","Google News (news.google.com or mobile app)."],"description":"[Optional; Default is \\\"web\\\"] The search type to filter for.","type":"string","enum":["WEB","IMAGE","VIDEO","NEWS","DISCOVER","GOOGLE_NEWS"]},"endDate":{"description":"[Required] End date of the requested date range, in YYYY-MM-DD format, in PST (UTC - 8:00). Must be greater than or equal to the start date. This value is included in the range.","type":"string"},"aggregationType":{"type":"string","enum":["AUTO","BY_PROPERTY","BY_PAGE","BY_NEWS_SHOWCASE_PANEL"],"description":"[Optional; Default is \\\"auto\\\"] How data is aggregated. If aggregated by property, all data for the same property is aggregated; if aggregated by page, all data is aggregated by canonical URI. If you filter or group by page, choose AUTO; otherwise you can aggregate either by property or by page, depending on how you want your data calculated; see the help documentation to learn how data is calculated differently by site versus by page. **Note:** If you group or filter by page, you cannot aggregate by property. If you specify any value other than AUTO, the aggregation type in the result will match the requested type, or if you request an invalid type, you will get an error. The API will never change your aggregation type if the requested type is invalid.","enumDescriptions":["","","",""]},"dimensionFilterGroups":{"items":{"$ref":"#/components/schemas/ApiDimensionFilterGroup"},"description":"[Optional] Zero or more filters to apply to the dimension grouping values; for example, 'query contains \\\"buy\\\"' to see only data where the query string contains the substring \\\"buy\\\" (not case-sensitive). You can filter by a dimension without grouping by it.","type":"array"},"dataState":{"enumDescriptions":["Default value, should not be used.","Include full final data only, without partial.","Include all data, full and partial.","Include hourly data, full and partial. Required when grouping by HOUR."],"type":"string","enum":["DATA_STATE_UNSPECIFIED","FINAL","ALL","HOURLY_ALL"],"description":"The data state to be fetched, can be full or all, the latter including full and partial data."},"startDate":{"description":" [Required] Start date of the requested date range, in YYYY-MM-DD format, in PST time (UTC - 8:00). Must be less than or equal to the end date. This value is included in the range.","type":"string"}}},"SearchAnalyticsQueryResponse":{"description":"A list of rows, one per result, grouped by key. Metrics in each row are aggregated for all data grouped by that key either by page or property, as specified by the aggregation type parameter.","properties":{"metadata":{"$ref":"#/components/schemas/Metadata","description":"An object that may be returned with your query results, providing context about the state of the data. See details in Metadata object documentation."},"responseAggregationType":{"enumDescriptions":["","","",""],"type":"string","enum":["AUTO","BY_PROPERTY","BY_PAGE","BY_NEWS_SHOWCASE_PANEL"],"description":"How the results were aggregated."},"rows":{"items":{"$ref":"#/components/schemas/ApiDataRow"},"type":"array","description":"A list of rows grouped by the key values in the order given in the query."}},"type":"object"},"SitemapsListResponse":{"type":"object","properties":{"sitemap":{"items":{"$ref":"#/components/schemas/WmxSitemap"},"type":"array","description":"Contains detailed information about a specific URL submitted as a [sitemap](https://support.google.com/webmasters/answer/156184)."}},"description":"List of sitemaps."},"SitesListResponse":{"description":"List of sites with access level information.","type":"object","properties":{"siteEntry":{"items":{"$ref":"#/components/schemas/WmxSite"},"description":"Contains permission level information about a Search Console site. For more information, see [Permissions in Search Console](https://support.google.com/webmasters/answer/2451999).","type":"array"}}},"UrlInspectionResult":{"type":"object","properties":{"mobileUsabilityResult":{"$ref":"#/components/schemas/MobileUsabilityInspectionResult","deprecated":true,"description":"Result of the Mobile usability analysis."},"inspectionResultLink":{"type":"string","description":"Link to Search Console URL inspection."},"richResultsResult":{"$ref":"#/components/schemas/RichResultsInspectionResult","description":"Result of the Rich Results analysis. Absent if there are no rich results found."},"ampResult":{"description":"Result of the AMP analysis. Absent if the page is not an AMP page.","$ref":"#/components/schemas/AmpInspectionResult"},"indexStatusResult":{"description":"Result of the index status analysis.","$ref":"#/components/schemas/IndexStatusInspectionResult"}},"description":"URL inspection result, including all inspection results."},"WmxSite":{"description":"Contains permission level information about a Search Console site. For more information, see [Permissions in Search Console](https://support.google.com/webmasters/answer/2451999).","properties":{"siteUrl":{"type":"string","description":"The URL of the site."},"permissionLevel":{"type":"string","enum":["SITE_PERMISSION_LEVEL_UNSPECIFIED","SITE_OWNER","SITE_FULL_USER","SITE_RESTRICTED_USER","SITE_UNVERIFIED_USER"],"enumDescriptions":["","Owner has complete access to the site.","Full users can access all data, and perform most of the operations.","Restricted users can access most of the data, and perform some operations.","Unverified user has no access to site's data."],"description":"The user's permission level for the site."}},"type":"object"},"WmxSitemap":{"type":"object","properties":{"contents":{"items":{"$ref":"#/components/schemas/WmxSitemapContent"},"description":"The various content types in the sitemap.","type":"array"},"isSitemapsIndex":{"description":"If true, the sitemap is a collection of sitemaps.","type":"boolean"},"errors":{"format":"int64","type":"string","description":"Number of errors in the sitemap. These are issues with the sitemap itself that need to be fixed before it can be processed correctly."},"warnings":{"description":"Number of warnings for the sitemap. These are generally non-critical issues with URLs in the sitemaps.","type":"string","format":"int64"},"lastDownloaded":{"description":"Date & time in which this sitemap was last downloaded. Date format is in RFC 3339 format (yyyy-mm-dd).","format":"google-datetime","type":"string"},"type":{"enumDescriptions":["","","","","","Unsupported sitemap types.",""],"enumDeprecated":[false,false,false,false,false,true,true],"type":"string","enum":["NOT_SITEMAP","URL_LIST","SITEMAP","RSS_FEED","ATOM_FEED","PATTERN_SITEMAP","OCEANFRONT"],"description":"The type of the sitemap. For example: `rssFeed`."},"lastSubmitted":{"format":"google-datetime","type":"string","description":"Date & time in which this sitemap was submitted. Date format is in RFC 3339 format (yyyy-mm-dd)."},"isPending":{"description":"If true, the sitemap has not been processed.","type":"boolean"},"path":{"description":"The url of the sitemap.","type":"string"}},"description":"Contains detailed information about a specific URL submitted as a [sitemap](https://support.google.com/webmasters/answer/156184)."},"WmxSitemapContent":{"description":"Information about the various content types in the sitemap.","properties":{"type":{"enumDescriptions":["","","","","","","Unsupported content type.","","Unsupported content type."],"type":"string","enum":["WEB","IMAGE","VIDEO","NEWS","MOBILE","ANDROID_APP","PATTERN","IOS_APP","DATA_FEED_ELEMENT"],"description":"The specific type of content in this sitemap. For example: `web`.","enumDeprecated":[false,false,false,false,false,false,true,false,true]},"indexed":{"type":"string","description":"*Deprecated; do not use.*","deprecated":true,"format":"int64"},"submitted":{"description":"The number of URLs in the sitemap (of the content type).","format":"int64","type":"string"}},"type":"object"},"GaActiveMetricRestriction":{"type":"object","properties":{"metricName":{"description":"The name of the restricted metric.","type":"string"},"restrictedMetricTypes":{"type":"array","description":"The reason for this metric's restriction.","items":{"enum":["RESTRICTED_METRIC_TYPE_UNSPECIFIED","COST_DATA","REVENUE_DATA"],"enumDescriptions":["Unspecified type.","Cost metrics such as `adCost`.","Revenue metrics such as `purchaseRevenue`."],"type":"string"}}},"description":"A metric actively restricted in creating the report."},"GaBatchRunReportsRequest":{"type":"object","description":"The batch request containing multiple report requests.","properties":{"requests":{"type":"array","description":"Individual requests. Each request has a separate report response. Each batch request is allowed up to 5 requests.","items":{"$ref":"#/components/schemas/GaRunReportRequest"}}}},"GaBatchRunReportsResponse":{"type":"object","description":"The batch response containing multiple reports.","properties":{"kind":{"type":"string","description":"Identifies what kind of resource this message is. This `kind` is always the fixed string \"analyticsData#batchRunReports\". Useful to distinguish between response types in JSON."},"reports":{"type":"array","description":"Individual responses. Each response has a separate report request.","items":{"$ref":"#/components/schemas/GaRunReportResponse"}}}},"GaBetweenFilter":{"type":"object","properties":{"fromValue":{"$ref":"#/components/schemas/GaNumericValue","description":"Begins with this number."},"toValue":{"$ref":"#/components/schemas/GaNumericValue","description":"Ends with this number."}},"description":"To express that the result needs to be between two numbers (inclusive)."},"GaCaseExpression":{"type":"object","properties":{"dimensionName":{"type":"string","description":"Name of a dimension. The name must refer back to a name in dimensions field of the request."}},"description":"Used to convert a dimension value to a single case."},"GaCohort":{"type":"object","properties":{"name":{"type":"string","description":"Assigns a name to this cohort. The dimension `cohort` is valued to this name in a report response. If set, cannot begin with `cohort_` or `RESERVED_`. If not set, cohorts are named by their zero based index `cohort_0`, `cohort_1`, etc."},"dimension":{"description":"Dimension used by the cohort. Required and only supports `firstSessionDate`.","type":"string"},"dateRange":{"$ref":"#/components/schemas/GaDateRange","description":"The cohort selects users whose first touch date is between start date and end date defined in the `dateRange`. This `dateRange` does not specify the full date range of event data that is present in a cohort report. In a cohort report, this `dateRange` is extended by the granularity and offset present in the `cohortsRange`; event data for the extended reporting date range is present in a cohort report. In a cohort request, this `dateRange` is required and the `dateRanges` in the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. This `dateRange` should generally be aligned with the cohort's granularity. If `CohortsRange` uses daily granularity, this `dateRange` can be a single day. If `CohortsRange` uses weekly granularity, this `dateRange` can be aligned to a week boundary, starting at Sunday and ending Saturday. If `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to a month, starting at the first and ending on the last day of the month."}},"description":"Defines a cohort selection criteria. A cohort is a group of users who share a common characteristic. For example, users with the same `firstSessionDate` belong to the same cohort."},"GaCohortReportSettings":{"description":"Optional settings of a cohort report.","properties":{"accumulate":{"type":"boolean","description":"If true, accumulates the result from first touch day to the end day. Not supported in `RunReportRequest`."}},"type":"object"},"GaCohortSpec":{"description":"The specification of cohorts for a cohort report. Cohort reports create a time series of user retention for the cohort. For example, you could select the cohort of users that were acquired in the first week of September and follow that cohort for the next six weeks. Selecting the users acquired in the first week of September cohort is specified in the `cohort` object. Following that cohort for the next six weeks is specified in the `cohortsRange` object. For examples, see [Cohort Report Examples](https://developers.google.com/analytics/devguides/reporting/data/v1/advanced#cohort_report_examples). The report response could show a weekly time series where say your app has retained 60% of this cohort after three weeks and 25% of this cohort after six weeks. These two percentages can be calculated by the metric `cohortActiveUsers/cohortTotalUsers` and will be separate rows in the report.","properties":{"cohorts":{"items":{"$ref":"#/components/schemas/GaCohort"},"description":"Defines the selection criteria to group users into cohorts. Most cohort reports define only a single cohort. If multiple cohorts are specified, each cohort can be recognized in the report by their name.","type":"array"},"cohortsRange":{"$ref":"#/components/schemas/GaCohortsRange","description":"Cohort reports follow cohorts over an extended reporting date range. This range specifies an offset duration to follow the cohorts over."},"cohortReportSettings":{"$ref":"#/components/schemas/GaCohortReportSettings","description":"Optional settings for a cohort report."}},"type":"object"},"GaCohortsRange":{"description":"Configures the extended reporting date range for a cohort report. Specifies an offset duration to follow the cohorts over.","type":"object","properties":{"startOffset":{"description":"`startOffset` specifies the start date of the extended reporting date range for a cohort report. `startOffset` is commonly set to 0 so that reports contain data from the acquisition of the cohort forward. If `granularity` is `DAILY`, the `startDate` of the extended reporting date range is `startDate` of the cohort plus `startOffset` days. If `granularity` is `WEEKLY`, the `startDate` of the extended reporting date range is `startDate` of the cohort plus `startOffset * 7` days. If `granularity` is `MONTHLY`, the `startDate` of the extended reporting date range is `startDate` of the cohort plus `startOffset * 30` days.","type":"integer","format":"int32"},"endOffset":{"type":"integer","format":"int32","description":"Required. `endOffset` specifies the end date of the extended reporting date range for a cohort report. `endOffset` can be any positive integer but is commonly set to 5 to 10 so that reports contain data on the cohort for the next several granularity time periods. If `granularity` is `DAILY`, the `endDate` of the extended reporting date range is `endDate` of the cohort plus `endOffset` days. If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date range is `endDate` of the cohort plus `endOffset * 7` days. If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date range is `endDate` of the cohort plus `endOffset * 30` days."},"granularity":{"type":"string","enumDescriptions":["Should never be specified.","Daily granularity. Commonly used if the cohort's `dateRange` is a single day and the request contains `cohortNthDay`.","Weekly granularity. Commonly used if the cohort's `dateRange` is a week in duration (starting on Sunday and ending on Saturday) and the request contains `cohortNthWeek`.","Monthly granularity. Commonly used if the cohort's `dateRange` is a month in duration and the request contains `cohortNthMonth`."],"enum":["GRANULARITY_UNSPECIFIED","DAILY","WEEKLY","MONTHLY"],"description":"Required. The granularity used to interpret the `startOffset` and `endOffset` for the extended reporting date range for a cohort report."}}},"GaComparison":{"type":"object","properties":{"dimensionFilter":{"description":"A basic comparison.","$ref":"#/components/schemas/GaFilterExpression"},"comparison":{"type":"string","description":"A saved comparison identified by the comparison's resource name. For example, 'comparisons/1234'."},"name":{"type":"string","description":"Each comparison produces separate rows in the response. In the response, this comparison is identified by this name. If name is unspecified, we will use the saved comparisons display name."}},"description":"Defines an individual comparison. Most requests will include multiple comparisons so that the report compares between the comparisons."},"GaComparisonMetadata":{"type":"object","properties":{"apiName":{"description":"This comparison's resource name. Useable in [Comparison](#Comparison)'s `comparison` field. For example, 'comparisons/1234'.","type":"string"},"description":{"description":"This comparison's description.","type":"string"},"uiName":{"description":"This comparison's name within the Google Analytics user interface.","type":"string"}},"description":"The metadata for a single comparison."},"GaConcatenateExpression":{"type":"object","description":"Used to combine dimension values to a single dimension.","properties":{"dimensionNames":{"description":"Names of dimensions. The names must refer back to names in the dimensions field of the request.","type":"array","items":{"type":"string"}},"delimiter":{"description":"The delimiter placed between dimension names. Delimiters are often single characters such as \"|\" or \",\" but can be longer strings. If a dimension value contains the delimiter, both will be present in response with no distinction. For example if dimension 1 value = \"US,FR\", dimension 2 value = \"JP\", and delimiter = \",\", then the response will contain \"US,FR,JP\".","type":"string"}}},"GaDataTruncationDateRange":{"description":"Define the truncated date range from start_date to end_date.","type":"object","properties":{"endDate":{"description":"The end date in the format YYYY-MM-DD (inclusive).","type":"string"},"startDate":{"type":"string","description":"The start date in the format YYYY-MM-DD (inclusive)."}}},"GaDataTruncationReason":{"type":"object","description":"Describes a reason for data truncation in the report.","properties":{"dataTruncationMessage":{"type":"string","description":"A descriptive message explaining the data truncation."},"dataTruncationType":{"enum":["DATA_TRUNCATION_TYPE_UNSPECIFIED","DATA_TRUNCATION_TYPE_RULES_BASED_MODELS","DATA_TRUNCATION_TYPE_DATA_DRIVEN_ATTRIBUTION","DATA_TRUNCATION_TYPE_DV360","DATA_TRUNCATION_TYPE_CM360","DATA_TRUNCATION_TYPE_ITEM_SCOPED_ECOMMERCE_METRICS","DATA_TRUNCATION_TYPE_EVENT_SCOPED_ECOMMERCE_METRICS","DATA_TRUNCATION_TYPE_DATE_RANGE","DATA_TRUNCATION_TYPE_PROPERTY","DATA_TRUNCATION_TYPE_CONVERSIONS","DATA_TRUNCATION_TYPE_GOOGLE_ADS"],"enumDescriptions":["Unspecified type.","Data is truncated in attribution report for rules-based models golden date.","Data is truncated in attribution report for data driven attribution golden date.","Data is truncated because DV360 policy does not permit data older than 2 years from being returned.","Data is truncated because CM360 policy does not permit data older than 2 years from being returned.","New item-scoped ecommerce metrics only have data after a specific date.","New event-scoped ecommerce metrics only have data after a specific date.","Query date range may not be fully served.","Data truncated because the query attempts to read event data prior to its retention date.","Data is truncated in conversions report.","Data is truncated due to Google Ads 36 month retention policy."],"description":"The type of data truncation.","type":"string"},"dataTruncationDate":{"description":"The data truncation date in the format YYYY-MM-DD. Indicates data before this date is truncated.","type":"string"},"dataTruncationDateRanges":{"type":"array","items":{"$ref":"#/components/schemas/GaDataTruncationDateRange"},"description":"The truncated date ranges."}}},"GaDateRange":{"description":"A contiguous set of days: `startDate`, `startDate + 1`, ..., `endDate`. Requests are allowed up to 4 date ranges.","properties":{"endDate":{"type":"string","description":"The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is inferred based on the property's reporting time zone."},"name":{"description":"Assigns a name to this date range. The dimension `dateRange` is valued to this name in a report response. If set, cannot begin with `date_range_` or `RESERVED_`. If not set, date ranges are named by their zero based index in the request: `date_range_0`, `date_range_1`, etc.","type":"string"},"startDate":{"type":"string","description":"The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is inferred based on the property's reporting time zone."}},"type":"object"},"GaDimension":{"type":"object","description":"Dimensions are attributes of your data. For example, the dimension city indicates the city from which an event originates. Dimension values in report responses are strings; for example, the city could be \"Paris\" or \"New York\". Requests are allowed up to 9 dimensions.","properties":{"name":{"description":"The name of the dimension. See the [API Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) for the list of dimension names supported by core reporting methods such as `runReport` and `batchRunReports`. See [Realtime Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#dimensions) for the list of dimension names supported by the `runRealtimeReport` method. See [Funnel Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#dimensions) for the list of dimension names supported by the `runFunnelReport` method. If `dimensionExpression` is specified, `name` can be any string that you would like within the allowed character set. For example if a `dimensionExpression` concatenates `country` and `city`, you could call that dimension `countryAndCity`. Dimension names that you choose must match the regular expression `^[a-zA-Z0-9_]$`. Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, `dimensionExpression`, and `pivots`.","type":"string"},"dimensionExpression":{"description":"One dimension can be the result of an expression of multiple dimensions. For example, dimension \"country, city\": concatenate(country, \", \", city).","$ref":"#/components/schemas/GaDimensionExpression"}}},"GaDimensionExpression":{"description":"Used to express a dimension which is the result of a formula of multiple dimensions. Example usages: 1) lower_case(dimension) 2) concatenate(dimension1, symbol, dimension2).","properties":{"lowerCase":{"description":"Used to convert a dimension value to lower case.","$ref":"#/components/schemas/GaCaseExpression"},"upperCase":{"$ref":"#/components/schemas/GaCaseExpression","description":"Used to convert a dimension value to upper case."},"concatenate":{"$ref":"#/components/schemas/GaConcatenateExpression","description":"Used to combine dimension values to a single dimension. For example, dimension \"country, city\": concatenate(country, \", \", city)."}},"type":"object"},"GaDimensionHeader":{"type":"object","description":"Describes a dimension column in the report. Dimensions requested in a report produce column entries within rows and DimensionHeaders. However, dimensions used exclusively within filters or expressions do not produce columns in a report; correspondingly, those dimensions do not produce headers.","properties":{"name":{"type":"string","description":"The dimension's name."}}},"GaDimensionMetadata":{"type":"object","description":"Explains a dimension.","properties":{"deprecatedApiNames":{"description":"Still usable but deprecated names for this dimension. If populated, this dimension is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the dimension will be available only by `apiName`.","type":"array","items":{"type":"string"}},"uiName":{"type":"string","description":"This dimension's name within the Google Analytics user interface. For example, `Event name`."},"apiName":{"description":"This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For example, `eventName`.","type":"string"},"category":{"type":"string","description":"The display name of the category that this dimension belongs to. Similar dimensions and metrics are categorized together."},"customDefinition":{"description":"True if the dimension is custom to this property. This includes user, event, & item scoped custom dimensions; to learn more about custom dimensions, see https://support.google.com/analytics/answer/14240153. This also include custom channel groups; to learn more about custom channel groups, see https://support.google.com/analytics/answer/13051316.","type":"boolean"},"description":{"type":"string","description":"Description of how this dimension is used and calculated."}}},"GaDimensionOrderBy":{"description":"Sorts by dimension values.","type":"object","properties":{"orderType":{"type":"string","enumDescriptions":["Unspecified.","Alphanumeric sort by Unicode code point. For example, \"2\" < \"A\" < \"X\" < \"b\" < \"z\".","Case insensitive alphanumeric sort by lower case Unicode code point. For example, \"2\" < \"A\" < \"b\" < \"X\" < \"z\".","Dimension values are converted to numbers before sorting. For example in NUMERIC sort, \"25\" < \"100\", and in `ALPHANUMERIC` sort, \"100\" < \"25\". Non-numeric dimension values all have equal ordering value below all numeric values."],"description":"Controls the rule for dimension value ordering.","enum":["ORDER_TYPE_UNSPECIFIED","ALPHANUMERIC","CASE_INSENSITIVE_ALPHANUMERIC","NUMERIC"]},"dimensionName":{"type":"string","description":"A dimension name in the request to order by."}}},"GaDimensionValue":{"properties":{"value":{"type":"string","description":"Value as a string if the dimension type is a string."}},"description":"The value of a dimension.","type":"object"},"GaEmptyFilter":{"type":"object","properties":{},"description":"Filter for empty values."},"GaFilter":{"properties":{"stringFilter":{"$ref":"#/components/schemas/GaStringFilter","description":"Strings related filter."},"inListFilter":{"description":"A filter for in list values.","$ref":"#/components/schemas/GaInListFilter"},"betweenFilter":{"description":"A filter for two values.","$ref":"#/components/schemas/GaBetweenFilter"},"fieldName":{"description":"The dimension name or metric name. In most methods, dimensions & metrics can be used for the first time in this field. However in a RunPivotReportRequest, this field must be additionally specified by name in the RunPivotReportRequest's dimensions or metrics.","type":"string"},"numericFilter":{"$ref":"#/components/schemas/GaNumericFilter","description":"A filter for numeric or date values."},"emptyFilter":{"description":"A filter for empty values such as \"(not set)\" and \"\" values.","$ref":"#/components/schemas/GaEmptyFilter"}},"description":"An expression to filter dimension or metric values.","type":"object"},"GaFilterExpression":{"description":"To express dimension or metric filters. The fields in the same FilterExpression need to be either all dimensions or all metrics.","properties":{"filter":{"$ref":"#/components/schemas/GaFilter","description":"A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all dimensions or all metrics."},"notExpression":{"$ref":"#/components/schemas/GaFilterExpression","description":"The FilterExpression is NOT of not_expression."},"orGroup":{"description":"The FilterExpressions in or_group have an OR relationship.","$ref":"#/components/schemas/GaFilterExpressionList"},"andGroup":{"$ref":"#/components/schemas/GaFilterExpressionList","description":"The FilterExpressions in and_group have an AND relationship."}},"type":"object"},"GaFilterExpressionList":{"description":"A list of filter expressions.","properties":{"expressions":{"description":"A list of filter expressions.","items":{"$ref":"#/components/schemas/GaFilterExpression"},"type":"array"}},"type":"object"},"GaInListFilter":{"description":"The result needs to be in a list of string values.","properties":{"caseSensitive":{"description":"If true, the string value is case sensitive.","type":"boolean"},"values":{"description":"The list of string values. Must be non-empty.","type":"array","items":{"type":"string"}}},"type":"object"},"GaMetadata":{"description":"The dimensions, metrics and comparisons currently accepted in reporting methods.","type":"object","properties":{"name":{"description":"Resource name of this metadata.","type":"string"},"comparisons":{"items":{"$ref":"#/components/schemas/GaComparisonMetadata"},"description":"The comparison descriptions.","type":"array"},"dimensions":{"description":"The dimension descriptions.","type":"array","items":{"$ref":"#/components/schemas/GaDimensionMetadata"}},"metrics":{"items":{"$ref":"#/components/schemas/GaMetricMetadata"},"description":"The metric descriptions.","type":"array"}}},"GaMetric":{"description":"The quantitative measurements of a report. For example, the metric `eventCount` is the total number of events. Requests are allowed up to 10 metrics.","type":"object","properties":{"expression":{"type":"string","description":"A mathematical expression for derived metrics. For example, the metric Event count per user is `eventCount/totalUsers`."},"name":{"description":"The name of the metric. See the [API Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) for the list of metric names supported by core reporting methods such as `runReport` and `batchRunReports`. See [Realtime Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#metrics) for the list of metric names supported by the `runRealtimeReport` method. See [Funnel Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#metrics) for the list of metric names supported by the `runFunnelReport` method. If `expression` is specified, `name` can be any string that you would like within the allowed character set. For example if `expression` is `screenPageViews/sessions`, you could call that metric's name = `viewsPerSession`. Metric names that you choose must match the regular expression `^[a-zA-Z0-9_]$`. Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric `expression`.","type":"string"},"invisible":{"description":"Indicates if a metric is invisible in the report response. If a metric is invisible, the metric will not produce a column in the response, but can be used in `metricFilter`, `orderBys`, or a metric `expression`.","type":"boolean"}}},"GaMetricHeader":{"description":"Describes a metric column in the report. Visible metrics requested in a report produce column entries within rows and MetricHeaders. However, metrics used exclusively within filters or expressions do not produce columns in a report; correspondingly, those metrics do not produce headers.","type":"object","properties":{"name":{"type":"string","description":"The metric's name."},"type":{"enumDescriptions":["Unspecified type.","Integer type.","Floating point type.","A duration of seconds; a special floating point type.","A duration in milliseconds; a special floating point type.","A duration in minutes; a special floating point type.","A duration in hours; a special floating point type.","A custom metric of standard type; a special floating point type.","An amount of money; a special floating point type.","A length in feet; a special floating point type.","A length in miles; a special floating point type.","A length in meters; a special floating point type.","A length in kilometers; a special floating point type."],"description":"The metric's data type.","enum":["METRIC_TYPE_UNSPECIFIED","TYPE_INTEGER","TYPE_FLOAT","TYPE_SECONDS","TYPE_MILLISECONDS","TYPE_MINUTES","TYPE_HOURS","TYPE_STANDARD","TYPE_CURRENCY","TYPE_FEET","TYPE_MILES","TYPE_METERS","TYPE_KILOMETERS"],"type":"string"}}},"GaMetricMetadata":{"description":"Explains a metric.","properties":{"expression":{"type":"string","description":"The mathematical expression for this derived metric. Can be used in [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics are not expressions, and for non-expressions, this field is empty."},"uiName":{"type":"string","description":"This metric's name within the Google Analytics user interface. For example, `Event count`."},"type":{"enum":["METRIC_TYPE_UNSPECIFIED","TYPE_INTEGER","TYPE_FLOAT","TYPE_SECONDS","TYPE_MILLISECONDS","TYPE_MINUTES","TYPE_HOURS","TYPE_STANDARD","TYPE_CURRENCY","TYPE_FEET","TYPE_MILES","TYPE_METERS","TYPE_KILOMETERS"],"type":"string","enumDescriptions":["Unspecified type.","Integer type.","Floating point type.","A duration of seconds; a special floating point type.","A duration in milliseconds; a special floating point type.","A duration in minutes; a special floating point type.","A duration in hours; a special floating point type.","A custom metric of standard type; a special floating point type.","An amount of money; a special floating point type.","A length in feet; a special floating point type.","A length in miles; a special floating point type.","A length in meters; a special floating point type.","A length in kilometers; a special floating point type."],"description":"The type of this metric."},"customDefinition":{"type":"boolean","description":"True if the metric is a custom metric for this property."},"blockedReasons":{"items":{"enumDescriptions":["Will never be specified in API response.","If present, your access is blocked to revenue related metrics for this property, and this metric is revenue related.","If present, your access is blocked to cost related metrics for this property, and this metric is cost related."],"type":"string","enum":["BLOCKED_REASON_UNSPECIFIED","NO_REVENUE_METRICS","NO_COST_METRICS"]},"description":"If reasons are specified, your access is blocked to this metric for this property. API requests from you to this property for this metric will succeed; however, the report will contain only zeros for this metric. API requests with metric filters on blocked metrics will fail. If reasons are empty, you have access to this metric. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).","type":"array"},"description":{"description":"Description of how this metric is used and calculated.","type":"string"},"category":{"type":"string","description":"The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together."},"deprecatedApiNames":{"items":{"type":"string"},"type":"array","description":"Still usable but deprecated names for this metric. If populated, this metric is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the metric will be available only by `apiName`."},"apiName":{"description":"A metric name. Useable in [Metric](#Metric)'s `name`. For example, `eventCount`.","type":"string"}},"type":"object"},"GaMetricOrderBy":{"description":"Sorts by metric values.","properties":{"metricName":{"type":"string","description":"A metric name in the request to order by."}},"type":"object"},"GaMetricValue":{"type":"object","properties":{"value":{"description":"Measurement value. See MetricHeader for type.","type":"string"}},"description":"The value of a metric."},"GaMinuteRange":{"type":"object","properties":{"startMinutesAgo":{"format":"int32","type":"integer","description":"The inclusive start minute for the query as a number of minutes before now. For example, `\"startMinutesAgo\": 29` specifies the report should include event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics properties can request up to the last 30 minutes of event data (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to the last 60 minutes of event data (`startMinutesAgo <= 59`)."},"name":{"type":"string","description":"Assigns a name to this minute range. The dimension `dateRange` is valued to this name in a report response. If set, cannot begin with `date_range_` or `RESERVED_`. If not set, minute ranges are named by their zero based index in the request: `date_range_0`, `date_range_1`, etc."},"endMinutesAgo":{"format":"int32","type":"integer","description":"The inclusive end minute for the query as a number of minutes before now. Cannot be before `startMinutesAgo`. For example, `\"endMinutesAgo\": 15` specifies the report should include event data from prior to 15 minutes ago. If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics properties can request any minute in the last 30 minutes of event data (`endMinutesAgo <= 29`), and 360 Analytics properties can request any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`)."}},"description":"A contiguous set of minutes: `startMinutesAgo`, `startMinutesAgo + 1`, ..., `endMinutesAgo`. Requests are allowed up to 2 minute ranges."},"GaNumericFilter":{"properties":{"operation":{"type":"string","enumDescriptions":["Unspecified.","Equal","Less than","Less than or equal","Greater than","Greater than or equal"],"enum":["OPERATION_UNSPECIFIED","EQUAL","LESS_THAN","LESS_THAN_OR_EQUAL","GREATER_THAN","GREATER_THAN_OR_EQUAL"],"description":"The operation type for this filter."},"value":{"description":"A numeric value or a date value.","$ref":"#/components/schemas/GaNumericValue"}},"description":"Filters for numeric or date values.","type":"object"},"GaNumericValue":{"type":"object","properties":{"int64Value":{"format":"int64","type":"string","description":"Integer value"},"doubleValue":{"format":"double","description":"Double value","type":"number"}},"description":"To represent a number."},"GaOrderBy":{"description":"Order bys define how rows will be sorted in the response. For example, ordering rows by descending event count is one ordering, and ordering rows by the event name string is a different ordering.","type":"object","properties":{"dimension":{"description":"Sorts results by a dimension's values.","$ref":"#/components/schemas/GaDimensionOrderBy"},"pivot":{"$ref":"#/components/schemas/GaPivotOrderBy","description":"Sorts results by a metric's values within a pivot column group."},"desc":{"description":"If true, sorts by descending order.","type":"boolean"},"metric":{"description":"Sorts results by a metric's values.","$ref":"#/components/schemas/GaMetricOrderBy"}}},"GaPivotOrderBy":{"description":"Sorts by a pivot column group.","type":"object","properties":{"metricName":{"description":"In the response to order by, order rows by this column. Must be a metric name from the request.","type":"string"},"pivotSelections":{"description":"Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair.","type":"array","items":{"$ref":"#/components/schemas/GaPivotSelection"}}}},"GaPivotSelection":{"type":"object","properties":{"dimensionName":{"type":"string","description":"Must be a dimension name from the request."},"dimensionValue":{"type":"string","description":"Order by only when the named dimension is this value."}},"description":"A pair of dimension names and values. Rows with this dimension pivot pair are ordered by the metric's value. For example if pivots = {{\"browser\", \"Chrome\"}} and metric_name = \"Sessions\", then the rows will be sorted based on Sessions in Chrome. ---------|----------|----------------|----------|---------------- | Chrome | Chrome | Safari | Safari ---------|----------|----------------|----------|---------------- Country | Sessions | Pages/Sessions | Sessions | Pages/Sessions ---------|----------|----------------|----------|---------------- US | 2 | 2 | 3 | 1 ---------|----------|----------------|----------|---------------- Canada | 3 | 1 | 4 | 1 ---------|----------|----------------|----------|----------------"},"GaPropertyQuota":{"description":"Current state of all quotas for this Analytics Property. If any quota for a property is exhausted, all requests to that property will return Resource Exhausted errors.","type":"object","properties":{"tokensPerDay":{"description":"Standard Analytics Properties can use up to 200,000 tokens per day; Analytics 360 Properties can use 2,000,000 tokens per day. Most requests consume fewer than 10 tokens.","$ref":"#/components/schemas/GaQuotaStatus"},"concurrentRequests":{"description":"Standard Analytics Properties can send up to 10 concurrent requests; Analytics 360 Properties can use up to 50 concurrent requests.","$ref":"#/components/schemas/GaQuotaStatus"},"potentiallyThresholdedRequestsPerHour":{"description":"Analytics Properties can send up to 120 requests with potentially thresholded dimensions per hour. In a batch request, each report request is individually counted for this quota if the request contains potentially thresholded dimensions.","$ref":"#/components/schemas/GaQuotaStatus"},"serverErrorsPerProjectPerHour":{"$ref":"#/components/schemas/GaQuotaStatus","description":"Standard Analytics Properties and cloud project pairs can have up to 10 server errors per hour; Analytics 360 Properties and cloud project pairs can have up to 50 server errors per hour."},"tokensPerProjectPerHour":{"description":"Analytics Properties can use up to 35% of their tokens per project per hour. This amounts to standard Analytics Properties can use up to 14,000 tokens per project per hour, and Analytics 360 Properties can use 140,000 tokens per project per hour. An API request consumes a single number of tokens, and that number is deducted from all of the hourly, daily, and per project hourly quotas.","$ref":"#/components/schemas/GaQuotaStatus"},"tokensPerHour":{"description":"Standard Analytics Properties can use up to 40,000 tokens per hour; Analytics 360 Properties can use 400,000 tokens per hour. An API request consumes a single number of tokens, and that number is deducted from all of the hourly, daily, and per project hourly quotas.","$ref":"#/components/schemas/GaQuotaStatus"}}},"GaQuotaStatus":{"type":"object","properties":{"consumed":{"format":"int32","description":"Quota consumed by this request.","type":"integer"},"remaining":{"type":"integer","format":"int32","description":"Quota remaining after this request."}},"description":"Current state for a particular quota group."},"GaResponseMetaData":{"type":"object","properties":{"subjectToThresholding":{"type":"boolean","description":"If `subjectToThresholding` is true, this report is subject to thresholding and only returns data that meets the minimum aggregation thresholds. It is possible for a request to be subject to thresholding thresholding and no data is absent from the report, and this happens when all data is above the thresholds. To learn more, see [Data thresholds](https://support.google.com/analytics/answer/9383630)."},"currencyCode":{"description":"The currency code used in this report. Intended to be used in formatting currency metrics like `purchaseRevenue` for visualization. If currency_code was specified in the request, this response parameter will echo the request parameter; otherwise, this response parameter is the property's current currency_code. Currency codes are string encodings of currency types from the ISO 4217 standard (https://en.wikipedia.org/wiki/ISO_4217); for example \"USD\", \"EUR\", \"JPY\". To learn more, see https://support.google.com/analytics/answer/9796179.","type":"string"},"samplingMetadatas":{"type":"array","items":{"$ref":"#/components/schemas/GaSamplingMetadata"},"description":"If this report results is [sampled](https://support.google.com/analytics/answer/13331292), this describes the percentage of events used in this report. One `samplingMetadatas` is populated for each date range. Each `samplingMetadatas` corresponds to a date range in order that date ranges were specified in the request. However if the results are not sampled, this field will not be defined."},"timeZone":{"type":"string","description":"The property's current timezone. Intended to be used to interpret time-based dimensions like `hour` and `minute`. Formatted as strings from the IANA Time Zone database (https://www.iana.org/time-zones); for example \"America/New_York\" or \"Asia/Tokyo\"."},"dataLossFromOtherRow":{"description":"If true, indicates some buckets of dimension combinations are rolled into \"(other)\" row. This can happen for high cardinality reports. The metadata parameter dataLossFromOtherRow is populated based on the aggregated data table used in the report. The parameter will be accurately populated regardless of the filters and limits in the report. For example, the (other) row could be dropped from the report because the request contains a filter on sessionSource = google. This parameter will still be populated if data loss from other row was present in the input aggregate data used to generate this report. To learn more, see [About the (other) row and data sampling](https://support.google.com/analytics/answer/13208658#reports).","type":"boolean"},"schemaRestrictionResponse":{"$ref":"#/components/schemas/GaSchemaRestrictionResponse","description":"Describes the schema restrictions actively enforced in creating this report. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388)."},"dataTruncationReasons":{"type":"array","items":{"$ref":"#/components/schemas/GaDataTruncationReason"},"description":"If set, indicate there is data truncation in the report."},"emptyReason":{"description":"If empty reason is specified, the report is empty for this reason.","type":"string"}},"description":"Response's metadata carrying additional information about the report content."},"GaRow":{"description":"Report data for each row. For example if RunReportRequest contains: ```none \"dimensions\": [ { \"name\": \"eventName\" }, { \"name\": \"countryId\" } ], \"metrics\": [ { \"name\": \"eventCount\" } ] ``` One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and 15 as the eventCount, would be: ```none \"dimensionValues\": [ { \"value\": \"in_app_purchase\" }, { \"value\": \"JP\" } ], \"metricValues\": [ { \"value\": \"15\" } ] ```","type":"object","properties":{"dimensionValues":{"items":{"$ref":"#/components/schemas/GaDimensionValue"},"type":"array","description":"List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot."},"metricValues":{"type":"array","items":{"$ref":"#/components/schemas/GaMetricValue"},"description":"List of requested visible metric values."}}},"GaRunRealtimeReportRequest":{"properties":{"metricFilter":{"description":"The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Dimensions cannot be used in this filter.","$ref":"#/components/schemas/GaFilterExpression"},"minuteRanges":{"type":"array","items":{"$ref":"#/components/schemas/GaMinuteRange"},"description":"The minute ranges of event data to read. If unspecified, one minute range for the last 30 minutes will be used. If multiple minute ranges are requested, each response row will contain a zero based minute range index. If two minute ranges overlap, the event data for the overlapping minutes is included in the response rows for both minute ranges."},"returnPropertyQuota":{"type":"boolean","description":"Toggles whether to return the current state of this Google Analytics property's Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota)."},"dimensionFilter":{"description":"The filter clause of dimensions. Metrics cannot be used in this filter.","$ref":"#/components/schemas/GaFilterExpression"},"metricAggregations":{"description":"Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to \"RESERVED_(MetricAggregation)\".","type":"array","items":{"enum":["METRIC_AGGREGATION_UNSPECIFIED","TOTAL","MINIMUM","MAXIMUM","COUNT"],"enumDescriptions":["Unspecified operator.","SUM operator.","Minimum operator.","Maximum operator.","Count operator."],"type":"string"}},"metrics":{"items":{"$ref":"#/components/schemas/GaMetric"},"type":"array","description":"The metrics requested and displayed."},"limit":{"type":"string","format":"int64","description":"The number of rows to return. If unspecified, 10,000 rows are returned. The API returns a maximum of 250,000 rows per request, no matter how many you ask for. `limit` must be positive. The API can also return fewer rows than the requested `limit`, if there aren't as many dimension values as the `limit`. For instance, there are fewer than 300 possible values for the dimension `country`, so when reporting on only `country`, you can't get more than 300 rows, even if you set `limit` to a higher value."},"dimensions":{"type":"array","description":"The dimensions requested and displayed.","items":{"$ref":"#/components/schemas/GaDimension"}},"orderBys":{"items":{"$ref":"#/components/schemas/GaOrderBy"},"description":"Specifies how rows are ordered in the response.","type":"array"}},"description":"The request to generate a realtime report.","type":"object"},"GaRunRealtimeReportResponse":{"description":"The response realtime report table corresponding to a request.","type":"object","properties":{"kind":{"description":"Identifies what kind of resource this message is. This `kind` is always the fixed string \"analyticsData#runRealtimeReport\". Useful to distinguish between response types in JSON.","type":"string"},"totals":{"type":"array","description":"If requested, the totaled values of metrics.","items":{"$ref":"#/components/schemas/GaRow"}},"maximums":{"type":"array","items":{"$ref":"#/components/schemas/GaRow"},"description":"If requested, the maximum values of metrics."},"minimums":{"type":"array","description":"If requested, the minimum values of metrics.","items":{"$ref":"#/components/schemas/GaRow"}},"propertyQuota":{"$ref":"#/components/schemas/GaPropertyQuota","description":"This Google Analytics property's Realtime quota state including this request."},"rowCount":{"description":"The total number of rows in the query result. `rowCount` is independent of the number of rows returned in the response and the `limit` request parameter. For example if a query returns 175 rows and includes `limit` of 50 in the API request, the response will contain `rowCount` of 175 but only 50 rows.","type":"integer","format":"int32"},"rows":{"description":"Rows of dimension value combinations and metric values in the report.","type":"array","items":{"$ref":"#/components/schemas/GaRow"}},"metricHeaders":{"type":"array","description":"Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.","items":{"$ref":"#/components/schemas/GaMetricHeader"}},"dimensionHeaders":{"items":{"$ref":"#/components/schemas/GaDimensionHeader"},"description":"Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows.","type":"array"}}},"GaRunReportRequest":{"properties":{"limit":{"description":"The number of rows to return. If unspecified, 10,000 rows are returned. The API returns a maximum of 250,000 rows per request, no matter how many you ask for. `limit` must be positive. The API can also return fewer rows than the requested `limit`, if there aren't as many dimension values as the `limit`. For instance, there are fewer than 300 possible values for the dimension `country`, so when reporting on only `country`, you can't get more than 300 rows, even if you set `limit` to a higher value. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).","type":"string","format":"int64"},"dimensions":{"description":"The dimensions requested and displayed.","type":"array","items":{"$ref":"#/components/schemas/GaDimension"}},"metricAggregations":{"items":{"enumDescriptions":["Unspecified operator.","SUM operator.","Minimum operator.","Maximum operator.","Count operator."],"enum":["METRIC_AGGREGATION_UNSPECIFIED","TOTAL","MINIMUM","MAXIMUM","COUNT"],"type":"string"},"description":"Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to \"RESERVED_(MetricAggregation)\". Aggregates including both comparisons and multiple date ranges will be aggregated based on the date ranges.","type":"array"},"cohortSpec":{"description":"Cohort group associated with this request. If there is a cohort group in the request the 'cohort' dimension must be present.","$ref":"#/components/schemas/GaCohortSpec"},"comparisons":{"description":"Optional. The configuration of comparisons requested and displayed. The request only requires a comparisons field in order to receive a comparison column in the response.","type":"array","items":{"$ref":"#/components/schemas/GaComparison"}},"metricFilter":{"description":"The filter clause of metrics. Applied after aggregating the report's rows, similar to SQL having-clause. Dimensions cannot be used in this filter.","$ref":"#/components/schemas/GaFilterExpression"},"metrics":{"type":"array","description":"The metrics requested and displayed.","items":{"$ref":"#/components/schemas/GaMetric"}},"returnPropertyQuota":{"type":"boolean","description":"Toggles whether to return the current state of this Google Analytics property's quota. Quota is returned in [PropertyQuota](#PropertyQuota)."},"offset":{"description":"The row count of the start row. The first row is counted as row 0. When paging, the first request does not specify offset; or equivalently, sets offset to 0; the first request returns the first `limit` of rows. The second request sets offset to the `limit` of the first request; the second request returns the second `limit` of rows. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).","type":"string","format":"int64"},"keepEmptyRows":{"type":"boolean","description":"If false or unspecified, each row with all metrics equal to 0 will not be returned. If true, these rows will be returned if they are not separately removed by a filter. Regardless of this `keep_empty_rows` setting, only data recorded by the Google Analytics property can be displayed in a report. For example if a property never logs a `purchase` event, then a query for the `eventName` dimension and `eventCount` metric will not have a row eventName: \"purchase\" and eventCount: 0."},"property":{"description":"A Google Analytics property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). Within a batch request, this property should either be unspecified or consistent with the batch-level property. Example: properties/1234","type":"string"},"currencyCode":{"description":"A currency code in ISO4217 format, such as \"AED\", \"USD\", \"JPY\". If the field is empty, the report uses the property's default currency.","type":"string"},"dimensionFilter":{"$ref":"#/components/schemas/GaFilterExpression","description":"Dimension filters let you ask for only specific dimension values in the report. To learn more, see [Fundamentals of Dimension Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) for examples. Metrics cannot be used in this filter."},"dateRanges":{"description":"Date ranges of data to read. If multiple date ranges are requested, each response row will contain a zero based date range index. If two date ranges overlap, the event data for the overlapping days is included in the response rows for both date ranges. In a cohort request, this `dateRanges` must be unspecified.","type":"array","items":{"$ref":"#/components/schemas/GaDateRange"}},"orderBys":{"items":{"$ref":"#/components/schemas/GaOrderBy"},"description":"Specifies how rows are ordered in the response. Requests including both comparisons and multiple date ranges will have order bys applied on the comparisons.","type":"array"}},"description":"The request to generate a report.","type":"object"},"GaRunReportResponse":{"description":"The response report table corresponding to a request.","properties":{"totals":{"items":{"$ref":"#/components/schemas/GaRow"},"description":"If requested, the totaled values of metrics.","type":"array"},"metadata":{"$ref":"#/components/schemas/GaResponseMetaData","description":"Metadata for the report."},"kind":{"type":"string","description":"Identifies what kind of resource this message is. This `kind` is always the fixed string \"analyticsData#runReport\". Useful to distinguish between response types in JSON."},"minimums":{"type":"array","description":"If requested, the minimum values of metrics.","items":{"$ref":"#/components/schemas/GaRow"}},"maximums":{"items":{"$ref":"#/components/schemas/GaRow"},"type":"array","description":"If requested, the maximum values of metrics."},"propertyQuota":{"$ref":"#/components/schemas/GaPropertyQuota","description":"This Google Analytics property's quota state including this request."},"dimensionHeaders":{"description":"Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows.","items":{"$ref":"#/components/schemas/GaDimensionHeader"},"type":"array"},"rows":{"items":{"$ref":"#/components/schemas/GaRow"},"description":"Rows of dimension value combinations and metric values in the report.","type":"array"},"metricHeaders":{"items":{"$ref":"#/components/schemas/GaMetricHeader"},"type":"array","description":"Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows."},"rowCount":{"description":"The total number of rows in the query result. `rowCount` is independent of the number of rows returned in the response, the `limit` request parameter, and the `offset` request parameter. For example if a query returns 175 rows and includes `limit` of 50 in the API request, the response will contain `rowCount` of 175 but only 50 rows. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).","type":"integer","format":"int32"}},"type":"object"},"GaSamplingMetadata":{"type":"object","properties":{"samplingSpaceSize":{"description":"The total number of events present in this property's data that could have been analyzed in this report for a date range. Sampling uncovers the meaningful information about the larger data set, and this is the size of the larger data set. To calculate the percentage of available data that was used in this report, compute `samplesReadCount/samplingSpaceSize`.","type":"string","format":"int64"},"samplesReadCount":{"format":"int64","type":"string","description":"The total number of events read in this sampled report for a date range. This is the size of the subset this property's data that was analyzed in this report."}},"description":"If this report results is [sampled](https://support.google.com/analytics/answer/13331292), this describes the percentage of events used in this report. Sampling is the practice of analyzing a subset of all data in order to uncover the meaningful information in the larger data set."},"GaSchemaRestrictionResponse":{"type":"object","properties":{"activeMetricRestrictions":{"description":"All restrictions actively enforced in creating the report. For example, `purchaseRevenue` always has the restriction type `REVENUE_DATA`. However, this active response restriction is only populated if the user's custom role disallows access to `REVENUE_DATA`.","items":{"$ref":"#/components/schemas/GaActiveMetricRestriction"},"type":"array"}},"description":"The schema restrictions actively enforced in creating this report. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388)."},"GaStringFilter":{"description":"The filter for string","type":"object","properties":{"matchType":{"type":"string","enum":["MATCH_TYPE_UNSPECIFIED","EXACT","BEGINS_WITH","ENDS_WITH","CONTAINS","FULL_REGEXP","PARTIAL_REGEXP"],"description":"The match type for this filter.","enumDescriptions":["Unspecified","Exact match of the string value.","Begins with the string value.","Ends with the string value.","Contains the string value.","Full match for the regular expression with the string value.","Partial match for the regular expression with the string value."]},"value":{"description":"The string value used for the matching.","type":"string"},"caseSensitive":{"type":"boolean","description":"If true, the string value is case sensitive."}}},"YtErrorProto":{"properties":{"domain":{"description":"Error domain. RoSy services can define their own domain and error codes. This should normally be the name of an enum type, such as: gdata.CoreErrorDomain","type":"string"},"argument":{"items":{"type":"string"},"description":"Error arguments, to be used when building user-friendly error messages given the error domain and code. Different error codes require different arguments.","type":"array"},"locationType":{"enumDescriptions":["location is an xpath-like path pointing to the request field that caused the error.","other location type which can safely be shared externally.","Location is request parameter. This maps to the {@link PARAMETERS} in {@link MessageLocation}."],"enum":["PATH","OTHER","PARAMETER"],"type":"string"},"location":{"description":"Location of the error, as specified by the location type. If location_type is PATH, this should be a path to a field that's relative to the request, using FieldPath notation (net/proto2/util/public/field_path.h). Examples: authenticated_user.gaia_id resource.address[2].country","type":"string"},"code":{"type":"string","description":"Error code in the error domain. This should correspond to a value of the enum type whose name is in domain. See the core error domain in error_domain.proto."},"externalErrorMessage":{"type":"string","description":"A short explanation for the error, which can be shared outside Google. Please set domain, code and arguments whenever possible instead of this error message so that external APIs can build safe error messages themselves. External messages built in a RoSy interface will most likely refer to information and concepts that are not available externally and should not be exposed. It is safer if external APIs can understand the errors and decide what the error message should look like."},"debugInfo":{"description":"Debugging information, which should not be shared externally.","type":"string"}},"description":"Describes one specific error.","type":"object"},"YtErrors":{"description":"Request Error information. The presence of an error field signals that the operation has failed.","type":"object","properties":{"error":{"type":"array","description":"Specific error description and codes","items":{"$ref":"#/components/schemas/YtErrorProto"}},"requestId":{"description":"Request identifier generated by the service, which can be used to identify the error in the logs","type":"string"},"code":{"deprecated":true,"description":"Global error code. Deprecated and ignored. Set custom error codes in ErrorProto.domain and ErrorProto.code instead.","type":"string","enum":["BAD_REQUEST","FORBIDDEN","NOT_FOUND","CONFLICT","GONE","PRECONDITION_FAILED","INTERNAL_ERROR","SERVICE_UNAVAILABLE"],"enumDescriptions":["","","","","","","",""]}}},"YtGroup":{"properties":{"contentDetails":{"$ref":"#/components/schemas/YtGroupContentDetails","description":"The `contentDetails` object contains additional information about the group, such as the number and type of items that it contains."},"errors":{"description":"Apiary error details","$ref":"#/components/schemas/YtErrors"},"snippet":{"$ref":"#/components/schemas/YtGroupSnippet","description":"The `snippet` object contains basic information about the group, including its creation date and name."},"kind":{"description":"Identifies the API resource's type. The value will be `youtube#group`.","type":"string"},"id":{"type":"string","description":"The ID that YouTube uses to uniquely identify the group."},"etag":{"description":"The Etag of this resource.","type":"string"}},"description":"A group.","type":"object"},"YtGroupContentDetails":{"properties":{"itemCount":{"format":"uint64","description":"The number of items in the group.","type":"string"},"itemType":{"type":"string","description":"The type of resources that the group contains. Valid values for this property are: * `youtube#channel` * `youtube#playlist` * `youtube#video` * `youtubePartner#asset`"}},"type":"object","description":"A group's content details."},"YtGroupItem":{"properties":{"errors":{"$ref":"#/components/schemas/YtErrors","description":"Apiary error details"},"kind":{"type":"string","description":"Identifies the API resource's type. The value will be `youtube#groupItem`."},"resource":{"$ref":"#/components/schemas/YtGroupItemResource","description":"The `resource` object contains information that identifies the item being added to the group."},"groupId":{"description":"The ID that YouTube uses to uniquely identify the group that contains the item.","type":"string"},"etag":{"description":"The Etag of this resource.","type":"string"},"id":{"type":"string","description":"The ID that YouTube uses to uniquely identify the `channel`, `video`, `playlist`, or `asset` resource that is included in the group. Note that this ID refers specifically to the inclusion of that resource in a particular group and is different than the channel ID, video ID, playlist ID, or asset ID that uniquely identifies the resource itself. The `resource.id` property's value specifies the unique channel, video, playlist, or asset ID."}},"description":"A group item.","type":"object"},"YtGroupItemResource":{"properties":{"id":{"type":"string","description":"The channel, video, playlist, or asset ID that YouTube uses to uniquely identify the item that is being added to the group."},"kind":{"description":"Identifies the type of resource being added to the group. Valid values for this property are: * `youtube#channel` * `youtube#playlist` * `youtube#video` * `youtubePartner#asset`","type":"string"}},"type":"object"},"YtGroupSnippet":{"properties":{"publishedAt":{"type":"string","description":"The date and time that the group was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.","format":"google-datetime"},"title":{"description":"The group name. The value must be a non-empty string.","type":"string"}},"description":"A group snippet.","type":"object"},"YtListGroupItemsResponse":{"description":"Response message for GroupsService.ListGroupItems.","properties":{"kind":{"description":"Identifies the API resource's type. The value will be `youtube#groupItemListResponse`.","type":"string"},"errors":{"$ref":"#/components/schemas/YtErrors","description":"Apiary error details"},"etag":{"type":"string","description":"The Etag of this resource."},"items":{"items":{"$ref":"#/components/schemas/YtGroupItem"},"type":"array","description":"A list of groups that match the API request parameters. Each item in the list represents a `groupItem` resource."}},"type":"object"},"YtListGroupsResponse":{"properties":{"nextPageToken":{"type":"string","description":"The token that can be used as the value of the `pageToken` parameter to retrieve the next page in the result set."},"items":{"type":"array","description":"A list of groups that match the API request parameters. Each item in the list represents a `group` resource.","items":{"$ref":"#/components/schemas/YtGroup"}},"etag":{"type":"string","description":"The Etag of this resource."},"errors":{"description":"Apiary error details","$ref":"#/components/schemas/YtErrors"},"kind":{"type":"string","description":"Identifies the API resource's type. The value will be `youtube#groupListResponse`."}},"type":"object","description":"Response message for GroupsService.ListGroups."},"YtQueryResponse":{"description":"Response message for TargetedQueriesService.Query.","properties":{"kind":{"description":"This value specifies the type of data included in the API response. For the query method, the kind property value will be `youtubeAnalytics#resultTable`.","type":"string"},"rows":{"description":"The list contains all rows of the result table. Each item in the list is an array that contains comma-delimited data corresponding to a single row of data. The order of the comma-delimited data fields will match the order of the columns listed in the `columnHeaders` field. If no data is available for the given query, the `rows` element will be omitted from the response. The response for a query with the `day` dimension will not contain rows for the most recent days.","type":"array","items":{"items":{},"type":"array"}},"columnHeaders":{"description":"This value specifies information about the data returned in the `rows` fields. Each item in the `columnHeaders` list identifies a field returned in the `rows` value, which contains a list of comma-delimited data. The `columnHeaders` list will begin with the dimensions specified in the API request, which will be followed by the metrics specified in the API request. The order of both dimensions and metrics will match the ordering in the API request. For example, if the API request contains the parameters `dimensions=ageGroup,gender&metrics=viewerPercentage`, the API response will return columns in this order: `ageGroup`, `gender`, `viewerPercentage`.","items":{"$ref":"#/components/schemas/YtResultTableColumnHeader"},"type":"array"},"errors":{"$ref":"#/components/schemas/YtErrors","description":"When set, indicates that the operation failed."}},"type":"object"},"YtResultTableColumnHeader":{"description":"The description of a column of the result table.","properties":{"name":{"type":"string","description":"The name of the dimension or metric."},"dataType":{"description":"The type of the data in the column (`STRING`, `INTEGER`, `FLOAT`, etc.).","type":"string"},"columnType":{"type":"string","description":"The type of the column (`DIMENSION` or `METRIC`)."}},"type":"object"}},"securitySchemes":{"upstreamOAuth":{"type":"oauth2","description":"Upstream Google OAuth scope used by the proxy (agents use AAuth, not this scheme).","flows":{"authorizationCode":{"authorizationUrl":"https://accounts.google.com/o/oauth2/v2/auth","tokenUrl":"https://oauth2.googleapis.com/token","scopes":{"https://www.googleapis.com/auth/analytics.readonly":"analytics.readonly","https://www.googleapis.com/auth/webmasters":"webmasters","https://www.googleapis.com/auth/webmasters.readonly":"webmasters.readonly","https://www.googleapis.com/auth/yt-analytics.readonly":"yt-analytics.readonly"}}}}}}}