Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="analyticsdata_v1alpha.html">Google Analytics Data API</a> . <a href="analyticsdata_v1alpha.v1alpha.html">v1alpha</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#batchRunPivotReports">batchRunPivotReports(body=None, x__xgafv=None)</a></code></p> |
| 79 | <p class="firstline">Returns multiple pivot reports in a batch. All reports must be for the same Entity.</p> |
| 80 | <p class="toc_element"> |
| 81 | <code><a href="#batchRunReports">batchRunReports(body=None, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Returns multiple reports in a batch. All reports must be for the same Entity.</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#close">close()</a></code></p> |
| 85 | <p class="firstline">Close httplib2 connections.</p> |
| 86 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 87 | <code><a href="#runPivotReport">runPivotReport(body=None, x__xgafv=None)</a></code></p> |
| 88 | <p class="firstline">Returns a customized pivot report of your Google Analytics event data. Pivot reports are more advanced and expressive formats than regular reports. In a pivot report, dimensions are only visible if they are included in a pivot. Multiple pivots can be specified to further dissect your data.</p> |
| 89 | <p class="toc_element"> |
| 90 | <code><a href="#runReport">runReport(body=None, x__xgafv=None)</a></code></p> |
| 91 | <p class="firstline">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.</p> |
| 92 | <h3>Method Details</h3> |
| 93 | <div class="method"> |
| 94 | <code class="details" id="batchRunPivotReports">batchRunPivotReports(body=None, x__xgafv=None)</code> |
| 95 | <pre>Returns multiple pivot reports in a batch. All reports must be for the same Entity. |
| 96 | |
| 97 | Args: |
| 98 | body: object, The request body. |
| 99 | The object takes the form of: |
| 100 | |
| 101 | { # The batch request containing multiple pivot report requests. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 102 | "requests": [ # Individual requests. Each request has a separate pivot report response. Each batch request is allowed up to 5 requests. |
| 103 | { # The request to generate a pivot report. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 104 | "keepEmptyRows": True or False, # 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. |
| 105 | "dimensions": [ # The dimensions requested. All defined dimensions must be used by one of the following: dimension_expression, dimension_filter, pivots, order_bys. |
| 106 | { # 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, city could be "Paris" or "New York". Requests are allowed up to 8 dimensions. |
| 107 | "name": "A String", # The name of the dimension. See the [API Dimensions](https://developers.google.com/analytics/trusted-testing/analytics-data/api-schema#dimensions) for the list of dimension names. If `dimensionExpression` is specified, `name` can be any string that you would like. For example if a `dimensionExpression` concatenates `country` and `city`, you could call that dimension `countryAndCity`. Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, `dimensionExpression`, and `pivots`. |
| 108 | "dimensionExpression": { # 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). # One dimension can be the result of an expression of multiple dimensions. For example, dimension "country, city": concatenate(country, ", ", city). |
| 109 | "lowerCase": { # Used to convert a dimension value to a single case. # Used to convert a dimension value to lower case. |
| 110 | "dimensionName": "A String", # Name of a dimension. The name must refer back to a name in dimensions field of the request. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 111 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 112 | "upperCase": { # Used to convert a dimension value to a single case. # Used to convert a dimension value to upper case. |
| 113 | "dimensionName": "A String", # Name of a dimension. The name must refer back to a name in dimensions field of the request. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 114 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 115 | "concatenate": { # Used to combine dimension values to a single dimension. # Used to combine dimension values to a single dimension. For example, dimension "country, city": concatenate(country, ", ", city). |
| 116 | "dimensionNames": [ # Names of dimensions. The names must refer back to names in the dimensions field of the request. |
| 117 | "A String", |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 118 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 119 | "delimiter": "A String", # 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". |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 120 | }, |
| 121 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 122 | }, |
| 123 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 124 | "metrics": [ # The metrics requested, at least one metric needs to be specified. All defined metrics must be used by one of the following: metric_expression, metric_filter, order_bys. |
| 125 | { # The quantitative measurements of a report. For example, the metric `eventCount` is the total number of events. Requests are allowed up to 10 metrics. |
| 126 | "name": "A String", # The name of the metric. See the [API Metrics](https://developers.google.com/analytics/trusted-testing/analytics-data/api-schema#metrics) for the list of metric names. If `expression` is specified, `name` can be any string that you would like. For example if `expression` is `screenPageViews/sessions`, you could call that metric's name = `viewsPerSession`. Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric `expression`. |
| 127 | "expression": "A String", # A mathematical expression for derived metrics. For example, the metric Event count per user is `eventCount/totalUsers`. |
| 128 | "invisible": True or False, # 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`. |
| 129 | }, |
| 130 | ], |
| 131 | "dimensionFilter": { # To express dimension or metric filters. The fields in the same FilterExpression need to be either all dimensions or all metrics. # The filter clause of dimensions. Dimensions must be requested to be used in this filter. Metrics cannot be used in this filter. |
| 132 | "notExpression": # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression. |
| 133 | "filter": { # An expression to filter dimension or metric values. # A primitive filter. All fields in filter in same FilterExpression needs to be either all dimensions or metrics. |
| 134 | "betweenFilter": { # To express that the result needs to be between two numbers (inclusive). # A filter for two values. |
| 135 | "fromValue": { # To represent a number. # Begins with this number. |
| 136 | "doubleValue": 3.14, # Double value |
| 137 | "int64Value": "A String", # Integer value |
| 138 | }, |
| 139 | "toValue": { # To represent a number. # Ends with this number. |
| 140 | "doubleValue": 3.14, # Double value |
| 141 | "int64Value": "A String", # Integer value |
| 142 | }, |
| 143 | }, |
| 144 | "numericFilter": { # Filters for numeric or date values. # A filter for numeric or date values. |
| 145 | "value": { # To represent a number. # A numeric value or a date value. |
| 146 | "doubleValue": 3.14, # Double value |
| 147 | "int64Value": "A String", # Integer value |
| 148 | }, |
| 149 | "operation": "A String", # The operation type for this filter. |
| 150 | }, |
| 151 | "nullFilter": True or False, # A filter for null values. If True, a null dimension value is matched by this filter. Null filter is commonly used inside a NOT filter expression. For example, a NOT expression of a null filter removes rows when a dimension is null. |
| 152 | "stringFilter": { # The filter for string # Strings related filter. |
| 153 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 154 | "value": "A String", # The string value used for the matching. |
| 155 | "matchType": "A String", # The match type for this filter. |
| 156 | }, |
| 157 | "inListFilter": { # The result needs to be in a list of string values. # A filter for in list values. |
| 158 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 159 | "values": [ # The list of string values. Must be non-empty. |
| 160 | "A String", |
| 161 | ], |
| 162 | }, |
| 163 | "fieldName": "A String", # The dimension name or metric name. Must be a name defined in dimensions or metrics. |
| 164 | }, |
| 165 | "orGroup": { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship. |
| 166 | "expressions": [ # A list of filter expressions. |
| 167 | # Object with schema name: FilterExpression |
| 168 | ], |
| 169 | }, |
| 170 | "andGroup": { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship. |
| 171 | "expressions": [ # A list of filter expressions. |
| 172 | # Object with schema name: FilterExpression |
| 173 | ], |
| 174 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 175 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 176 | "cohortSpec": { # Specification for a cohort report. # Cohort group associated with this request. If there is a cohort group in the request the 'cohort' dimension must be present. |
| 177 | "cohorts": [ # The definition for the cohorts. |
| 178 | { # Defines a cohort. A cohort is a group of users who share a common characteristic. For example, all users with the same acquisition date belong to the same cohort. |
| 179 | "name": "A String", # 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. |
| 180 | "dateRange": { # A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges. # The cohort selects users whose first visit date is between start date and end date defined in the `dateRange`. In a cohort request, this `dateRange` is required and the `dateRanges` in the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. The date range should be aligned with the cohort's granularity. If CohortsRange uses daily granularity, the date range can be aligned to any day. If CohortsRange uses weekly granularity, the date range should be aligned to the week boundary, starting at Sunday and ending Saturday. If CohortsRange uses monthly granularity, the date range should be aligned to the month, starting at the first and ending on the last day of the month. |
| 181 | "startDate": "A String", # 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. |
| 182 | "endDate": "A String", # 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. |
| 183 | "name": "A String", # 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. |
| 184 | }, |
| 185 | "dimension": "A String", # The dimension used by cohort. Only supports `firstTouchDate` for retention report. |
| 186 | }, |
| 187 | ], |
| 188 | "cohortsRange": { # Describes date range for a cohort report. # The data ranges of cohorts. |
| 189 | "granularity": "A String", # Reporting date range for each cohort is calculated based on these three fields. |
| 190 | "startOffset": 42, # For daily cohorts, this will be the start day offset. For weekly cohorts, this will be the week offset. |
| 191 | "endOffset": 42, # For daily cohorts, this will be the end day offset. For weekly cohorts, this will be the week offset. |
| 192 | }, |
| 193 | "cohortReportSettings": { # Settings of a cohort report. # Settings of a cohort report. |
| 194 | "accumulate": True or False, # If true, accumulates the result from first visit day to the end day. Not supported in `RunReportRequest`. |
| 195 | }, |
| 196 | }, |
| 197 | "pivots": [ # Describes the visual format of the report's dimensions in columns or rows. The union of the fieldNames (dimension names) in all pivots must be a subset of dimension names defined in Dimensions. No two pivots can share a dimension. A dimension is only visible if it appears in a pivot. |
| 198 | { # Describes the visible dimension columns and rows in the report response. |
| 199 | "fieldNames": [ # Dimension names for visible columns in the report response. Including "dateRange" produces a date range column; for each row in the response, dimension values in the date range column will indicate the corresponding date range from the request. |
| 200 | "A String", |
| 201 | ], |
| 202 | "metricAggregations": [ # Aggregate the metrics by dimensions in this pivot using the specified metric_aggregations. |
| 203 | "A String", |
| 204 | ], |
| 205 | "orderBys": [ # Specifies how dimensions are ordered in the pivot. In the first Pivot, the OrderBys determine Row and PivotDimensionHeader ordering; in subsequent Pivots, the OrderBys determine only PivotDimensionHeader ordering. Dimensions specified in these OrderBys must be a subset of Pivot.field_names. |
| 206 | { # The sort options. |
| 207 | "metric": { # Sorts by metric values. # Sorts results by a metric's values. |
| 208 | "metricName": "A String", # A metric name in the request to order by. |
| 209 | }, |
| 210 | "pivot": { # Sorts by a pivot column group. # Sorts results by a metric's values within a pivot column group. |
| 211 | "metricName": "A String", # In the response to order by, order rows by this column. Must be a metric name from the request. |
| 212 | "pivotSelections": [ # 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. |
| 213 | { # 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 ---------|----------|----------------|----------|---------------- |
| 214 | "dimensionName": "A String", # Must be a dimension name from the request. |
| 215 | "dimensionValue": "A String", # Order by only when the named dimension is this value. |
| 216 | }, |
| 217 | ], |
| 218 | }, |
| 219 | "desc": True or False, # If true, sorts by descending order. |
| 220 | "dimension": { # Sorts by dimension values. # Sorts results by a dimension's values. |
| 221 | "dimensionName": "A String", # A dimension name in the request to order by. |
| 222 | "orderType": "A String", # Controls the rule for dimension value ordering. |
| 223 | }, |
| 224 | }, |
| 225 | ], |
| 226 | "limit": "A String", # The number of rows to return in this pivot. If unspecified, 10 rows are returned. If -1, all rows are returned. |
| 227 | "offset": "A String", # The row count of the start row. The first row is counted as row 0. |
| 228 | }, |
| 229 | ], |
| 230 | "entity": { # The unique identifier of the property whose events are tracked. # A property whose events are tracked. Within a batch request, this entity should either be unspecified or consistent with the batch-level entity. |
| 231 | "propertyId": "A String", # A Google Analytics GA4 property id. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id). |
| 232 | }, |
| 233 | "returnPropertyQuota": True or False, # Toggles whether to return the current state of this Analytics Property's quota. Quota is returned in [PropertyQuota](#PropertyQuota). |
| 234 | "dateRanges": [ # The date range to retrieve event data for the report. If multiple date ranges are specified, event data from each date range is used in the report. A special dimension with field name "dateRange" can be included in a Pivot's field names; if included, the report compares between date ranges. In a cohort request, this `dateRanges` must be unspecified. |
| 235 | { # A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges. |
| 236 | "startDate": "A String", # 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. |
| 237 | "endDate": "A String", # 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. |
| 238 | "name": "A String", # 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. |
| 239 | }, |
| 240 | ], |
| 241 | "metricFilter": { # To express dimension or metric filters. The fields in the same FilterExpression need to be either all dimensions or all metrics. # The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Metrics must be requested to be used in this filter. Dimensions cannot be used in this filter. |
| 242 | "notExpression": # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression. |
| 243 | "filter": { # An expression to filter dimension or metric values. # A primitive filter. All fields in filter in same FilterExpression needs to be either all dimensions or metrics. |
| 244 | "betweenFilter": { # To express that the result needs to be between two numbers (inclusive). # A filter for two values. |
| 245 | "fromValue": { # To represent a number. # Begins with this number. |
| 246 | "doubleValue": 3.14, # Double value |
| 247 | "int64Value": "A String", # Integer value |
| 248 | }, |
| 249 | "toValue": { # To represent a number. # Ends with this number. |
| 250 | "doubleValue": 3.14, # Double value |
| 251 | "int64Value": "A String", # Integer value |
| 252 | }, |
| 253 | }, |
| 254 | "numericFilter": { # Filters for numeric or date values. # A filter for numeric or date values. |
| 255 | "value": { # To represent a number. # A numeric value or a date value. |
| 256 | "doubleValue": 3.14, # Double value |
| 257 | "int64Value": "A String", # Integer value |
| 258 | }, |
| 259 | "operation": "A String", # The operation type for this filter. |
| 260 | }, |
| 261 | "nullFilter": True or False, # A filter for null values. If True, a null dimension value is matched by this filter. Null filter is commonly used inside a NOT filter expression. For example, a NOT expression of a null filter removes rows when a dimension is null. |
| 262 | "stringFilter": { # The filter for string # Strings related filter. |
| 263 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 264 | "value": "A String", # The string value used for the matching. |
| 265 | "matchType": "A String", # The match type for this filter. |
| 266 | }, |
| 267 | "inListFilter": { # The result needs to be in a list of string values. # A filter for in list values. |
| 268 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 269 | "values": [ # The list of string values. Must be non-empty. |
| 270 | "A String", |
| 271 | ], |
| 272 | }, |
| 273 | "fieldName": "A String", # The dimension name or metric name. Must be a name defined in dimensions or metrics. |
| 274 | }, |
| 275 | "orGroup": { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship. |
| 276 | "expressions": [ # A list of filter expressions. |
| 277 | # Object with schema name: FilterExpression |
| 278 | ], |
| 279 | }, |
| 280 | "andGroup": { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship. |
| 281 | "expressions": [ # A list of filter expressions. |
| 282 | # Object with schema name: FilterExpression |
| 283 | ], |
| 284 | }, |
| 285 | }, |
| 286 | "currencyCode": "A String", # A currency code in ISO4217 format, such as "AED", "USD", "JPY". If the field is empty, the report uses the entity's default currency. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 287 | }, |
| 288 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 289 | "entity": { # The unique identifier of the property whose events are tracked. # A property whose events are tracked. This entity must be specified for the batch. The entity within RunPivotReportRequest may either be unspecified or consistent with this entity. |
| 290 | "propertyId": "A String", # A Google Analytics GA4 property id. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id). |
| 291 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 292 | } |
| 293 | |
| 294 | x__xgafv: string, V1 error format. |
| 295 | Allowed values |
| 296 | 1 - v1 error format |
| 297 | 2 - v2 error format |
| 298 | |
| 299 | Returns: |
| 300 | An object of the form: |
| 301 | |
| 302 | { # The batch response containing multiple pivot reports. |
| 303 | "pivotReports": [ # Individual responses. Each response has a separate pivot report request. |
| 304 | { # The response pivot report table corresponding to a pivot request. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 305 | "rows": [ # Rows of dimension value combinations and metric values in the report. |
| 306 | { # 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" } ] ``` |
| 307 | "metricValues": [ # List of requested visible metric values. |
| 308 | { # The value of a metric. |
| 309 | "value": "A String", # Measurement value. See MetricHeader for type. |
| 310 | }, |
| 311 | ], |
| 312 | "dimensionValues": [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. |
| 313 | { # The value of a dimension. |
| 314 | "value": "A String", # Value as a string if the dimension type is a string. |
| 315 | }, |
| 316 | ], |
| 317 | }, |
| 318 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 319 | "dimensionHeaders": [ # Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows. |
| 320 | { # 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. |
| 321 | "name": "A String", # The dimension's name. |
| 322 | }, |
| 323 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 324 | "aggregates": [ # Aggregation of metric values. Can be totals, minimums, or maximums. The returned aggregations are controlled by the metric_aggregations in the pivot. The type of aggregation returned in each row is shown by the dimension_values which are set to "RESERVED_". |
| 325 | { # 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" } ] ``` |
| 326 | "metricValues": [ # List of requested visible metric values. |
| 327 | { # The value of a metric. |
| 328 | "value": "A String", # Measurement value. See MetricHeader for type. |
| 329 | }, |
| 330 | ], |
| 331 | "dimensionValues": [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. |
| 332 | { # The value of a dimension. |
| 333 | "value": "A String", # Value as a string if the dimension type is a string. |
| 334 | }, |
| 335 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 336 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 337 | ], |
| 338 | "metricHeaders": [ # Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows. |
| 339 | { # 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. |
| 340 | "name": "A String", # The metric's name. |
| 341 | "type": "A String", # The metric's data type. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 342 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 343 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 344 | "pivotHeaders": [ # Summarizes the columns and rows created by a pivot. Each pivot in the request produces one header in the response. If we have a request like this: "pivots": [{ "fieldNames": ["country", "city"] }, { "fieldNames": "eventName" }] We will have the following `pivotHeaders` in the response: "pivotHeaders" : [{ "dimensionHeaders": [{ "dimensionValues": [ { "value": "United Kingdom" }, { "value": "London" } ] }, { "dimensionValues": [ { "value": "Japan" }, { "value": "Osaka" } ] }] }, { "dimensionHeaders": [{ "dimensionValues": [{ "value": "session_start" }] }, { "dimensionValues": [{ "value": "scroll" }] }] }] |
| 345 | { # Dimensions' values in a single pivot. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 346 | "pivotDimensionHeaders": [ # The size is the same as the cardinality of the corresponding dimension combinations. |
| 347 | { # Summarizes dimension values from a row for this pivot. |
| 348 | "dimensionValues": [ # Values of multiple dimensions in a pivot. |
| 349 | { # The value of a dimension. |
| 350 | "value": "A String", # Value as a string if the dimension type is a string. |
| 351 | }, |
| 352 | ], |
| 353 | }, |
| 354 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 355 | "rowCount": 42, # The cardinality of the pivot as if offset = 0 and limit = -1. The total number of rows for this pivot's fields regardless of how the parameters offset and limit are specified in the request. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 356 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 357 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 358 | "metadata": { # Response's metadata carrying additional information about the report content. # Metadata for the report. |
| 359 | "dataLossFromOtherRow": True or False, # If true, indicates some buckets of dimension combinations are rolled into "(other)" row. This can happen for high cardinality reports. |
| 360 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 361 | "propertyQuota": { # 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. # This Analytics Property's quota state including this request. |
| 362 | "tokensPerHour": { # Current state for a particular quota group. # Standard Analytics Properties can use up to 5,000 tokens per day; Analytics 360 Properties can use 50,000 tokens per day. An API request consumes a single number of tokens, and that number is deducted from both the hourly and daily quotas. |
| 363 | "consumed": 42, # Quota consumed by this request. |
| 364 | "remaining": 42, # Quota remaining after this request. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 365 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 366 | "concurrentRequests": { # Current state for a particular quota group. # Standard Analytics Properties can send up to 10 concurrent requests; Analytics 360 Properties can use up to 50 concurrent requests. |
| 367 | "consumed": 42, # Quota consumed by this request. |
| 368 | "remaining": 42, # Quota remaining after this request. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 369 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 370 | "serverErrorsPerProjectPerHour": { # Current state for a particular quota group. # 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. |
| 371 | "consumed": 42, # Quota consumed by this request. |
| 372 | "remaining": 42, # Quota remaining after this request. |
| 373 | }, |
| 374 | "tokensPerDay": { # Current state for a particular quota group. # Standard Analytics Properties can use up to 25,000 tokens per day; Analytics 360 Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens. |
| 375 | "consumed": 42, # Quota consumed by this request. |
| 376 | "remaining": 42, # Quota remaining after this request. |
| 377 | }, |
| 378 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 379 | }, |
| 380 | ], |
| 381 | }</pre> |
| 382 | </div> |
| 383 | |
| 384 | <div class="method"> |
| 385 | <code class="details" id="batchRunReports">batchRunReports(body=None, x__xgafv=None)</code> |
| 386 | <pre>Returns multiple reports in a batch. All reports must be for the same Entity. |
| 387 | |
| 388 | Args: |
| 389 | body: object, The request body. |
| 390 | The object takes the form of: |
| 391 | |
| 392 | { # The batch request containing multiple report requests. |
| 393 | "requests": [ # Individual requests. Each request has a separate report response. Each batch request is allowed up to 5 requests. |
| 394 | { # The request to generate a report. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 395 | "dateRanges": [ # 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. |
| 396 | { # A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges. |
| 397 | "startDate": "A String", # 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. |
| 398 | "endDate": "A String", # 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. |
| 399 | "name": "A String", # 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. |
| 400 | }, |
| 401 | ], |
| 402 | "metricFilter": { # To express dimension or metric filters. The fields in the same FilterExpression need to be either all dimensions or all metrics. # The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Metrics must be requested to be used in this filter. Dimensions cannot be used in this filter. |
| 403 | "notExpression": # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression. |
| 404 | "filter": { # An expression to filter dimension or metric values. # A primitive filter. All fields in filter in same FilterExpression needs to be either all dimensions or metrics. |
| 405 | "betweenFilter": { # To express that the result needs to be between two numbers (inclusive). # A filter for two values. |
| 406 | "fromValue": { # To represent a number. # Begins with this number. |
| 407 | "doubleValue": 3.14, # Double value |
| 408 | "int64Value": "A String", # Integer value |
| 409 | }, |
| 410 | "toValue": { # To represent a number. # Ends with this number. |
| 411 | "doubleValue": 3.14, # Double value |
| 412 | "int64Value": "A String", # Integer value |
| 413 | }, |
| 414 | }, |
| 415 | "numericFilter": { # Filters for numeric or date values. # A filter for numeric or date values. |
| 416 | "value": { # To represent a number. # A numeric value or a date value. |
| 417 | "doubleValue": 3.14, # Double value |
| 418 | "int64Value": "A String", # Integer value |
| 419 | }, |
| 420 | "operation": "A String", # The operation type for this filter. |
| 421 | }, |
| 422 | "nullFilter": True or False, # A filter for null values. If True, a null dimension value is matched by this filter. Null filter is commonly used inside a NOT filter expression. For example, a NOT expression of a null filter removes rows when a dimension is null. |
| 423 | "stringFilter": { # The filter for string # Strings related filter. |
| 424 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 425 | "value": "A String", # The string value used for the matching. |
| 426 | "matchType": "A String", # The match type for this filter. |
| 427 | }, |
| 428 | "inListFilter": { # The result needs to be in a list of string values. # A filter for in list values. |
| 429 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 430 | "values": [ # The list of string values. Must be non-empty. |
| 431 | "A String", |
| 432 | ], |
| 433 | }, |
| 434 | "fieldName": "A String", # The dimension name or metric name. Must be a name defined in dimensions or metrics. |
| 435 | }, |
| 436 | "orGroup": { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship. |
| 437 | "expressions": [ # A list of filter expressions. |
| 438 | # Object with schema name: FilterExpression |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 439 | ], |
| 440 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 441 | "andGroup": { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship. |
| 442 | "expressions": [ # A list of filter expressions. |
| 443 | # Object with schema name: FilterExpression |
| 444 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 445 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 446 | }, |
| 447 | "offset": "A String", # The row count of the start row. The first row is counted as row 0. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). |
| 448 | "currencyCode": "A String", # A currency code in ISO4217 format, such as "AED", "USD", "JPY". If the field is empty, the report uses the entity's default currency. |
| 449 | "dimensionFilter": { # To express dimension or metric filters. The fields in the same FilterExpression need to be either all dimensions or all metrics. # The filter clause of dimensions. Dimensions must be requested to be used in this filter. Metrics cannot be used in this filter. |
| 450 | "notExpression": # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression. |
| 451 | "filter": { # An expression to filter dimension or metric values. # A primitive filter. All fields in filter in same FilterExpression needs to be either all dimensions or metrics. |
| 452 | "betweenFilter": { # To express that the result needs to be between two numbers (inclusive). # A filter for two values. |
| 453 | "fromValue": { # To represent a number. # Begins with this number. |
| 454 | "doubleValue": 3.14, # Double value |
| 455 | "int64Value": "A String", # Integer value |
| 456 | }, |
| 457 | "toValue": { # To represent a number. # Ends with this number. |
| 458 | "doubleValue": 3.14, # Double value |
| 459 | "int64Value": "A String", # Integer value |
| 460 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 461 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 462 | "numericFilter": { # Filters for numeric or date values. # A filter for numeric or date values. |
| 463 | "value": { # To represent a number. # A numeric value or a date value. |
| 464 | "doubleValue": 3.14, # Double value |
| 465 | "int64Value": "A String", # Integer value |
| 466 | }, |
| 467 | "operation": "A String", # The operation type for this filter. |
| 468 | }, |
| 469 | "nullFilter": True or False, # A filter for null values. If True, a null dimension value is matched by this filter. Null filter is commonly used inside a NOT filter expression. For example, a NOT expression of a null filter removes rows when a dimension is null. |
| 470 | "stringFilter": { # The filter for string # Strings related filter. |
| 471 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 472 | "value": "A String", # The string value used for the matching. |
| 473 | "matchType": "A String", # The match type for this filter. |
| 474 | }, |
| 475 | "inListFilter": { # The result needs to be in a list of string values. # A filter for in list values. |
| 476 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 477 | "values": [ # The list of string values. Must be non-empty. |
| 478 | "A String", |
| 479 | ], |
| 480 | }, |
| 481 | "fieldName": "A String", # The dimension name or metric name. Must be a name defined in dimensions or metrics. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 482 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 483 | "orGroup": { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship. |
| 484 | "expressions": [ # A list of filter expressions. |
| 485 | # Object with schema name: FilterExpression |
| 486 | ], |
| 487 | }, |
| 488 | "andGroup": { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship. |
| 489 | "expressions": [ # A list of filter expressions. |
| 490 | # Object with schema name: FilterExpression |
| 491 | ], |
| 492 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 493 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 494 | "returnPropertyQuota": True or False, # Toggles whether to return the current state of this Analytics Property's quota. Quota is returned in [PropertyQuota](#PropertyQuota). |
| 495 | "metrics": [ # The metrics requested and displayed. |
| 496 | { # The quantitative measurements of a report. For example, the metric `eventCount` is the total number of events. Requests are allowed up to 10 metrics. |
| 497 | "name": "A String", # The name of the metric. See the [API Metrics](https://developers.google.com/analytics/trusted-testing/analytics-data/api-schema#metrics) for the list of metric names. If `expression` is specified, `name` can be any string that you would like. For example if `expression` is `screenPageViews/sessions`, you could call that metric's name = `viewsPerSession`. Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric `expression`. |
| 498 | "expression": "A String", # A mathematical expression for derived metrics. For example, the metric Event count per user is `eventCount/totalUsers`. |
| 499 | "invisible": True or False, # 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`. |
| 500 | }, |
| 501 | ], |
| 502 | "keepEmptyRows": True or False, # 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. |
| 503 | "orderBys": [ # Specifies how rows are ordered in the response. |
| 504 | { # The sort options. |
| 505 | "metric": { # Sorts by metric values. # Sorts results by a metric's values. |
| 506 | "metricName": "A String", # A metric name in the request to order by. |
| 507 | }, |
| 508 | "pivot": { # Sorts by a pivot column group. # Sorts results by a metric's values within a pivot column group. |
| 509 | "metricName": "A String", # In the response to order by, order rows by this column. Must be a metric name from the request. |
| 510 | "pivotSelections": [ # 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. |
| 511 | { # 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 ---------|----------|----------------|----------|---------------- |
| 512 | "dimensionName": "A String", # Must be a dimension name from the request. |
| 513 | "dimensionValue": "A String", # Order by only when the named dimension is this value. |
| 514 | }, |
| 515 | ], |
| 516 | }, |
| 517 | "desc": True or False, # If true, sorts by descending order. |
| 518 | "dimension": { # Sorts by dimension values. # Sorts results by a dimension's values. |
| 519 | "dimensionName": "A String", # A dimension name in the request to order by. |
| 520 | "orderType": "A String", # Controls the rule for dimension value ordering. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 521 | }, |
| 522 | }, |
| 523 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 524 | "cohortSpec": { # Specification for a cohort report. # Cohort group associated with this request. If there is a cohort group in the request the 'cohort' dimension must be present. |
| 525 | "cohorts": [ # The definition for the cohorts. |
| 526 | { # Defines a cohort. A cohort is a group of users who share a common characteristic. For example, all users with the same acquisition date belong to the same cohort. |
| 527 | "name": "A String", # 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. |
| 528 | "dateRange": { # A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges. # The cohort selects users whose first visit date is between start date and end date defined in the `dateRange`. In a cohort request, this `dateRange` is required and the `dateRanges` in the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. The date range should be aligned with the cohort's granularity. If CohortsRange uses daily granularity, the date range can be aligned to any day. If CohortsRange uses weekly granularity, the date range should be aligned to the week boundary, starting at Sunday and ending Saturday. If CohortsRange uses monthly granularity, the date range should be aligned to the month, starting at the first and ending on the last day of the month. |
| 529 | "startDate": "A String", # 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. |
| 530 | "endDate": "A String", # 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. |
| 531 | "name": "A String", # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 532 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 533 | "dimension": "A String", # The dimension used by cohort. Only supports `firstTouchDate` for retention report. |
| 534 | }, |
| 535 | ], |
| 536 | "cohortsRange": { # Describes date range for a cohort report. # The data ranges of cohorts. |
| 537 | "granularity": "A String", # Reporting date range for each cohort is calculated based on these three fields. |
| 538 | "startOffset": 42, # For daily cohorts, this will be the start day offset. For weekly cohorts, this will be the week offset. |
| 539 | "endOffset": 42, # For daily cohorts, this will be the end day offset. For weekly cohorts, this will be the week offset. |
| 540 | }, |
| 541 | "cohortReportSettings": { # Settings of a cohort report. # Settings of a cohort report. |
| 542 | "accumulate": True or False, # If true, accumulates the result from first visit day to the end day. Not supported in `RunReportRequest`. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 543 | }, |
| 544 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 545 | "metricAggregations": [ # Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)". |
| 546 | "A String", |
| 547 | ], |
| 548 | "entity": { # The unique identifier of the property whose events are tracked. # A property whose events are tracked. Within a batch request, this entity should either be unspecified or consistent with the batch-level entity. |
| 549 | "propertyId": "A String", # A Google Analytics GA4 property id. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id). |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 550 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 551 | "dimensions": [ # The dimensions requested and displayed. |
| 552 | { # 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, city could be "Paris" or "New York". Requests are allowed up to 8 dimensions. |
| 553 | "name": "A String", # The name of the dimension. See the [API Dimensions](https://developers.google.com/analytics/trusted-testing/analytics-data/api-schema#dimensions) for the list of dimension names. If `dimensionExpression` is specified, `name` can be any string that you would like. For example if a `dimensionExpression` concatenates `country` and `city`, you could call that dimension `countryAndCity`. Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, `dimensionExpression`, and `pivots`. |
| 554 | "dimensionExpression": { # 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). # One dimension can be the result of an expression of multiple dimensions. For example, dimension "country, city": concatenate(country, ", ", city). |
| 555 | "lowerCase": { # Used to convert a dimension value to a single case. # Used to convert a dimension value to lower case. |
| 556 | "dimensionName": "A String", # Name of a dimension. The name must refer back to a name in dimensions field of the request. |
| 557 | }, |
| 558 | "upperCase": { # Used to convert a dimension value to a single case. # Used to convert a dimension value to upper case. |
| 559 | "dimensionName": "A String", # Name of a dimension. The name must refer back to a name in dimensions field of the request. |
| 560 | }, |
| 561 | "concatenate": { # Used to combine dimension values to a single dimension. # Used to combine dimension values to a single dimension. For example, dimension "country, city": concatenate(country, ", ", city). |
| 562 | "dimensionNames": [ # Names of dimensions. The names must refer back to names in the dimensions field of the request. |
| 563 | "A String", |
| 564 | ], |
| 565 | "delimiter": "A String", # 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". |
| 566 | }, |
| 567 | }, |
| 568 | }, |
| 569 | ], |
| 570 | "limit": "A String", # The number of rows to return. If unspecified, 10 rows are returned. If -1, all rows are returned. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 571 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 572 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 573 | "entity": { # The unique identifier of the property whose events are tracked. # A property whose events are tracked. This entity must be specified for the batch. The entity within RunReportRequest may either be unspecified or consistent with this entity. |
| 574 | "propertyId": "A String", # A Google Analytics GA4 property id. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id). |
| 575 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 576 | } |
| 577 | |
| 578 | x__xgafv: string, V1 error format. |
| 579 | Allowed values |
| 580 | 1 - v1 error format |
| 581 | 2 - v2 error format |
| 582 | |
| 583 | Returns: |
| 584 | An object of the form: |
| 585 | |
| 586 | { # The batch response containing multiple reports. |
| 587 | "reports": [ # Individual responses. Each response has a separate report request. |
| 588 | { # The response report table corresponding to a request. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 589 | "metadata": { # Response's metadata carrying additional information about the report content. # Metadata for the report. |
| 590 | "dataLossFromOtherRow": True or False, # If true, indicates some buckets of dimension combinations are rolled into "(other)" row. This can happen for high cardinality reports. |
| 591 | }, |
| 592 | "totals": [ # If requested, the totaled values of metrics. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 593 | { # 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" } ] ``` |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 594 | "metricValues": [ # List of requested visible metric values. |
| 595 | { # The value of a metric. |
| 596 | "value": "A String", # Measurement value. See MetricHeader for type. |
| 597 | }, |
| 598 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 599 | "dimensionValues": [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. |
| 600 | { # The value of a dimension. |
| 601 | "value": "A String", # Value as a string if the dimension type is a string. |
| 602 | }, |
| 603 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 604 | }, |
| 605 | ], |
| 606 | "dimensionHeaders": [ # Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows. |
| 607 | { # 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. |
| 608 | "name": "A String", # The dimension's name. |
| 609 | }, |
| 610 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 611 | "propertyQuota": { # 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. # This Analytics Property's quota state including this request. |
| 612 | "tokensPerHour": { # Current state for a particular quota group. # Standard Analytics Properties can use up to 5,000 tokens per day; Analytics 360 Properties can use 50,000 tokens per day. An API request consumes a single number of tokens, and that number is deducted from both the hourly and daily quotas. |
| 613 | "consumed": 42, # Quota consumed by this request. |
| 614 | "remaining": 42, # Quota remaining after this request. |
| 615 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 616 | "concurrentRequests": { # Current state for a particular quota group. # Standard Analytics Properties can send up to 10 concurrent requests; Analytics 360 Properties can use up to 50 concurrent requests. |
| 617 | "consumed": 42, # Quota consumed by this request. |
| 618 | "remaining": 42, # Quota remaining after this request. |
| 619 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 620 | "serverErrorsPerProjectPerHour": { # Current state for a particular quota group. # 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. |
| 621 | "consumed": 42, # Quota consumed by this request. |
| 622 | "remaining": 42, # Quota remaining after this request. |
| 623 | }, |
| 624 | "tokensPerDay": { # Current state for a particular quota group. # Standard Analytics Properties can use up to 25,000 tokens per day; Analytics 360 Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens. |
| 625 | "consumed": 42, # Quota consumed by this request. |
| 626 | "remaining": 42, # Quota remaining after this request. |
| 627 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 628 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 629 | "rowCount": 42, # The total number of rows in the query result, regardless of the number of rows returned in the response. For example if a query returns 175 rows and includes limit = 50 in the API request, the response will contain row_count = 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). |
| 630 | "rows": [ # Rows of dimension value combinations and metric values in the report. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 631 | { # 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" } ] ``` |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 632 | "metricValues": [ # List of requested visible metric values. |
| 633 | { # The value of a metric. |
| 634 | "value": "A String", # Measurement value. See MetricHeader for type. |
| 635 | }, |
| 636 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 637 | "dimensionValues": [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. |
| 638 | { # The value of a dimension. |
| 639 | "value": "A String", # Value as a string if the dimension type is a string. |
| 640 | }, |
| 641 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 642 | }, |
| 643 | ], |
| 644 | "maximums": [ # If requested, the maximum values of metrics. |
| 645 | { # 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" } ] ``` |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 646 | "metricValues": [ # List of requested visible metric values. |
| 647 | { # The value of a metric. |
| 648 | "value": "A String", # Measurement value. See MetricHeader for type. |
| 649 | }, |
| 650 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 651 | "dimensionValues": [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. |
| 652 | { # The value of a dimension. |
| 653 | "value": "A String", # Value as a string if the dimension type is a string. |
| 654 | }, |
| 655 | ], |
| 656 | }, |
| 657 | ], |
| 658 | "metricHeaders": [ # Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows. |
| 659 | { # 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. |
| 660 | "name": "A String", # The metric's name. |
| 661 | "type": "A String", # The metric's data type. |
| 662 | }, |
| 663 | ], |
| 664 | "minimums": [ # If requested, the minimum values of metrics. |
| 665 | { # 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" } ] ``` |
| 666 | "metricValues": [ # List of requested visible metric values. |
| 667 | { # The value of a metric. |
| 668 | "value": "A String", # Measurement value. See MetricHeader for type. |
| 669 | }, |
| 670 | ], |
| 671 | "dimensionValues": [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. |
| 672 | { # The value of a dimension. |
| 673 | "value": "A String", # Value as a string if the dimension type is a string. |
| 674 | }, |
| 675 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 676 | }, |
| 677 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 678 | }, |
| 679 | ], |
| 680 | }</pre> |
| 681 | </div> |
| 682 | |
| 683 | <div class="method"> |
| 684 | <code class="details" id="close">close()</code> |
| 685 | <pre>Close httplib2 connections.</pre> |
| 686 | </div> |
| 687 | |
| 688 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 689 | <code class="details" id="runPivotReport">runPivotReport(body=None, x__xgafv=None)</code> |
| 690 | <pre>Returns a customized pivot report of your Google Analytics event data. Pivot reports are more advanced and expressive formats than regular reports. In a pivot report, dimensions are only visible if they are included in a pivot. Multiple pivots can be specified to further dissect your data. |
| 691 | |
| 692 | Args: |
| 693 | body: object, The request body. |
| 694 | The object takes the form of: |
| 695 | |
| 696 | { # The request to generate a pivot report. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 697 | "keepEmptyRows": True or False, # 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. |
| 698 | "dimensions": [ # The dimensions requested. All defined dimensions must be used by one of the following: dimension_expression, dimension_filter, pivots, order_bys. |
| 699 | { # 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, city could be "Paris" or "New York". Requests are allowed up to 8 dimensions. |
| 700 | "name": "A String", # The name of the dimension. See the [API Dimensions](https://developers.google.com/analytics/trusted-testing/analytics-data/api-schema#dimensions) for the list of dimension names. If `dimensionExpression` is specified, `name` can be any string that you would like. For example if a `dimensionExpression` concatenates `country` and `city`, you could call that dimension `countryAndCity`. Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, `dimensionExpression`, and `pivots`. |
| 701 | "dimensionExpression": { # 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). # One dimension can be the result of an expression of multiple dimensions. For example, dimension "country, city": concatenate(country, ", ", city). |
| 702 | "lowerCase": { # Used to convert a dimension value to a single case. # Used to convert a dimension value to lower case. |
| 703 | "dimensionName": "A String", # Name of a dimension. The name must refer back to a name in dimensions field of the request. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 704 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 705 | "upperCase": { # Used to convert a dimension value to a single case. # Used to convert a dimension value to upper case. |
| 706 | "dimensionName": "A String", # Name of a dimension. The name must refer back to a name in dimensions field of the request. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 707 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 708 | "concatenate": { # Used to combine dimension values to a single dimension. # Used to combine dimension values to a single dimension. For example, dimension "country, city": concatenate(country, ", ", city). |
| 709 | "dimensionNames": [ # Names of dimensions. The names must refer back to names in the dimensions field of the request. |
| 710 | "A String", |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 711 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 712 | "delimiter": "A String", # 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". |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 713 | }, |
| 714 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 715 | }, |
| 716 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 717 | "metrics": [ # The metrics requested, at least one metric needs to be specified. All defined metrics must be used by one of the following: metric_expression, metric_filter, order_bys. |
| 718 | { # The quantitative measurements of a report. For example, the metric `eventCount` is the total number of events. Requests are allowed up to 10 metrics. |
| 719 | "name": "A String", # The name of the metric. See the [API Metrics](https://developers.google.com/analytics/trusted-testing/analytics-data/api-schema#metrics) for the list of metric names. If `expression` is specified, `name` can be any string that you would like. For example if `expression` is `screenPageViews/sessions`, you could call that metric's name = `viewsPerSession`. Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric `expression`. |
| 720 | "expression": "A String", # A mathematical expression for derived metrics. For example, the metric Event count per user is `eventCount/totalUsers`. |
| 721 | "invisible": True or False, # 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`. |
| 722 | }, |
| 723 | ], |
| 724 | "dimensionFilter": { # To express dimension or metric filters. The fields in the same FilterExpression need to be either all dimensions or all metrics. # The filter clause of dimensions. Dimensions must be requested to be used in this filter. Metrics cannot be used in this filter. |
| 725 | "notExpression": # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression. |
| 726 | "filter": { # An expression to filter dimension or metric values. # A primitive filter. All fields in filter in same FilterExpression needs to be either all dimensions or metrics. |
| 727 | "betweenFilter": { # To express that the result needs to be between two numbers (inclusive). # A filter for two values. |
| 728 | "fromValue": { # To represent a number. # Begins with this number. |
| 729 | "doubleValue": 3.14, # Double value |
| 730 | "int64Value": "A String", # Integer value |
| 731 | }, |
| 732 | "toValue": { # To represent a number. # Ends with this number. |
| 733 | "doubleValue": 3.14, # Double value |
| 734 | "int64Value": "A String", # Integer value |
| 735 | }, |
| 736 | }, |
| 737 | "numericFilter": { # Filters for numeric or date values. # A filter for numeric or date values. |
| 738 | "value": { # To represent a number. # A numeric value or a date value. |
| 739 | "doubleValue": 3.14, # Double value |
| 740 | "int64Value": "A String", # Integer value |
| 741 | }, |
| 742 | "operation": "A String", # The operation type for this filter. |
| 743 | }, |
| 744 | "nullFilter": True or False, # A filter for null values. If True, a null dimension value is matched by this filter. Null filter is commonly used inside a NOT filter expression. For example, a NOT expression of a null filter removes rows when a dimension is null. |
| 745 | "stringFilter": { # The filter for string # Strings related filter. |
| 746 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 747 | "value": "A String", # The string value used for the matching. |
| 748 | "matchType": "A String", # The match type for this filter. |
| 749 | }, |
| 750 | "inListFilter": { # The result needs to be in a list of string values. # A filter for in list values. |
| 751 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 752 | "values": [ # The list of string values. Must be non-empty. |
| 753 | "A String", |
| 754 | ], |
| 755 | }, |
| 756 | "fieldName": "A String", # The dimension name or metric name. Must be a name defined in dimensions or metrics. |
| 757 | }, |
| 758 | "orGroup": { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship. |
| 759 | "expressions": [ # A list of filter expressions. |
| 760 | # Object with schema name: FilterExpression |
| 761 | ], |
| 762 | }, |
| 763 | "andGroup": { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship. |
| 764 | "expressions": [ # A list of filter expressions. |
| 765 | # Object with schema name: FilterExpression |
| 766 | ], |
| 767 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 768 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 769 | "cohortSpec": { # Specification for a cohort report. # Cohort group associated with this request. If there is a cohort group in the request the 'cohort' dimension must be present. |
| 770 | "cohorts": [ # The definition for the cohorts. |
| 771 | { # Defines a cohort. A cohort is a group of users who share a common characteristic. For example, all users with the same acquisition date belong to the same cohort. |
| 772 | "name": "A String", # 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. |
| 773 | "dateRange": { # A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges. # The cohort selects users whose first visit date is between start date and end date defined in the `dateRange`. In a cohort request, this `dateRange` is required and the `dateRanges` in the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. The date range should be aligned with the cohort's granularity. If CohortsRange uses daily granularity, the date range can be aligned to any day. If CohortsRange uses weekly granularity, the date range should be aligned to the week boundary, starting at Sunday and ending Saturday. If CohortsRange uses monthly granularity, the date range should be aligned to the month, starting at the first and ending on the last day of the month. |
| 774 | "startDate": "A String", # 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. |
| 775 | "endDate": "A String", # 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. |
| 776 | "name": "A String", # 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. |
| 777 | }, |
| 778 | "dimension": "A String", # The dimension used by cohort. Only supports `firstTouchDate` for retention report. |
| 779 | }, |
| 780 | ], |
| 781 | "cohortsRange": { # Describes date range for a cohort report. # The data ranges of cohorts. |
| 782 | "granularity": "A String", # Reporting date range for each cohort is calculated based on these three fields. |
| 783 | "startOffset": 42, # For daily cohorts, this will be the start day offset. For weekly cohorts, this will be the week offset. |
| 784 | "endOffset": 42, # For daily cohorts, this will be the end day offset. For weekly cohorts, this will be the week offset. |
| 785 | }, |
| 786 | "cohortReportSettings": { # Settings of a cohort report. # Settings of a cohort report. |
| 787 | "accumulate": True or False, # If true, accumulates the result from first visit day to the end day. Not supported in `RunReportRequest`. |
| 788 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 789 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 790 | "pivots": [ # Describes the visual format of the report's dimensions in columns or rows. The union of the fieldNames (dimension names) in all pivots must be a subset of dimension names defined in Dimensions. No two pivots can share a dimension. A dimension is only visible if it appears in a pivot. |
| 791 | { # Describes the visible dimension columns and rows in the report response. |
| 792 | "fieldNames": [ # Dimension names for visible columns in the report response. Including "dateRange" produces a date range column; for each row in the response, dimension values in the date range column will indicate the corresponding date range from the request. |
| 793 | "A String", |
| 794 | ], |
| 795 | "metricAggregations": [ # Aggregate the metrics by dimensions in this pivot using the specified metric_aggregations. |
| 796 | "A String", |
| 797 | ], |
| 798 | "orderBys": [ # Specifies how dimensions are ordered in the pivot. In the first Pivot, the OrderBys determine Row and PivotDimensionHeader ordering; in subsequent Pivots, the OrderBys determine only PivotDimensionHeader ordering. Dimensions specified in these OrderBys must be a subset of Pivot.field_names. |
| 799 | { # The sort options. |
| 800 | "metric": { # Sorts by metric values. # Sorts results by a metric's values. |
| 801 | "metricName": "A String", # A metric name in the request to order by. |
| 802 | }, |
| 803 | "pivot": { # Sorts by a pivot column group. # Sorts results by a metric's values within a pivot column group. |
| 804 | "metricName": "A String", # In the response to order by, order rows by this column. Must be a metric name from the request. |
| 805 | "pivotSelections": [ # 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. |
| 806 | { # 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 ---------|----------|----------------|----------|---------------- |
| 807 | "dimensionName": "A String", # Must be a dimension name from the request. |
| 808 | "dimensionValue": "A String", # Order by only when the named dimension is this value. |
| 809 | }, |
| 810 | ], |
| 811 | }, |
| 812 | "desc": True or False, # If true, sorts by descending order. |
| 813 | "dimension": { # Sorts by dimension values. # Sorts results by a dimension's values. |
| 814 | "dimensionName": "A String", # A dimension name in the request to order by. |
| 815 | "orderType": "A String", # Controls the rule for dimension value ordering. |
| 816 | }, |
| 817 | }, |
| 818 | ], |
| 819 | "limit": "A String", # The number of rows to return in this pivot. If unspecified, 10 rows are returned. If -1, all rows are returned. |
| 820 | "offset": "A String", # The row count of the start row. The first row is counted as row 0. |
| 821 | }, |
| 822 | ], |
| 823 | "entity": { # The unique identifier of the property whose events are tracked. # A property whose events are tracked. Within a batch request, this entity should either be unspecified or consistent with the batch-level entity. |
| 824 | "propertyId": "A String", # A Google Analytics GA4 property id. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id). |
| 825 | }, |
| 826 | "returnPropertyQuota": True or False, # Toggles whether to return the current state of this Analytics Property's quota. Quota is returned in [PropertyQuota](#PropertyQuota). |
| 827 | "dateRanges": [ # The date range to retrieve event data for the report. If multiple date ranges are specified, event data from each date range is used in the report. A special dimension with field name "dateRange" can be included in a Pivot's field names; if included, the report compares between date ranges. In a cohort request, this `dateRanges` must be unspecified. |
| 828 | { # A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges. |
| 829 | "startDate": "A String", # 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. |
| 830 | "endDate": "A String", # 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. |
| 831 | "name": "A String", # 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. |
| 832 | }, |
| 833 | ], |
| 834 | "metricFilter": { # To express dimension or metric filters. The fields in the same FilterExpression need to be either all dimensions or all metrics. # The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Metrics must be requested to be used in this filter. Dimensions cannot be used in this filter. |
| 835 | "notExpression": # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression. |
| 836 | "filter": { # An expression to filter dimension or metric values. # A primitive filter. All fields in filter in same FilterExpression needs to be either all dimensions or metrics. |
| 837 | "betweenFilter": { # To express that the result needs to be between two numbers (inclusive). # A filter for two values. |
| 838 | "fromValue": { # To represent a number. # Begins with this number. |
| 839 | "doubleValue": 3.14, # Double value |
| 840 | "int64Value": "A String", # Integer value |
| 841 | }, |
| 842 | "toValue": { # To represent a number. # Ends with this number. |
| 843 | "doubleValue": 3.14, # Double value |
| 844 | "int64Value": "A String", # Integer value |
| 845 | }, |
| 846 | }, |
| 847 | "numericFilter": { # Filters for numeric or date values. # A filter for numeric or date values. |
| 848 | "value": { # To represent a number. # A numeric value or a date value. |
| 849 | "doubleValue": 3.14, # Double value |
| 850 | "int64Value": "A String", # Integer value |
| 851 | }, |
| 852 | "operation": "A String", # The operation type for this filter. |
| 853 | }, |
| 854 | "nullFilter": True or False, # A filter for null values. If True, a null dimension value is matched by this filter. Null filter is commonly used inside a NOT filter expression. For example, a NOT expression of a null filter removes rows when a dimension is null. |
| 855 | "stringFilter": { # The filter for string # Strings related filter. |
| 856 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 857 | "value": "A String", # The string value used for the matching. |
| 858 | "matchType": "A String", # The match type for this filter. |
| 859 | }, |
| 860 | "inListFilter": { # The result needs to be in a list of string values. # A filter for in list values. |
| 861 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 862 | "values": [ # The list of string values. Must be non-empty. |
| 863 | "A String", |
| 864 | ], |
| 865 | }, |
| 866 | "fieldName": "A String", # The dimension name or metric name. Must be a name defined in dimensions or metrics. |
| 867 | }, |
| 868 | "orGroup": { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship. |
| 869 | "expressions": [ # A list of filter expressions. |
| 870 | # Object with schema name: FilterExpression |
| 871 | ], |
| 872 | }, |
| 873 | "andGroup": { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship. |
| 874 | "expressions": [ # A list of filter expressions. |
| 875 | # Object with schema name: FilterExpression |
| 876 | ], |
| 877 | }, |
| 878 | }, |
| 879 | "currencyCode": "A String", # A currency code in ISO4217 format, such as "AED", "USD", "JPY". If the field is empty, the report uses the entity's default currency. |
| 880 | } |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 881 | |
| 882 | x__xgafv: string, V1 error format. |
| 883 | Allowed values |
| 884 | 1 - v1 error format |
| 885 | 2 - v2 error format |
| 886 | |
| 887 | Returns: |
| 888 | An object of the form: |
| 889 | |
| 890 | { # The response pivot report table corresponding to a pivot request. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 891 | "rows": [ # Rows of dimension value combinations and metric values in the report. |
| 892 | { # 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" } ] ``` |
| 893 | "metricValues": [ # List of requested visible metric values. |
| 894 | { # The value of a metric. |
| 895 | "value": "A String", # Measurement value. See MetricHeader for type. |
| 896 | }, |
| 897 | ], |
| 898 | "dimensionValues": [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. |
| 899 | { # The value of a dimension. |
| 900 | "value": "A String", # Value as a string if the dimension type is a string. |
| 901 | }, |
| 902 | ], |
| 903 | }, |
| 904 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 905 | "dimensionHeaders": [ # Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows. |
| 906 | { # 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. |
| 907 | "name": "A String", # The dimension's name. |
| 908 | }, |
| 909 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 910 | "aggregates": [ # Aggregation of metric values. Can be totals, minimums, or maximums. The returned aggregations are controlled by the metric_aggregations in the pivot. The type of aggregation returned in each row is shown by the dimension_values which are set to "RESERVED_". |
| 911 | { # 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" } ] ``` |
| 912 | "metricValues": [ # List of requested visible metric values. |
| 913 | { # The value of a metric. |
| 914 | "value": "A String", # Measurement value. See MetricHeader for type. |
| 915 | }, |
| 916 | ], |
| 917 | "dimensionValues": [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. |
| 918 | { # The value of a dimension. |
| 919 | "value": "A String", # Value as a string if the dimension type is a string. |
| 920 | }, |
| 921 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 922 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 923 | ], |
| 924 | "metricHeaders": [ # Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows. |
| 925 | { # 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. |
| 926 | "name": "A String", # The metric's name. |
| 927 | "type": "A String", # The metric's data type. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 928 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 929 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 930 | "pivotHeaders": [ # Summarizes the columns and rows created by a pivot. Each pivot in the request produces one header in the response. If we have a request like this: "pivots": [{ "fieldNames": ["country", "city"] }, { "fieldNames": "eventName" }] We will have the following `pivotHeaders` in the response: "pivotHeaders" : [{ "dimensionHeaders": [{ "dimensionValues": [ { "value": "United Kingdom" }, { "value": "London" } ] }, { "dimensionValues": [ { "value": "Japan" }, { "value": "Osaka" } ] }] }, { "dimensionHeaders": [{ "dimensionValues": [{ "value": "session_start" }] }, { "dimensionValues": [{ "value": "scroll" }] }] }] |
| 931 | { # Dimensions' values in a single pivot. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 932 | "pivotDimensionHeaders": [ # The size is the same as the cardinality of the corresponding dimension combinations. |
| 933 | { # Summarizes dimension values from a row for this pivot. |
| 934 | "dimensionValues": [ # Values of multiple dimensions in a pivot. |
| 935 | { # The value of a dimension. |
| 936 | "value": "A String", # Value as a string if the dimension type is a string. |
| 937 | }, |
| 938 | ], |
| 939 | }, |
| 940 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 941 | "rowCount": 42, # The cardinality of the pivot as if offset = 0 and limit = -1. The total number of rows for this pivot's fields regardless of how the parameters offset and limit are specified in the request. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 942 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 943 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 944 | "metadata": { # Response's metadata carrying additional information about the report content. # Metadata for the report. |
| 945 | "dataLossFromOtherRow": True or False, # If true, indicates some buckets of dimension combinations are rolled into "(other)" row. This can happen for high cardinality reports. |
| 946 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 947 | "propertyQuota": { # 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. # This Analytics Property's quota state including this request. |
| 948 | "tokensPerHour": { # Current state for a particular quota group. # Standard Analytics Properties can use up to 5,000 tokens per day; Analytics 360 Properties can use 50,000 tokens per day. An API request consumes a single number of tokens, and that number is deducted from both the hourly and daily quotas. |
| 949 | "consumed": 42, # Quota consumed by this request. |
| 950 | "remaining": 42, # Quota remaining after this request. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 951 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 952 | "concurrentRequests": { # Current state for a particular quota group. # Standard Analytics Properties can send up to 10 concurrent requests; Analytics 360 Properties can use up to 50 concurrent requests. |
| 953 | "consumed": 42, # Quota consumed by this request. |
| 954 | "remaining": 42, # Quota remaining after this request. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 955 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 956 | "serverErrorsPerProjectPerHour": { # Current state for a particular quota group. # 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. |
| 957 | "consumed": 42, # Quota consumed by this request. |
| 958 | "remaining": 42, # Quota remaining after this request. |
| 959 | }, |
| 960 | "tokensPerDay": { # Current state for a particular quota group. # Standard Analytics Properties can use up to 25,000 tokens per day; Analytics 360 Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens. |
| 961 | "consumed": 42, # Quota consumed by this request. |
| 962 | "remaining": 42, # Quota remaining after this request. |
| 963 | }, |
| 964 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 965 | }</pre> |
| 966 | </div> |
| 967 | |
| 968 | <div class="method"> |
| 969 | <code class="details" id="runReport">runReport(body=None, x__xgafv=None)</code> |
| 970 | <pre>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. |
| 971 | |
| 972 | Args: |
| 973 | body: object, The request body. |
| 974 | The object takes the form of: |
| 975 | |
| 976 | { # The request to generate a report. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 977 | "dateRanges": [ # 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. |
| 978 | { # A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges. |
| 979 | "startDate": "A String", # 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. |
| 980 | "endDate": "A String", # 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. |
| 981 | "name": "A String", # 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. |
| 982 | }, |
| 983 | ], |
| 984 | "metricFilter": { # To express dimension or metric filters. The fields in the same FilterExpression need to be either all dimensions or all metrics. # The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Metrics must be requested to be used in this filter. Dimensions cannot be used in this filter. |
| 985 | "notExpression": # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression. |
| 986 | "filter": { # An expression to filter dimension or metric values. # A primitive filter. All fields in filter in same FilterExpression needs to be either all dimensions or metrics. |
| 987 | "betweenFilter": { # To express that the result needs to be between two numbers (inclusive). # A filter for two values. |
| 988 | "fromValue": { # To represent a number. # Begins with this number. |
| 989 | "doubleValue": 3.14, # Double value |
| 990 | "int64Value": "A String", # Integer value |
| 991 | }, |
| 992 | "toValue": { # To represent a number. # Ends with this number. |
| 993 | "doubleValue": 3.14, # Double value |
| 994 | "int64Value": "A String", # Integer value |
| 995 | }, |
| 996 | }, |
| 997 | "numericFilter": { # Filters for numeric or date values. # A filter for numeric or date values. |
| 998 | "value": { # To represent a number. # A numeric value or a date value. |
| 999 | "doubleValue": 3.14, # Double value |
| 1000 | "int64Value": "A String", # Integer value |
| 1001 | }, |
| 1002 | "operation": "A String", # The operation type for this filter. |
| 1003 | }, |
| 1004 | "nullFilter": True or False, # A filter for null values. If True, a null dimension value is matched by this filter. Null filter is commonly used inside a NOT filter expression. For example, a NOT expression of a null filter removes rows when a dimension is null. |
| 1005 | "stringFilter": { # The filter for string # Strings related filter. |
| 1006 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 1007 | "value": "A String", # The string value used for the matching. |
| 1008 | "matchType": "A String", # The match type for this filter. |
| 1009 | }, |
| 1010 | "inListFilter": { # The result needs to be in a list of string values. # A filter for in list values. |
| 1011 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 1012 | "values": [ # The list of string values. Must be non-empty. |
| 1013 | "A String", |
| 1014 | ], |
| 1015 | }, |
| 1016 | "fieldName": "A String", # The dimension name or metric name. Must be a name defined in dimensions or metrics. |
| 1017 | }, |
| 1018 | "orGroup": { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship. |
| 1019 | "expressions": [ # A list of filter expressions. |
| 1020 | # Object with schema name: FilterExpression |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1021 | ], |
| 1022 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1023 | "andGroup": { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship. |
| 1024 | "expressions": [ # A list of filter expressions. |
| 1025 | # Object with schema name: FilterExpression |
| 1026 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1027 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1028 | }, |
| 1029 | "offset": "A String", # The row count of the start row. The first row is counted as row 0. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). |
| 1030 | "currencyCode": "A String", # A currency code in ISO4217 format, such as "AED", "USD", "JPY". If the field is empty, the report uses the entity's default currency. |
| 1031 | "dimensionFilter": { # To express dimension or metric filters. The fields in the same FilterExpression need to be either all dimensions or all metrics. # The filter clause of dimensions. Dimensions must be requested to be used in this filter. Metrics cannot be used in this filter. |
| 1032 | "notExpression": # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression. |
| 1033 | "filter": { # An expression to filter dimension or metric values. # A primitive filter. All fields in filter in same FilterExpression needs to be either all dimensions or metrics. |
| 1034 | "betweenFilter": { # To express that the result needs to be between two numbers (inclusive). # A filter for two values. |
| 1035 | "fromValue": { # To represent a number. # Begins with this number. |
| 1036 | "doubleValue": 3.14, # Double value |
| 1037 | "int64Value": "A String", # Integer value |
| 1038 | }, |
| 1039 | "toValue": { # To represent a number. # Ends with this number. |
| 1040 | "doubleValue": 3.14, # Double value |
| 1041 | "int64Value": "A String", # Integer value |
| 1042 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1043 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1044 | "numericFilter": { # Filters for numeric or date values. # A filter for numeric or date values. |
| 1045 | "value": { # To represent a number. # A numeric value or a date value. |
| 1046 | "doubleValue": 3.14, # Double value |
| 1047 | "int64Value": "A String", # Integer value |
| 1048 | }, |
| 1049 | "operation": "A String", # The operation type for this filter. |
| 1050 | }, |
| 1051 | "nullFilter": True or False, # A filter for null values. If True, a null dimension value is matched by this filter. Null filter is commonly used inside a NOT filter expression. For example, a NOT expression of a null filter removes rows when a dimension is null. |
| 1052 | "stringFilter": { # The filter for string # Strings related filter. |
| 1053 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 1054 | "value": "A String", # The string value used for the matching. |
| 1055 | "matchType": "A String", # The match type for this filter. |
| 1056 | }, |
| 1057 | "inListFilter": { # The result needs to be in a list of string values. # A filter for in list values. |
| 1058 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 1059 | "values": [ # The list of string values. Must be non-empty. |
| 1060 | "A String", |
| 1061 | ], |
| 1062 | }, |
| 1063 | "fieldName": "A String", # The dimension name or metric name. Must be a name defined in dimensions or metrics. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1064 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1065 | "orGroup": { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship. |
| 1066 | "expressions": [ # A list of filter expressions. |
| 1067 | # Object with schema name: FilterExpression |
| 1068 | ], |
| 1069 | }, |
| 1070 | "andGroup": { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship. |
| 1071 | "expressions": [ # A list of filter expressions. |
| 1072 | # Object with schema name: FilterExpression |
| 1073 | ], |
| 1074 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1075 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1076 | "returnPropertyQuota": True or False, # Toggles whether to return the current state of this Analytics Property's quota. Quota is returned in [PropertyQuota](#PropertyQuota). |
| 1077 | "metrics": [ # The metrics requested and displayed. |
| 1078 | { # The quantitative measurements of a report. For example, the metric `eventCount` is the total number of events. Requests are allowed up to 10 metrics. |
| 1079 | "name": "A String", # The name of the metric. See the [API Metrics](https://developers.google.com/analytics/trusted-testing/analytics-data/api-schema#metrics) for the list of metric names. If `expression` is specified, `name` can be any string that you would like. For example if `expression` is `screenPageViews/sessions`, you could call that metric's name = `viewsPerSession`. Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric `expression`. |
| 1080 | "expression": "A String", # A mathematical expression for derived metrics. For example, the metric Event count per user is `eventCount/totalUsers`. |
| 1081 | "invisible": True or False, # 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`. |
| 1082 | }, |
| 1083 | ], |
| 1084 | "keepEmptyRows": True or False, # 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. |
| 1085 | "orderBys": [ # Specifies how rows are ordered in the response. |
| 1086 | { # The sort options. |
| 1087 | "metric": { # Sorts by metric values. # Sorts results by a metric's values. |
| 1088 | "metricName": "A String", # A metric name in the request to order by. |
| 1089 | }, |
| 1090 | "pivot": { # Sorts by a pivot column group. # Sorts results by a metric's values within a pivot column group. |
| 1091 | "metricName": "A String", # In the response to order by, order rows by this column. Must be a metric name from the request. |
| 1092 | "pivotSelections": [ # 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. |
| 1093 | { # 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 ---------|----------|----------------|----------|---------------- |
| 1094 | "dimensionName": "A String", # Must be a dimension name from the request. |
| 1095 | "dimensionValue": "A String", # Order by only when the named dimension is this value. |
| 1096 | }, |
| 1097 | ], |
| 1098 | }, |
| 1099 | "desc": True or False, # If true, sorts by descending order. |
| 1100 | "dimension": { # Sorts by dimension values. # Sorts results by a dimension's values. |
| 1101 | "dimensionName": "A String", # A dimension name in the request to order by. |
| 1102 | "orderType": "A String", # Controls the rule for dimension value ordering. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1103 | }, |
| 1104 | }, |
| 1105 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1106 | "cohortSpec": { # Specification for a cohort report. # Cohort group associated with this request. If there is a cohort group in the request the 'cohort' dimension must be present. |
| 1107 | "cohorts": [ # The definition for the cohorts. |
| 1108 | { # Defines a cohort. A cohort is a group of users who share a common characteristic. For example, all users with the same acquisition date belong to the same cohort. |
| 1109 | "name": "A String", # 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. |
| 1110 | "dateRange": { # A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges. # The cohort selects users whose first visit date is between start date and end date defined in the `dateRange`. In a cohort request, this `dateRange` is required and the `dateRanges` in the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. The date range should be aligned with the cohort's granularity. If CohortsRange uses daily granularity, the date range can be aligned to any day. If CohortsRange uses weekly granularity, the date range should be aligned to the week boundary, starting at Sunday and ending Saturday. If CohortsRange uses monthly granularity, the date range should be aligned to the month, starting at the first and ending on the last day of the month. |
| 1111 | "startDate": "A String", # 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. |
| 1112 | "endDate": "A String", # 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. |
| 1113 | "name": "A String", # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1114 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1115 | "dimension": "A String", # The dimension used by cohort. Only supports `firstTouchDate` for retention report. |
| 1116 | }, |
| 1117 | ], |
| 1118 | "cohortsRange": { # Describes date range for a cohort report. # The data ranges of cohorts. |
| 1119 | "granularity": "A String", # Reporting date range for each cohort is calculated based on these three fields. |
| 1120 | "startOffset": 42, # For daily cohorts, this will be the start day offset. For weekly cohorts, this will be the week offset. |
| 1121 | "endOffset": 42, # For daily cohorts, this will be the end day offset. For weekly cohorts, this will be the week offset. |
| 1122 | }, |
| 1123 | "cohortReportSettings": { # Settings of a cohort report. # Settings of a cohort report. |
| 1124 | "accumulate": True or False, # If true, accumulates the result from first visit day to the end day. Not supported in `RunReportRequest`. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1125 | }, |
| 1126 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1127 | "metricAggregations": [ # Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)". |
| 1128 | "A String", |
| 1129 | ], |
| 1130 | "entity": { # The unique identifier of the property whose events are tracked. # A property whose events are tracked. Within a batch request, this entity should either be unspecified or consistent with the batch-level entity. |
| 1131 | "propertyId": "A String", # A Google Analytics GA4 property id. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id). |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1132 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1133 | "dimensions": [ # The dimensions requested and displayed. |
| 1134 | { # 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, city could be "Paris" or "New York". Requests are allowed up to 8 dimensions. |
| 1135 | "name": "A String", # The name of the dimension. See the [API Dimensions](https://developers.google.com/analytics/trusted-testing/analytics-data/api-schema#dimensions) for the list of dimension names. If `dimensionExpression` is specified, `name` can be any string that you would like. For example if a `dimensionExpression` concatenates `country` and `city`, you could call that dimension `countryAndCity`. Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, `dimensionExpression`, and `pivots`. |
| 1136 | "dimensionExpression": { # 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). # One dimension can be the result of an expression of multiple dimensions. For example, dimension "country, city": concatenate(country, ", ", city). |
| 1137 | "lowerCase": { # Used to convert a dimension value to a single case. # Used to convert a dimension value to lower case. |
| 1138 | "dimensionName": "A String", # Name of a dimension. The name must refer back to a name in dimensions field of the request. |
| 1139 | }, |
| 1140 | "upperCase": { # Used to convert a dimension value to a single case. # Used to convert a dimension value to upper case. |
| 1141 | "dimensionName": "A String", # Name of a dimension. The name must refer back to a name in dimensions field of the request. |
| 1142 | }, |
| 1143 | "concatenate": { # Used to combine dimension values to a single dimension. # Used to combine dimension values to a single dimension. For example, dimension "country, city": concatenate(country, ", ", city). |
| 1144 | "dimensionNames": [ # Names of dimensions. The names must refer back to names in the dimensions field of the request. |
| 1145 | "A String", |
| 1146 | ], |
| 1147 | "delimiter": "A String", # 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". |
| 1148 | }, |
| 1149 | }, |
| 1150 | }, |
| 1151 | ], |
| 1152 | "limit": "A String", # The number of rows to return. If unspecified, 10 rows are returned. If -1, all rows are returned. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). |
| 1153 | } |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1154 | |
| 1155 | x__xgafv: string, V1 error format. |
| 1156 | Allowed values |
| 1157 | 1 - v1 error format |
| 1158 | 2 - v2 error format |
| 1159 | |
| 1160 | Returns: |
| 1161 | An object of the form: |
| 1162 | |
| 1163 | { # The response report table corresponding to a request. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1164 | "metadata": { # Response's metadata carrying additional information about the report content. # Metadata for the report. |
| 1165 | "dataLossFromOtherRow": True or False, # If true, indicates some buckets of dimension combinations are rolled into "(other)" row. This can happen for high cardinality reports. |
| 1166 | }, |
| 1167 | "totals": [ # If requested, the totaled values of metrics. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1168 | { # 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" } ] ``` |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1169 | "metricValues": [ # List of requested visible metric values. |
| 1170 | { # The value of a metric. |
| 1171 | "value": "A String", # Measurement value. See MetricHeader for type. |
| 1172 | }, |
| 1173 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1174 | "dimensionValues": [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. |
| 1175 | { # The value of a dimension. |
| 1176 | "value": "A String", # Value as a string if the dimension type is a string. |
| 1177 | }, |
| 1178 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1179 | }, |
| 1180 | ], |
| 1181 | "dimensionHeaders": [ # Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows. |
| 1182 | { # 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. |
| 1183 | "name": "A String", # The dimension's name. |
| 1184 | }, |
| 1185 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1186 | "propertyQuota": { # 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. # This Analytics Property's quota state including this request. |
| 1187 | "tokensPerHour": { # Current state for a particular quota group. # Standard Analytics Properties can use up to 5,000 tokens per day; Analytics 360 Properties can use 50,000 tokens per day. An API request consumes a single number of tokens, and that number is deducted from both the hourly and daily quotas. |
| 1188 | "consumed": 42, # Quota consumed by this request. |
| 1189 | "remaining": 42, # Quota remaining after this request. |
| 1190 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1191 | "concurrentRequests": { # Current state for a particular quota group. # Standard Analytics Properties can send up to 10 concurrent requests; Analytics 360 Properties can use up to 50 concurrent requests. |
| 1192 | "consumed": 42, # Quota consumed by this request. |
| 1193 | "remaining": 42, # Quota remaining after this request. |
| 1194 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1195 | "serverErrorsPerProjectPerHour": { # Current state for a particular quota group. # 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. |
| 1196 | "consumed": 42, # Quota consumed by this request. |
| 1197 | "remaining": 42, # Quota remaining after this request. |
| 1198 | }, |
| 1199 | "tokensPerDay": { # Current state for a particular quota group. # Standard Analytics Properties can use up to 25,000 tokens per day; Analytics 360 Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens. |
| 1200 | "consumed": 42, # Quota consumed by this request. |
| 1201 | "remaining": 42, # Quota remaining after this request. |
| 1202 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1203 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1204 | "rowCount": 42, # The total number of rows in the query result, regardless of the number of rows returned in the response. For example if a query returns 175 rows and includes limit = 50 in the API request, the response will contain row_count = 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). |
| 1205 | "rows": [ # Rows of dimension value combinations and metric values in the report. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1206 | { # 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" } ] ``` |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1207 | "metricValues": [ # List of requested visible metric values. |
| 1208 | { # The value of a metric. |
| 1209 | "value": "A String", # Measurement value. See MetricHeader for type. |
| 1210 | }, |
| 1211 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1212 | "dimensionValues": [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. |
| 1213 | { # The value of a dimension. |
| 1214 | "value": "A String", # Value as a string if the dimension type is a string. |
| 1215 | }, |
| 1216 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1217 | }, |
| 1218 | ], |
| 1219 | "maximums": [ # If requested, the maximum values of metrics. |
| 1220 | { # 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" } ] ``` |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1221 | "metricValues": [ # List of requested visible metric values. |
| 1222 | { # The value of a metric. |
| 1223 | "value": "A String", # Measurement value. See MetricHeader for type. |
| 1224 | }, |
| 1225 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1226 | "dimensionValues": [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. |
| 1227 | { # The value of a dimension. |
| 1228 | "value": "A String", # Value as a string if the dimension type is a string. |
| 1229 | }, |
| 1230 | ], |
| 1231 | }, |
| 1232 | ], |
| 1233 | "metricHeaders": [ # Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows. |
| 1234 | { # 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. |
| 1235 | "name": "A String", # The metric's name. |
| 1236 | "type": "A String", # The metric's data type. |
| 1237 | }, |
| 1238 | ], |
| 1239 | "minimums": [ # If requested, the minimum values of metrics. |
| 1240 | { # 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" } ] ``` |
| 1241 | "metricValues": [ # List of requested visible metric values. |
| 1242 | { # The value of a metric. |
| 1243 | "value": "A String", # Measurement value. See MetricHeader for type. |
| 1244 | }, |
| 1245 | ], |
| 1246 | "dimensionValues": [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. |
| 1247 | { # The value of a dimension. |
| 1248 | "value": "A String", # Value as a string if the dimension type is a string. |
| 1249 | }, |
| 1250 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1251 | }, |
| 1252 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1253 | }</pre> |
| 1254 | </div> |
| 1255 | |
| 1256 | </body></html> |