blob: 47e048fee7848ad39240406f73b5a0bdea4e32b4 [file] [log] [blame]
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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 Frenkel3e17f892020-10-06 16:46:05 -070087 <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
97Args:
98 body: object, The request body.
99 The object takes the form of:
100
101{ # The batch request containing multiple pivot report requests.
102 &quot;entity&quot;: { # 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700103 &quot;propertyId&quot;: &quot;A String&quot;, # 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 Frenkel3e17f892020-10-06 16:46:05 -0700104 },
105 &quot;requests&quot;: [ # Individual requests. Each request has a separate pivot report response. Each batch request is allowed up to 5 requests.
106 { # The request to generate a pivot report.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700107 &quot;dimensions&quot;: [ # The dimensions requested. All defined dimensions must be used by one of the following: dimension_expression, dimension_filter, pivots, order_bys.
108 { # 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 &quot;Paris&quot; or &quot;New York&quot;. Requests are allowed up to 8 dimensions.
109 &quot;name&quot;: &quot;A String&quot;, # 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`.
110 &quot;dimensionExpression&quot;: { # 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 &quot;country, city&quot;: concatenate(country, &quot;, &quot;, city).
111 &quot;concatenate&quot;: { # Used to combine dimension values to a single dimension. # Used to combine dimension values to a single dimension. For example, dimension &quot;country, city&quot;: concatenate(country, &quot;, &quot;, city).
112 &quot;dimensionNames&quot;: [ # Names of dimensions. The names must refer back to names in the dimensions field of the request.
113 &quot;A String&quot;,
114 ],
115 &quot;delimiter&quot;: &quot;A String&quot;, # The delimiter placed between dimension names. Delimiters are often single characters such as &quot;|&quot; or &quot;,&quot; 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 = &quot;US,FR&quot;, dimension 2 value = &quot;JP&quot;, and delimiter = &quot;,&quot;, then the response will contain &quot;US,FR,JP&quot;.
116 },
117 &quot;lowerCase&quot;: { # Used to convert a dimension value to a single case. # Used to convert a dimension value to lower case.
118 &quot;dimensionName&quot;: &quot;A String&quot;, # Name of a dimension. The name must refer back to a name in dimensions field of the request.
119 },
120 &quot;upperCase&quot;: { # Used to convert a dimension value to a single case. # Used to convert a dimension value to upper case.
121 &quot;dimensionName&quot;: &quot;A String&quot;, # Name of a dimension. The name must refer back to a name in dimensions field of the request.
122 },
123 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700124 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700125 ],
126 &quot;entity&quot;: { # 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.
127 &quot;propertyId&quot;: &quot;A String&quot;, # 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).
128 },
129 &quot;returnPropertyQuota&quot;: True or False, # Toggles whether to return the current state of this Analytics Property&#x27;s quota. Quota is returned in [PropertyQuota](#PropertyQuota).
130 &quot;dateRanges&quot;: [ # 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 &quot;dateRange&quot; can be included in a Pivot&#x27;s field names; if included, the report compares between date ranges. In a cohort request, this `dateRanges` must be unspecified.
131 { # A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges.
132 &quot;name&quot;: &quot;A String&quot;, # 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.
133 &quot;startDate&quot;: &quot;A String&quot;, # 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&#x27;s reporting time zone.
134 &quot;endDate&quot;: &quot;A String&quot;, # 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&#x27;s reporting time zone.
135 },
136 ],
137 &quot;dimensionFilter&quot;: { # 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.
138 &quot;notExpression&quot;: # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression.
139 &quot;orGroup&quot;: { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship.
140 &quot;expressions&quot;: [ # A list of filter expressions.
141 # Object with schema name: FilterExpression
142 ],
143 },
144 &quot;filter&quot;: { # 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.
145 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
146 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
147 &quot;values&quot;: [ # The list of string values. Must be non-empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700148 &quot;A String&quot;,
149 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700150 },
151 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
152 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
153 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
154 &quot;doubleValue&quot;: 3.14, # Double value
155 },
156 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
157 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
158 &quot;doubleValue&quot;: 3.14, # Double value
159 },
160 },
161 &quot;stringFilter&quot;: { # The filter for string # Strings related filter.
162 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
163 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
164 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
165 },
166 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name. Must be a name defined in dimensions or metrics.
167 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
168 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
169 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
170 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
171 &quot;doubleValue&quot;: 3.14, # Double value
172 },
173 },
174 &quot;nullFilter&quot;: 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.
175 },
176 &quot;andGroup&quot;: { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship.
177 &quot;expressions&quot;: [ # A list of filter expressions.
178 # Object with schema name: FilterExpression
179 ],
180 },
181 },
182 &quot;metricFilter&quot;: { # 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.
183 &quot;notExpression&quot;: # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression.
184 &quot;orGroup&quot;: { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship.
185 &quot;expressions&quot;: [ # A list of filter expressions.
186 # Object with schema name: FilterExpression
187 ],
188 },
189 &quot;filter&quot;: { # 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.
190 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
191 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
192 &quot;values&quot;: [ # The list of string values. Must be non-empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700193 &quot;A String&quot;,
194 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700195 },
196 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
197 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
198 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
199 &quot;doubleValue&quot;: 3.14, # Double value
200 },
201 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
202 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
203 &quot;doubleValue&quot;: 3.14, # Double value
204 },
205 },
206 &quot;stringFilter&quot;: { # The filter for string # Strings related filter.
207 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
208 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
209 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
210 },
211 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name. Must be a name defined in dimensions or metrics.
212 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
213 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
214 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
215 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
216 &quot;doubleValue&quot;: 3.14, # Double value
217 },
218 },
219 &quot;nullFilter&quot;: 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.
220 },
221 &quot;andGroup&quot;: { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship.
222 &quot;expressions&quot;: [ # A list of filter expressions.
223 # Object with schema name: FilterExpression
224 ],
225 },
226 },
227 &quot;pivots&quot;: [ # Describes the visual format of the report&#x27;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.
228 { # Describes the visible dimension columns and rows in the report response.
229 &quot;fieldNames&quot;: [ # Dimension names for visible columns in the report response. Including &quot;dateRange&quot; 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.
230 &quot;A String&quot;,
231 ],
232 &quot;offset&quot;: &quot;A String&quot;, # The row count of the start row. The first row is counted as row 0.
233 &quot;metricAggregations&quot;: [ # Aggregate the metrics by dimensions in this pivot using the specified metric_aggregations.
234 &quot;A String&quot;,
235 ],
236 &quot;limit&quot;: &quot;A String&quot;, # The number of rows to return in this pivot. If unspecified, 10 rows are returned. If -1, all rows are returned.
237 &quot;orderBys&quot;: [ # 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.
238 { # The sort options.
239 &quot;metric&quot;: { # Sorts by metric values. # Sorts results by a metric&#x27;s values.
240 &quot;metricName&quot;: &quot;A String&quot;, # A metric name in the request to order by.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700241 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700242 &quot;desc&quot;: True or False, # If true, sorts by descending order.
243 &quot;dimension&quot;: { # Sorts by dimension values. # Sorts results by a dimension&#x27;s values.
244 &quot;orderType&quot;: &quot;A String&quot;, # Controls the rule for dimension value ordering.
245 &quot;dimensionName&quot;: &quot;A String&quot;, # A dimension name in the request to order by.
246 },
247 &quot;pivot&quot;: { # Sorts by a pivot column group. # Sorts results by a metric&#x27;s values within a pivot column group.
248 &quot;metricName&quot;: &quot;A String&quot;, # In the response to order by, order rows by this column. Must be a metric name from the request.
249 &quot;pivotSelections&quot;: [ # 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&#x27;s dimension name and value pair.
250 { # A pair of dimension names and values. Rows with this dimension pivot pair are ordered by the metric&#x27;s value. For example if pivots = {{&quot;browser&quot;, &quot;Chrome&quot;}} and metric_name = &quot;Sessions&quot;, 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 ---------|----------|----------------|----------|----------------
251 &quot;dimensionName&quot;: &quot;A String&quot;, # Must be a dimension name from the request.
252 &quot;dimensionValue&quot;: &quot;A String&quot;, # Order by only when the named dimension is this value.
253 },
254 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700255 },
256 },
257 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700258 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700259 ],
260 &quot;cohortSpec&quot;: { # Specification for a cohort report. # Cohort group associated with this request. If there is a cohort group in the request the &#x27;cohort&#x27; dimension must be present.
261 &quot;cohortReportSettings&quot;: { # Settings of a cohort report. # Settings of a cohort report.
262 &quot;accumulate&quot;: True or False, # If true, accumulates the result from first visit day to the end day. Not supported in `RunReportRequest`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700263 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700264 &quot;cohorts&quot;: [ # The definition for the cohorts.
265 { # 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.
266 &quot;name&quot;: &quot;A String&quot;, # 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.
267 &quot;dimension&quot;: &quot;A String&quot;, # The dimension used by cohort. Only supports `firstTouchDate` for retention report.
268 &quot;dateRange&quot;: { # 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&#x27;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.
269 &quot;name&quot;: &quot;A String&quot;, # 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.
270 &quot;startDate&quot;: &quot;A String&quot;, # 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&#x27;s reporting time zone.
271 &quot;endDate&quot;: &quot;A String&quot;, # 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&#x27;s reporting time zone.
272 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700273 },
274 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700275 &quot;cohortsRange&quot;: { # Describes date range for a cohort report. # The data ranges of cohorts.
276 &quot;startOffset&quot;: 42, # For daily cohorts, this will be the start day offset. For weekly cohorts, this will be the week offset.
277 &quot;endOffset&quot;: 42, # For daily cohorts, this will be the end day offset. For weekly cohorts, this will be the week offset.
278 &quot;granularity&quot;: &quot;A String&quot;, # Reporting date range for each cohort is calculated based on these three fields.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700279 },
280 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700281 &quot;metrics&quot;: [ # 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.
282 { # The quantitative measurements of a report. For example, the metric `eventCount` is the total number of events. Requests are allowed up to 10 metrics.
283 &quot;expression&quot;: &quot;A String&quot;, # A mathematical expression for derived metrics. For example, the metric Event count per user is `eventCount/totalUsers`.
284 &quot;name&quot;: &quot;A String&quot;, # 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&#x27;s name = `viewsPerSession`. Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric `expression`.
285 &quot;invisible&quot;: 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`.
286 },
287 ],
288 &quot;keepEmptyRows&quot;: 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.
289 &quot;currencyCode&quot;: &quot;A String&quot;, # A currency code in ISO4217 format, such as &quot;AED&quot;, &quot;USD&quot;, &quot;JPY&quot;. If the field is empty, the report uses the entity&#x27;s default currency.
290 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700291 ],
292 }
293
294 x__xgafv: string, V1 error format.
295 Allowed values
296 1 - v1 error format
297 2 - v2 error format
298
299Returns:
300 An object of the form:
301
302 { # The batch response containing multiple pivot reports.
303 &quot;pivotReports&quot;: [ # Individual responses. Each response has a separate pivot report request.
304 { # The response pivot report table corresponding to a pivot request.
305 &quot;dimensionHeaders&quot;: [ # Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows.
306 { # 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.
307 &quot;name&quot;: &quot;A String&quot;, # The dimension&#x27;s name.
308 },
309 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700310 &quot;propertyQuota&quot;: { # 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&#x27;s quota state including this request.
311 &quot;tokensPerHour&quot;: { # 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.
312 &quot;consumed&quot;: 42, # Quota consumed by this request.
313 &quot;remaining&quot;: 42, # Quota remaining after this request.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700314 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700315 &quot;tokensPerDay&quot;: { # 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.
316 &quot;consumed&quot;: 42, # Quota consumed by this request.
317 &quot;remaining&quot;: 42, # Quota remaining after this request.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700318 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700319 &quot;serverErrorsPerProjectPerHour&quot;: { # 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.
320 &quot;consumed&quot;: 42, # Quota consumed by this request.
321 &quot;remaining&quot;: 42, # Quota remaining after this request.
322 },
323 &quot;concurrentRequests&quot;: { # 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.
324 &quot;consumed&quot;: 42, # Quota consumed by this request.
325 &quot;remaining&quot;: 42, # Quota remaining after this request.
326 },
327 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700328 &quot;pivotHeaders&quot;: [ # 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: &quot;pivots&quot;: [{ &quot;fieldNames&quot;: [&quot;country&quot;, &quot;city&quot;] }, { &quot;fieldNames&quot;: &quot;eventName&quot; }] We will have the following `pivotHeaders` in the response: &quot;pivotHeaders&quot; : [{ &quot;dimensionHeaders&quot;: [{ &quot;dimensionValues&quot;: [ { &quot;value&quot;: &quot;United Kingdom&quot; }, { &quot;value&quot;: &quot;London&quot; } ] }, { &quot;dimensionValues&quot;: [ { &quot;value&quot;: &quot;Japan&quot; }, { &quot;value&quot;: &quot;Osaka&quot; } ] }] }, { &quot;dimensionHeaders&quot;: [{ &quot;dimensionValues&quot;: [{ &quot;value&quot;: &quot;session_start&quot; }] }, { &quot;dimensionValues&quot;: [{ &quot;value&quot;: &quot;scroll&quot; }] }] }]
329 { # Dimensions&#x27; values in a single pivot.
330 &quot;rowCount&quot;: 42, # The cardinality of the pivot as if offset = 0 and limit = -1. The total number of rows for this pivot&#x27;s fields regardless of how the parameters offset and limit are specified in the request.
331 &quot;pivotDimensionHeaders&quot;: [ # The size is the same as the cardinality of the corresponding dimension combinations.
332 { # Summarizes dimension values from a row for this pivot.
333 &quot;dimensionValues&quot;: [ # Values of multiple dimensions in a pivot.
334 { # The value of a dimension.
335 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
336 },
337 ],
338 },
339 ],
340 },
341 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700342 &quot;rows&quot;: [ # Rows of dimension value combinations and metric values in the report.
343 { # Report data for each row. For example if RunReportRequest contains: ```none &quot;dimensions&quot;: [ { &quot;name&quot;: &quot;eventName&quot; }, { &quot;name&quot;: &quot;countryId&quot; } ], &quot;metrics&quot;: [ { &quot;name&quot;: &quot;eventCount&quot; } ] ``` One row with &#x27;in_app_purchase&#x27; as the eventName, &#x27;JP&#x27; as the countryId, and 15 as the eventCount, would be: ```none &quot;dimensionValues&quot;: [ { &quot;value&quot;: &quot;in_app_purchase&quot; }, { &quot;value&quot;: &quot;JP&quot; } ], &quot;metricValues&quot;: [ { &quot;value&quot;: &quot;15&quot; } ] ```
344 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
345 { # The value of a dimension.
346 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
347 },
348 ],
349 &quot;metricValues&quot;: [ # List of requested visible metric values.
350 { # The value of a metric.
351 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
352 },
353 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700354 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700355 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700356 &quot;metadata&quot;: { # Response&#x27;s metadata carrying additional information about the report content. # Metadata for the report.
357 &quot;dataLossFromOtherRow&quot;: True or False, # If true, indicates some buckets of dimension combinations are rolled into &quot;(other)&quot; row. This can happen for high cardinality reports.
358 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700359 &quot;aggregates&quot;: [ # 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 &quot;RESERVED_&quot;.
360 { # Report data for each row. For example if RunReportRequest contains: ```none &quot;dimensions&quot;: [ { &quot;name&quot;: &quot;eventName&quot; }, { &quot;name&quot;: &quot;countryId&quot; } ], &quot;metrics&quot;: [ { &quot;name&quot;: &quot;eventCount&quot; } ] ``` One row with &#x27;in_app_purchase&#x27; as the eventName, &#x27;JP&#x27; as the countryId, and 15 as the eventCount, would be: ```none &quot;dimensionValues&quot;: [ { &quot;value&quot;: &quot;in_app_purchase&quot; }, { &quot;value&quot;: &quot;JP&quot; } ], &quot;metricValues&quot;: [ { &quot;value&quot;: &quot;15&quot; } ] ```
361 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
362 { # The value of a dimension.
363 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
364 },
365 ],
366 &quot;metricValues&quot;: [ # List of requested visible metric values.
367 { # The value of a metric.
368 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
369 },
370 ],
371 },
372 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700373 &quot;metricHeaders&quot;: [ # Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.
374 { # 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.
375 &quot;type&quot;: &quot;A String&quot;, # The metric&#x27;s data type.
376 &quot;name&quot;: &quot;A String&quot;, # The metric&#x27;s name.
377 },
378 ],
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
388Args:
389 body: object, The request body.
390 The object takes the form of:
391
392{ # The batch request containing multiple report requests.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700393 &quot;entity&quot;: { # 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.
394 &quot;propertyId&quot;: &quot;A String&quot;, # 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).
395 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700396 &quot;requests&quot;: [ # Individual requests. Each request has a separate report response. Each batch request is allowed up to 5 requests.
397 { # The request to generate a report.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700398 &quot;limit&quot;: &quot;A String&quot;, # 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](basics#pagination).
399 &quot;dateRanges&quot;: [ # 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.
400 { # A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges.
401 &quot;name&quot;: &quot;A String&quot;, # 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.
402 &quot;startDate&quot;: &quot;A String&quot;, # 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&#x27;s reporting time zone.
403 &quot;endDate&quot;: &quot;A String&quot;, # 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&#x27;s reporting time zone.
404 },
405 ],
406 &quot;keepEmptyRows&quot;: 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.
407 &quot;offset&quot;: &quot;A String&quot;, # The row count of the start row. The first row is counted as row 0. To learn more about this pagination parameter, see [Pagination](basics#pagination).
408 &quot;dimensionFilter&quot;: { # 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.
409 &quot;notExpression&quot;: # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression.
410 &quot;orGroup&quot;: { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship.
411 &quot;expressions&quot;: [ # A list of filter expressions.
412 # Object with schema name: FilterExpression
413 ],
414 },
415 &quot;filter&quot;: { # 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.
416 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
417 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
418 &quot;values&quot;: [ # The list of string values. Must be non-empty.
419 &quot;A String&quot;,
420 ],
421 },
422 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
423 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
424 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
425 &quot;doubleValue&quot;: 3.14, # Double value
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700426 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700427 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
428 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
429 &quot;doubleValue&quot;: 3.14, # Double value
430 },
431 },
432 &quot;stringFilter&quot;: { # The filter for string # Strings related filter.
433 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
434 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
435 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
436 },
437 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name. Must be a name defined in dimensions or metrics.
438 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
439 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
440 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
441 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
442 &quot;doubleValue&quot;: 3.14, # Double value
443 },
444 },
445 &quot;nullFilter&quot;: 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.
446 },
447 &quot;andGroup&quot;: { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship.
448 &quot;expressions&quot;: [ # A list of filter expressions.
449 # Object with schema name: FilterExpression
450 ],
451 },
452 },
453 &quot;metricAggregations&quot;: [ # Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to &quot;RESERVED_(MetricAggregation)&quot;.
454 &quot;A String&quot;,
455 ],
456 &quot;cohortSpec&quot;: { # Specification for a cohort report. # Cohort group associated with this request. If there is a cohort group in the request the &#x27;cohort&#x27; dimension must be present.
457 &quot;cohortReportSettings&quot;: { # Settings of a cohort report. # Settings of a cohort report.
458 &quot;accumulate&quot;: True or False, # If true, accumulates the result from first visit day to the end day. Not supported in `RunReportRequest`.
459 },
460 &quot;cohorts&quot;: [ # The definition for the cohorts.
461 { # 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.
462 &quot;name&quot;: &quot;A String&quot;, # 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.
463 &quot;dimension&quot;: &quot;A String&quot;, # The dimension used by cohort. Only supports `firstTouchDate` for retention report.
464 &quot;dateRange&quot;: { # 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&#x27;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.
465 &quot;name&quot;: &quot;A String&quot;, # 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.
466 &quot;startDate&quot;: &quot;A String&quot;, # 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&#x27;s reporting time zone.
467 &quot;endDate&quot;: &quot;A String&quot;, # 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&#x27;s reporting time zone.
468 },
469 },
470 ],
471 &quot;cohortsRange&quot;: { # Describes date range for a cohort report. # The data ranges of cohorts.
472 &quot;startOffset&quot;: 42, # For daily cohorts, this will be the start day offset. For weekly cohorts, this will be the week offset.
473 &quot;endOffset&quot;: 42, # For daily cohorts, this will be the end day offset. For weekly cohorts, this will be the week offset.
474 &quot;granularity&quot;: &quot;A String&quot;, # Reporting date range for each cohort is calculated based on these three fields.
475 },
476 },
477 &quot;metricFilter&quot;: { # 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.
478 &quot;notExpression&quot;: # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression.
479 &quot;orGroup&quot;: { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship.
480 &quot;expressions&quot;: [ # A list of filter expressions.
481 # Object with schema name: FilterExpression
482 ],
483 },
484 &quot;filter&quot;: { # 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.
485 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
486 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
487 &quot;values&quot;: [ # The list of string values. Must be non-empty.
488 &quot;A String&quot;,
489 ],
490 },
491 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
492 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
493 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
494 &quot;doubleValue&quot;: 3.14, # Double value
495 },
496 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
497 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
498 &quot;doubleValue&quot;: 3.14, # Double value
499 },
500 },
501 &quot;stringFilter&quot;: { # The filter for string # Strings related filter.
502 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
503 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
504 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
505 },
506 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name. Must be a name defined in dimensions or metrics.
507 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
508 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
509 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
510 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
511 &quot;doubleValue&quot;: 3.14, # Double value
512 },
513 },
514 &quot;nullFilter&quot;: 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.
515 },
516 &quot;andGroup&quot;: { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship.
517 &quot;expressions&quot;: [ # A list of filter expressions.
518 # Object with schema name: FilterExpression
519 ],
520 },
521 },
522 &quot;dimensions&quot;: [ # The dimensions requested and displayed.
523 { # 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 &quot;Paris&quot; or &quot;New York&quot;. Requests are allowed up to 8 dimensions.
524 &quot;name&quot;: &quot;A String&quot;, # 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`.
525 &quot;dimensionExpression&quot;: { # 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 &quot;country, city&quot;: concatenate(country, &quot;, &quot;, city).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700526 &quot;concatenate&quot;: { # Used to combine dimension values to a single dimension. # Used to combine dimension values to a single dimension. For example, dimension &quot;country, city&quot;: concatenate(country, &quot;, &quot;, city).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700527 &quot;dimensionNames&quot;: [ # Names of dimensions. The names must refer back to names in the dimensions field of the request.
528 &quot;A String&quot;,
529 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700530 &quot;delimiter&quot;: &quot;A String&quot;, # The delimiter placed between dimension names. Delimiters are often single characters such as &quot;|&quot; or &quot;,&quot; 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 = &quot;US,FR&quot;, dimension 2 value = &quot;JP&quot;, and delimiter = &quot;,&quot;, then the response will contain &quot;US,FR,JP&quot;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700531 },
532 &quot;lowerCase&quot;: { # Used to convert a dimension value to a single case. # Used to convert a dimension value to lower case.
533 &quot;dimensionName&quot;: &quot;A String&quot;, # Name of a dimension. The name must refer back to a name in dimensions field of the request.
534 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700535 &quot;upperCase&quot;: { # Used to convert a dimension value to a single case. # Used to convert a dimension value to upper case.
536 &quot;dimensionName&quot;: &quot;A String&quot;, # Name of a dimension. The name must refer back to a name in dimensions field of the request.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700537 },
538 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700539 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700540 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700541 &quot;orderBys&quot;: [ # Specifies how rows are ordered in the response.
542 { # The sort options.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700543 &quot;metric&quot;: { # Sorts by metric values. # Sorts results by a metric&#x27;s values.
544 &quot;metricName&quot;: &quot;A String&quot;, # A metric name in the request to order by.
545 },
546 &quot;desc&quot;: True or False, # If true, sorts by descending order.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700547 &quot;dimension&quot;: { # Sorts by dimension values. # Sorts results by a dimension&#x27;s values.
548 &quot;orderType&quot;: &quot;A String&quot;, # Controls the rule for dimension value ordering.
549 &quot;dimensionName&quot;: &quot;A String&quot;, # A dimension name in the request to order by.
550 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700551 &quot;pivot&quot;: { # Sorts by a pivot column group. # Sorts results by a metric&#x27;s values within a pivot column group.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700552 &quot;metricName&quot;: &quot;A String&quot;, # In the response to order by, order rows by this column. Must be a metric name from the request.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700553 &quot;pivotSelections&quot;: [ # 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&#x27;s dimension name and value pair.
554 { # A pair of dimension names and values. Rows with this dimension pivot pair are ordered by the metric&#x27;s value. For example if pivots = {{&quot;browser&quot;, &quot;Chrome&quot;}} and metric_name = &quot;Sessions&quot;, 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 ---------|----------|----------------|----------|----------------
555 &quot;dimensionName&quot;: &quot;A String&quot;, # Must be a dimension name from the request.
556 &quot;dimensionValue&quot;: &quot;A String&quot;, # Order by only when the named dimension is this value.
557 },
558 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700559 },
560 },
561 ],
562 &quot;currencyCode&quot;: &quot;A String&quot;, # A currency code in ISO4217 format, such as &quot;AED&quot;, &quot;USD&quot;, &quot;JPY&quot;. If the field is empty, the report uses the entity&#x27;s default currency.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700563 &quot;metrics&quot;: [ # The metrics requested and displayed.
564 { # The quantitative measurements of a report. For example, the metric `eventCount` is the total number of events. Requests are allowed up to 10 metrics.
565 &quot;expression&quot;: &quot;A String&quot;, # A mathematical expression for derived metrics. For example, the metric Event count per user is `eventCount/totalUsers`.
566 &quot;name&quot;: &quot;A String&quot;, # 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&#x27;s name = `viewsPerSession`. Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric `expression`.
567 &quot;invisible&quot;: 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`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700568 },
569 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700570 &quot;returnPropertyQuota&quot;: True or False, # Toggles whether to return the current state of this Analytics Property&#x27;s quota. Quota is returned in [PropertyQuota](#PropertyQuota).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700571 &quot;entity&quot;: { # 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.
572 &quot;propertyId&quot;: &quot;A String&quot;, # 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 Frenkel3e17f892020-10-06 16:46:05 -0700573 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700574 },
575 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700576 }
577
578 x__xgafv: string, V1 error format.
579 Allowed values
580 1 - v1 error format
581 2 - v2 error format
582
583Returns:
584 An object of the form:
585
586 { # The batch response containing multiple reports.
587 &quot;reports&quot;: [ # Individual responses. Each response has a separate report request.
588 { # The response report table corresponding to a request.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700589 &quot;rows&quot;: [ # Rows of dimension value combinations and metric values in the report.
590 { # Report data for each row. For example if RunReportRequest contains: ```none &quot;dimensions&quot;: [ { &quot;name&quot;: &quot;eventName&quot; }, { &quot;name&quot;: &quot;countryId&quot; } ], &quot;metrics&quot;: [ { &quot;name&quot;: &quot;eventCount&quot; } ] ``` One row with &#x27;in_app_purchase&#x27; as the eventName, &#x27;JP&#x27; as the countryId, and 15 as the eventCount, would be: ```none &quot;dimensionValues&quot;: [ { &quot;value&quot;: &quot;in_app_purchase&quot; }, { &quot;value&quot;: &quot;JP&quot; } ], &quot;metricValues&quot;: [ { &quot;value&quot;: &quot;15&quot; } ] ```
591 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
592 { # The value of a dimension.
593 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
594 },
595 ],
596 &quot;metricValues&quot;: [ # List of requested visible metric values.
597 { # The value of a metric.
598 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
599 },
600 ],
601 },
602 ],
603 &quot;maximums&quot;: [ # If requested, the maximum values of metrics.
604 { # Report data for each row. For example if RunReportRequest contains: ```none &quot;dimensions&quot;: [ { &quot;name&quot;: &quot;eventName&quot; }, { &quot;name&quot;: &quot;countryId&quot; } ], &quot;metrics&quot;: [ { &quot;name&quot;: &quot;eventCount&quot; } ] ``` One row with &#x27;in_app_purchase&#x27; as the eventName, &#x27;JP&#x27; as the countryId, and 15 as the eventCount, would be: ```none &quot;dimensionValues&quot;: [ { &quot;value&quot;: &quot;in_app_purchase&quot; }, { &quot;value&quot;: &quot;JP&quot; } ], &quot;metricValues&quot;: [ { &quot;value&quot;: &quot;15&quot; } ] ```
605 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
606 { # The value of a dimension.
607 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
608 },
609 ],
610 &quot;metricValues&quot;: [ # List of requested visible metric values.
611 { # The value of a metric.
612 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
613 },
614 ],
615 },
616 ],
617 &quot;dimensionHeaders&quot;: [ # Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows.
618 { # 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.
619 &quot;name&quot;: &quot;A String&quot;, # The dimension&#x27;s name.
620 },
621 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700622 &quot;metricHeaders&quot;: [ # Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.
623 { # 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.
624 &quot;type&quot;: &quot;A String&quot;, # The metric&#x27;s data type.
625 &quot;name&quot;: &quot;A String&quot;, # The metric&#x27;s name.
626 },
627 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700628 &quot;minimums&quot;: [ # If requested, the minimum values of metrics.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700629 { # Report data for each row. For example if RunReportRequest contains: ```none &quot;dimensions&quot;: [ { &quot;name&quot;: &quot;eventName&quot; }, { &quot;name&quot;: &quot;countryId&quot; } ], &quot;metrics&quot;: [ { &quot;name&quot;: &quot;eventCount&quot; } ] ``` One row with &#x27;in_app_purchase&#x27; as the eventName, &#x27;JP&#x27; as the countryId, and 15 as the eventCount, would be: ```none &quot;dimensionValues&quot;: [ { &quot;value&quot;: &quot;in_app_purchase&quot; }, { &quot;value&quot;: &quot;JP&quot; } ], &quot;metricValues&quot;: [ { &quot;value&quot;: &quot;15&quot; } ] ```
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700630 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
631 { # The value of a dimension.
632 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
633 },
634 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700635 &quot;metricValues&quot;: [ # List of requested visible metric values.
636 { # The value of a metric.
637 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
638 },
639 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700640 },
641 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700642 &quot;rowCount&quot;: 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](basics#pagination).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700643 &quot;metadata&quot;: { # Response&#x27;s metadata carrying additional information about the report content. # Metadata for the report.
644 &quot;dataLossFromOtherRow&quot;: True or False, # If true, indicates some buckets of dimension combinations are rolled into &quot;(other)&quot; row. This can happen for high cardinality reports.
645 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700646 &quot;propertyQuota&quot;: { # 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&#x27;s quota state including this request.
647 &quot;tokensPerHour&quot;: { # 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.
648 &quot;consumed&quot;: 42, # Quota consumed by this request.
649 &quot;remaining&quot;: 42, # Quota remaining after this request.
650 },
651 &quot;tokensPerDay&quot;: { # 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.
652 &quot;consumed&quot;: 42, # Quota consumed by this request.
653 &quot;remaining&quot;: 42, # Quota remaining after this request.
654 },
655 &quot;serverErrorsPerProjectPerHour&quot;: { # 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.
656 &quot;consumed&quot;: 42, # Quota consumed by this request.
657 &quot;remaining&quot;: 42, # Quota remaining after this request.
658 },
659 &quot;concurrentRequests&quot;: { # 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.
660 &quot;consumed&quot;: 42, # Quota consumed by this request.
661 &quot;remaining&quot;: 42, # Quota remaining after this request.
662 },
663 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700664 &quot;totals&quot;: [ # If requested, the totaled values of metrics.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700665 { # Report data for each row. For example if RunReportRequest contains: ```none &quot;dimensions&quot;: [ { &quot;name&quot;: &quot;eventName&quot; }, { &quot;name&quot;: &quot;countryId&quot; } ], &quot;metrics&quot;: [ { &quot;name&quot;: &quot;eventCount&quot; } ] ``` One row with &#x27;in_app_purchase&#x27; as the eventName, &#x27;JP&#x27; as the countryId, and 15 as the eventCount, would be: ```none &quot;dimensionValues&quot;: [ { &quot;value&quot;: &quot;in_app_purchase&quot; }, { &quot;value&quot;: &quot;JP&quot; } ], &quot;metricValues&quot;: [ { &quot;value&quot;: &quot;15&quot; } ] ```
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700666 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
667 { # The value of a dimension.
668 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
669 },
670 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700671 &quot;metricValues&quot;: [ # List of requested visible metric values.
672 { # The value of a metric.
673 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
674 },
675 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700676 },
677 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700678 },
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 Frenkel3e17f892020-10-06 16:46:05 -0700689 <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
692Args:
693 body: object, The request body.
694 The object takes the form of:
695
696{ # The request to generate a pivot report.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700697 &quot;dimensions&quot;: [ # The dimensions requested. All defined dimensions must be used by one of the following: dimension_expression, dimension_filter, pivots, order_bys.
698 { # 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 &quot;Paris&quot; or &quot;New York&quot;. Requests are allowed up to 8 dimensions.
699 &quot;name&quot;: &quot;A String&quot;, # 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`.
700 &quot;dimensionExpression&quot;: { # 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 &quot;country, city&quot;: concatenate(country, &quot;, &quot;, city).
701 &quot;concatenate&quot;: { # Used to combine dimension values to a single dimension. # Used to combine dimension values to a single dimension. For example, dimension &quot;country, city&quot;: concatenate(country, &quot;, &quot;, city).
702 &quot;dimensionNames&quot;: [ # Names of dimensions. The names must refer back to names in the dimensions field of the request.
703 &quot;A String&quot;,
704 ],
705 &quot;delimiter&quot;: &quot;A String&quot;, # The delimiter placed between dimension names. Delimiters are often single characters such as &quot;|&quot; or &quot;,&quot; 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 = &quot;US,FR&quot;, dimension 2 value = &quot;JP&quot;, and delimiter = &quot;,&quot;, then the response will contain &quot;US,FR,JP&quot;.
706 },
707 &quot;lowerCase&quot;: { # Used to convert a dimension value to a single case. # Used to convert a dimension value to lower case.
708 &quot;dimensionName&quot;: &quot;A String&quot;, # Name of a dimension. The name must refer back to a name in dimensions field of the request.
709 },
710 &quot;upperCase&quot;: { # Used to convert a dimension value to a single case. # Used to convert a dimension value to upper case.
711 &quot;dimensionName&quot;: &quot;A String&quot;, # Name of a dimension. The name must refer back to a name in dimensions field of the request.
712 },
713 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700714 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700715 ],
716 &quot;entity&quot;: { # 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.
717 &quot;propertyId&quot;: &quot;A String&quot;, # 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).
718 },
719 &quot;returnPropertyQuota&quot;: True or False, # Toggles whether to return the current state of this Analytics Property&#x27;s quota. Quota is returned in [PropertyQuota](#PropertyQuota).
720 &quot;dateRanges&quot;: [ # 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 &quot;dateRange&quot; can be included in a Pivot&#x27;s field names; if included, the report compares between date ranges. In a cohort request, this `dateRanges` must be unspecified.
721 { # A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges.
722 &quot;name&quot;: &quot;A String&quot;, # 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.
723 &quot;startDate&quot;: &quot;A String&quot;, # 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&#x27;s reporting time zone.
724 &quot;endDate&quot;: &quot;A String&quot;, # 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&#x27;s reporting time zone.
725 },
726 ],
727 &quot;dimensionFilter&quot;: { # 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.
728 &quot;notExpression&quot;: # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression.
729 &quot;orGroup&quot;: { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship.
730 &quot;expressions&quot;: [ # A list of filter expressions.
731 # Object with schema name: FilterExpression
732 ],
733 },
734 &quot;filter&quot;: { # 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.
735 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
736 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
737 &quot;values&quot;: [ # The list of string values. Must be non-empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700738 &quot;A String&quot;,
739 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700740 },
741 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
742 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
743 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
744 &quot;doubleValue&quot;: 3.14, # Double value
745 },
746 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
747 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
748 &quot;doubleValue&quot;: 3.14, # Double value
749 },
750 },
751 &quot;stringFilter&quot;: { # The filter for string # Strings related filter.
752 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
753 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
754 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
755 },
756 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name. Must be a name defined in dimensions or metrics.
757 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
758 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
759 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
760 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
761 &quot;doubleValue&quot;: 3.14, # Double value
762 },
763 },
764 &quot;nullFilter&quot;: 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.
765 },
766 &quot;andGroup&quot;: { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship.
767 &quot;expressions&quot;: [ # A list of filter expressions.
768 # Object with schema name: FilterExpression
769 ],
770 },
771 },
772 &quot;metricFilter&quot;: { # 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.
773 &quot;notExpression&quot;: # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression.
774 &quot;orGroup&quot;: { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship.
775 &quot;expressions&quot;: [ # A list of filter expressions.
776 # Object with schema name: FilterExpression
777 ],
778 },
779 &quot;filter&quot;: { # 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.
780 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
781 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
782 &quot;values&quot;: [ # The list of string values. Must be non-empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700783 &quot;A String&quot;,
784 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700785 },
786 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
787 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
788 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
789 &quot;doubleValue&quot;: 3.14, # Double value
790 },
791 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
792 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
793 &quot;doubleValue&quot;: 3.14, # Double value
794 },
795 },
796 &quot;stringFilter&quot;: { # The filter for string # Strings related filter.
797 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
798 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
799 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
800 },
801 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name. Must be a name defined in dimensions or metrics.
802 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
803 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
804 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
805 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
806 &quot;doubleValue&quot;: 3.14, # Double value
807 },
808 },
809 &quot;nullFilter&quot;: 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.
810 },
811 &quot;andGroup&quot;: { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship.
812 &quot;expressions&quot;: [ # A list of filter expressions.
813 # Object with schema name: FilterExpression
814 ],
815 },
816 },
817 &quot;pivots&quot;: [ # Describes the visual format of the report&#x27;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.
818 { # Describes the visible dimension columns and rows in the report response.
819 &quot;fieldNames&quot;: [ # Dimension names for visible columns in the report response. Including &quot;dateRange&quot; 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.
820 &quot;A String&quot;,
821 ],
822 &quot;offset&quot;: &quot;A String&quot;, # The row count of the start row. The first row is counted as row 0.
823 &quot;metricAggregations&quot;: [ # Aggregate the metrics by dimensions in this pivot using the specified metric_aggregations.
824 &quot;A String&quot;,
825 ],
826 &quot;limit&quot;: &quot;A String&quot;, # The number of rows to return in this pivot. If unspecified, 10 rows are returned. If -1, all rows are returned.
827 &quot;orderBys&quot;: [ # 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.
828 { # The sort options.
829 &quot;metric&quot;: { # Sorts by metric values. # Sorts results by a metric&#x27;s values.
830 &quot;metricName&quot;: &quot;A String&quot;, # A metric name in the request to order by.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700831 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700832 &quot;desc&quot;: True or False, # If true, sorts by descending order.
833 &quot;dimension&quot;: { # Sorts by dimension values. # Sorts results by a dimension&#x27;s values.
834 &quot;orderType&quot;: &quot;A String&quot;, # Controls the rule for dimension value ordering.
835 &quot;dimensionName&quot;: &quot;A String&quot;, # A dimension name in the request to order by.
836 },
837 &quot;pivot&quot;: { # Sorts by a pivot column group. # Sorts results by a metric&#x27;s values within a pivot column group.
838 &quot;metricName&quot;: &quot;A String&quot;, # In the response to order by, order rows by this column. Must be a metric name from the request.
839 &quot;pivotSelections&quot;: [ # 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&#x27;s dimension name and value pair.
840 { # A pair of dimension names and values. Rows with this dimension pivot pair are ordered by the metric&#x27;s value. For example if pivots = {{&quot;browser&quot;, &quot;Chrome&quot;}} and metric_name = &quot;Sessions&quot;, 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 ---------|----------|----------------|----------|----------------
841 &quot;dimensionName&quot;: &quot;A String&quot;, # Must be a dimension name from the request.
842 &quot;dimensionValue&quot;: &quot;A String&quot;, # Order by only when the named dimension is this value.
843 },
844 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700845 },
846 },
847 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700848 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700849 ],
850 &quot;cohortSpec&quot;: { # Specification for a cohort report. # Cohort group associated with this request. If there is a cohort group in the request the &#x27;cohort&#x27; dimension must be present.
851 &quot;cohortReportSettings&quot;: { # Settings of a cohort report. # Settings of a cohort report.
852 &quot;accumulate&quot;: True or False, # If true, accumulates the result from first visit day to the end day. Not supported in `RunReportRequest`.
853 },
854 &quot;cohorts&quot;: [ # The definition for the cohorts.
855 { # 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.
856 &quot;name&quot;: &quot;A String&quot;, # 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.
857 &quot;dimension&quot;: &quot;A String&quot;, # The dimension used by cohort. Only supports `firstTouchDate` for retention report.
858 &quot;dateRange&quot;: { # 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&#x27;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.
859 &quot;name&quot;: &quot;A String&quot;, # 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.
860 &quot;startDate&quot;: &quot;A String&quot;, # 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&#x27;s reporting time zone.
861 &quot;endDate&quot;: &quot;A String&quot;, # 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&#x27;s reporting time zone.
862 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700863 },
864 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700865 &quot;cohortsRange&quot;: { # Describes date range for a cohort report. # The data ranges of cohorts.
866 &quot;startOffset&quot;: 42, # For daily cohorts, this will be the start day offset. For weekly cohorts, this will be the week offset.
867 &quot;endOffset&quot;: 42, # For daily cohorts, this will be the end day offset. For weekly cohorts, this will be the week offset.
868 &quot;granularity&quot;: &quot;A String&quot;, # Reporting date range for each cohort is calculated based on these three fields.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700869 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700870 },
871 &quot;metrics&quot;: [ # 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.
872 { # The quantitative measurements of a report. For example, the metric `eventCount` is the total number of events. Requests are allowed up to 10 metrics.
873 &quot;expression&quot;: &quot;A String&quot;, # A mathematical expression for derived metrics. For example, the metric Event count per user is `eventCount/totalUsers`.
874 &quot;name&quot;: &quot;A String&quot;, # 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&#x27;s name = `viewsPerSession`. Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric `expression`.
875 &quot;invisible&quot;: 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`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700876 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700877 ],
878 &quot;keepEmptyRows&quot;: 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.
879 &quot;currencyCode&quot;: &quot;A String&quot;, # A currency code in ISO4217 format, such as &quot;AED&quot;, &quot;USD&quot;, &quot;JPY&quot;. If the field is empty, the report uses the entity&#x27;s default currency.
880}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700881
882 x__xgafv: string, V1 error format.
883 Allowed values
884 1 - v1 error format
885 2 - v2 error format
886
887Returns:
888 An object of the form:
889
890 { # The response pivot report table corresponding to a pivot request.
891 &quot;dimensionHeaders&quot;: [ # Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows.
892 { # 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.
893 &quot;name&quot;: &quot;A String&quot;, # The dimension&#x27;s name.
894 },
895 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700896 &quot;propertyQuota&quot;: { # 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&#x27;s quota state including this request.
897 &quot;tokensPerHour&quot;: { # 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.
898 &quot;consumed&quot;: 42, # Quota consumed by this request.
899 &quot;remaining&quot;: 42, # Quota remaining after this request.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700900 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700901 &quot;tokensPerDay&quot;: { # 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.
902 &quot;consumed&quot;: 42, # Quota consumed by this request.
903 &quot;remaining&quot;: 42, # Quota remaining after this request.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700904 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700905 &quot;serverErrorsPerProjectPerHour&quot;: { # 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.
906 &quot;consumed&quot;: 42, # Quota consumed by this request.
907 &quot;remaining&quot;: 42, # Quota remaining after this request.
908 },
909 &quot;concurrentRequests&quot;: { # 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.
910 &quot;consumed&quot;: 42, # Quota consumed by this request.
911 &quot;remaining&quot;: 42, # Quota remaining after this request.
912 },
913 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700914 &quot;pivotHeaders&quot;: [ # 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: &quot;pivots&quot;: [{ &quot;fieldNames&quot;: [&quot;country&quot;, &quot;city&quot;] }, { &quot;fieldNames&quot;: &quot;eventName&quot; }] We will have the following `pivotHeaders` in the response: &quot;pivotHeaders&quot; : [{ &quot;dimensionHeaders&quot;: [{ &quot;dimensionValues&quot;: [ { &quot;value&quot;: &quot;United Kingdom&quot; }, { &quot;value&quot;: &quot;London&quot; } ] }, { &quot;dimensionValues&quot;: [ { &quot;value&quot;: &quot;Japan&quot; }, { &quot;value&quot;: &quot;Osaka&quot; } ] }] }, { &quot;dimensionHeaders&quot;: [{ &quot;dimensionValues&quot;: [{ &quot;value&quot;: &quot;session_start&quot; }] }, { &quot;dimensionValues&quot;: [{ &quot;value&quot;: &quot;scroll&quot; }] }] }]
915 { # Dimensions&#x27; values in a single pivot.
916 &quot;rowCount&quot;: 42, # The cardinality of the pivot as if offset = 0 and limit = -1. The total number of rows for this pivot&#x27;s fields regardless of how the parameters offset and limit are specified in the request.
917 &quot;pivotDimensionHeaders&quot;: [ # The size is the same as the cardinality of the corresponding dimension combinations.
918 { # Summarizes dimension values from a row for this pivot.
919 &quot;dimensionValues&quot;: [ # Values of multiple dimensions in a pivot.
920 { # The value of a dimension.
921 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
922 },
923 ],
924 },
925 ],
926 },
927 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700928 &quot;rows&quot;: [ # Rows of dimension value combinations and metric values in the report.
929 { # Report data for each row. For example if RunReportRequest contains: ```none &quot;dimensions&quot;: [ { &quot;name&quot;: &quot;eventName&quot; }, { &quot;name&quot;: &quot;countryId&quot; } ], &quot;metrics&quot;: [ { &quot;name&quot;: &quot;eventCount&quot; } ] ``` One row with &#x27;in_app_purchase&#x27; as the eventName, &#x27;JP&#x27; as the countryId, and 15 as the eventCount, would be: ```none &quot;dimensionValues&quot;: [ { &quot;value&quot;: &quot;in_app_purchase&quot; }, { &quot;value&quot;: &quot;JP&quot; } ], &quot;metricValues&quot;: [ { &quot;value&quot;: &quot;15&quot; } ] ```
930 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
931 { # The value of a dimension.
932 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
933 },
934 ],
935 &quot;metricValues&quot;: [ # List of requested visible metric values.
936 { # The value of a metric.
937 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
938 },
939 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700940 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700941 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700942 &quot;metadata&quot;: { # Response&#x27;s metadata carrying additional information about the report content. # Metadata for the report.
943 &quot;dataLossFromOtherRow&quot;: True or False, # If true, indicates some buckets of dimension combinations are rolled into &quot;(other)&quot; row. This can happen for high cardinality reports.
944 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700945 &quot;aggregates&quot;: [ # 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 &quot;RESERVED_&quot;.
946 { # Report data for each row. For example if RunReportRequest contains: ```none &quot;dimensions&quot;: [ { &quot;name&quot;: &quot;eventName&quot; }, { &quot;name&quot;: &quot;countryId&quot; } ], &quot;metrics&quot;: [ { &quot;name&quot;: &quot;eventCount&quot; } ] ``` One row with &#x27;in_app_purchase&#x27; as the eventName, &#x27;JP&#x27; as the countryId, and 15 as the eventCount, would be: ```none &quot;dimensionValues&quot;: [ { &quot;value&quot;: &quot;in_app_purchase&quot; }, { &quot;value&quot;: &quot;JP&quot; } ], &quot;metricValues&quot;: [ { &quot;value&quot;: &quot;15&quot; } ] ```
947 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
948 { # The value of a dimension.
949 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
950 },
951 ],
952 &quot;metricValues&quot;: [ # List of requested visible metric values.
953 { # The value of a metric.
954 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
955 },
956 ],
957 },
958 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700959 &quot;metricHeaders&quot;: [ # Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.
960 { # 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.
961 &quot;type&quot;: &quot;A String&quot;, # The metric&#x27;s data type.
962 &quot;name&quot;: &quot;A String&quot;, # The metric&#x27;s name.
963 },
964 ],
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
972Args:
973 body: object, The request body.
974 The object takes the form of:
975
976{ # The request to generate a report.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700977 &quot;limit&quot;: &quot;A String&quot;, # 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](basics#pagination).
978 &quot;dateRanges&quot;: [ # 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.
979 { # A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges.
980 &quot;name&quot;: &quot;A String&quot;, # 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.
981 &quot;startDate&quot;: &quot;A String&quot;, # 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&#x27;s reporting time zone.
982 &quot;endDate&quot;: &quot;A String&quot;, # 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&#x27;s reporting time zone.
983 },
984 ],
985 &quot;keepEmptyRows&quot;: 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.
986 &quot;offset&quot;: &quot;A String&quot;, # The row count of the start row. The first row is counted as row 0. To learn more about this pagination parameter, see [Pagination](basics#pagination).
987 &quot;dimensionFilter&quot;: { # 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.
988 &quot;notExpression&quot;: # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression.
989 &quot;orGroup&quot;: { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship.
990 &quot;expressions&quot;: [ # A list of filter expressions.
991 # Object with schema name: FilterExpression
992 ],
993 },
994 &quot;filter&quot;: { # 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.
995 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
996 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
997 &quot;values&quot;: [ # The list of string values. Must be non-empty.
998 &quot;A String&quot;,
999 ],
1000 },
1001 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
1002 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
1003 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
1004 &quot;doubleValue&quot;: 3.14, # Double value
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001005 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001006 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
1007 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
1008 &quot;doubleValue&quot;: 3.14, # Double value
1009 },
1010 },
1011 &quot;stringFilter&quot;: { # The filter for string # Strings related filter.
1012 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
1013 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
1014 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
1015 },
1016 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name. Must be a name defined in dimensions or metrics.
1017 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
1018 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
1019 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
1020 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
1021 &quot;doubleValue&quot;: 3.14, # Double value
1022 },
1023 },
1024 &quot;nullFilter&quot;: 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.
1025 },
1026 &quot;andGroup&quot;: { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship.
1027 &quot;expressions&quot;: [ # A list of filter expressions.
1028 # Object with schema name: FilterExpression
1029 ],
1030 },
1031 },
1032 &quot;metricAggregations&quot;: [ # Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to &quot;RESERVED_(MetricAggregation)&quot;.
1033 &quot;A String&quot;,
1034 ],
1035 &quot;cohortSpec&quot;: { # Specification for a cohort report. # Cohort group associated with this request. If there is a cohort group in the request the &#x27;cohort&#x27; dimension must be present.
1036 &quot;cohortReportSettings&quot;: { # Settings of a cohort report. # Settings of a cohort report.
1037 &quot;accumulate&quot;: True or False, # If true, accumulates the result from first visit day to the end day. Not supported in `RunReportRequest`.
1038 },
1039 &quot;cohorts&quot;: [ # The definition for the cohorts.
1040 { # 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.
1041 &quot;name&quot;: &quot;A String&quot;, # 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.
1042 &quot;dimension&quot;: &quot;A String&quot;, # The dimension used by cohort. Only supports `firstTouchDate` for retention report.
1043 &quot;dateRange&quot;: { # 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&#x27;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.
1044 &quot;name&quot;: &quot;A String&quot;, # 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.
1045 &quot;startDate&quot;: &quot;A String&quot;, # 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&#x27;s reporting time zone.
1046 &quot;endDate&quot;: &quot;A String&quot;, # 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&#x27;s reporting time zone.
1047 },
1048 },
1049 ],
1050 &quot;cohortsRange&quot;: { # Describes date range for a cohort report. # The data ranges of cohorts.
1051 &quot;startOffset&quot;: 42, # For daily cohorts, this will be the start day offset. For weekly cohorts, this will be the week offset.
1052 &quot;endOffset&quot;: 42, # For daily cohorts, this will be the end day offset. For weekly cohorts, this will be the week offset.
1053 &quot;granularity&quot;: &quot;A String&quot;, # Reporting date range for each cohort is calculated based on these three fields.
1054 },
1055 },
1056 &quot;metricFilter&quot;: { # 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.
1057 &quot;notExpression&quot;: # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression.
1058 &quot;orGroup&quot;: { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship.
1059 &quot;expressions&quot;: [ # A list of filter expressions.
1060 # Object with schema name: FilterExpression
1061 ],
1062 },
1063 &quot;filter&quot;: { # 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.
1064 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
1065 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
1066 &quot;values&quot;: [ # The list of string values. Must be non-empty.
1067 &quot;A String&quot;,
1068 ],
1069 },
1070 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
1071 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
1072 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
1073 &quot;doubleValue&quot;: 3.14, # Double value
1074 },
1075 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
1076 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
1077 &quot;doubleValue&quot;: 3.14, # Double value
1078 },
1079 },
1080 &quot;stringFilter&quot;: { # The filter for string # Strings related filter.
1081 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
1082 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
1083 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
1084 },
1085 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name. Must be a name defined in dimensions or metrics.
1086 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
1087 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
1088 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
1089 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
1090 &quot;doubleValue&quot;: 3.14, # Double value
1091 },
1092 },
1093 &quot;nullFilter&quot;: 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.
1094 },
1095 &quot;andGroup&quot;: { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship.
1096 &quot;expressions&quot;: [ # A list of filter expressions.
1097 # Object with schema name: FilterExpression
1098 ],
1099 },
1100 },
1101 &quot;dimensions&quot;: [ # The dimensions requested and displayed.
1102 { # 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 &quot;Paris&quot; or &quot;New York&quot;. Requests are allowed up to 8 dimensions.
1103 &quot;name&quot;: &quot;A String&quot;, # 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`.
1104 &quot;dimensionExpression&quot;: { # 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 &quot;country, city&quot;: concatenate(country, &quot;, &quot;, city).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001105 &quot;concatenate&quot;: { # Used to combine dimension values to a single dimension. # Used to combine dimension values to a single dimension. For example, dimension &quot;country, city&quot;: concatenate(country, &quot;, &quot;, city).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001106 &quot;dimensionNames&quot;: [ # Names of dimensions. The names must refer back to names in the dimensions field of the request.
1107 &quot;A String&quot;,
1108 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001109 &quot;delimiter&quot;: &quot;A String&quot;, # The delimiter placed between dimension names. Delimiters are often single characters such as &quot;|&quot; or &quot;,&quot; 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 = &quot;US,FR&quot;, dimension 2 value = &quot;JP&quot;, and delimiter = &quot;,&quot;, then the response will contain &quot;US,FR,JP&quot;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001110 },
1111 &quot;lowerCase&quot;: { # Used to convert a dimension value to a single case. # Used to convert a dimension value to lower case.
1112 &quot;dimensionName&quot;: &quot;A String&quot;, # Name of a dimension. The name must refer back to a name in dimensions field of the request.
1113 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001114 &quot;upperCase&quot;: { # Used to convert a dimension value to a single case. # Used to convert a dimension value to upper case.
1115 &quot;dimensionName&quot;: &quot;A String&quot;, # Name of a dimension. The name must refer back to a name in dimensions field of the request.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001116 },
1117 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001118 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001119 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001120 &quot;orderBys&quot;: [ # Specifies how rows are ordered in the response.
1121 { # The sort options.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001122 &quot;metric&quot;: { # Sorts by metric values. # Sorts results by a metric&#x27;s values.
1123 &quot;metricName&quot;: &quot;A String&quot;, # A metric name in the request to order by.
1124 },
1125 &quot;desc&quot;: True or False, # If true, sorts by descending order.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001126 &quot;dimension&quot;: { # Sorts by dimension values. # Sorts results by a dimension&#x27;s values.
1127 &quot;orderType&quot;: &quot;A String&quot;, # Controls the rule for dimension value ordering.
1128 &quot;dimensionName&quot;: &quot;A String&quot;, # A dimension name in the request to order by.
1129 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001130 &quot;pivot&quot;: { # Sorts by a pivot column group. # Sorts results by a metric&#x27;s values within a pivot column group.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001131 &quot;metricName&quot;: &quot;A String&quot;, # In the response to order by, order rows by this column. Must be a metric name from the request.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001132 &quot;pivotSelections&quot;: [ # 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&#x27;s dimension name and value pair.
1133 { # A pair of dimension names and values. Rows with this dimension pivot pair are ordered by the metric&#x27;s value. For example if pivots = {{&quot;browser&quot;, &quot;Chrome&quot;}} and metric_name = &quot;Sessions&quot;, 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 ---------|----------|----------------|----------|----------------
1134 &quot;dimensionName&quot;: &quot;A String&quot;, # Must be a dimension name from the request.
1135 &quot;dimensionValue&quot;: &quot;A String&quot;, # Order by only when the named dimension is this value.
1136 },
1137 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001138 },
1139 },
1140 ],
1141 &quot;currencyCode&quot;: &quot;A String&quot;, # A currency code in ISO4217 format, such as &quot;AED&quot;, &quot;USD&quot;, &quot;JPY&quot;. If the field is empty, the report uses the entity&#x27;s default currency.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001142 &quot;metrics&quot;: [ # The metrics requested and displayed.
1143 { # The quantitative measurements of a report. For example, the metric `eventCount` is the total number of events. Requests are allowed up to 10 metrics.
1144 &quot;expression&quot;: &quot;A String&quot;, # A mathematical expression for derived metrics. For example, the metric Event count per user is `eventCount/totalUsers`.
1145 &quot;name&quot;: &quot;A String&quot;, # 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&#x27;s name = `viewsPerSession`. Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric `expression`.
1146 &quot;invisible&quot;: 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`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001147 },
1148 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001149 &quot;returnPropertyQuota&quot;: True or False, # Toggles whether to return the current state of this Analytics Property&#x27;s quota. Quota is returned in [PropertyQuota](#PropertyQuota).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001150 &quot;entity&quot;: { # 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.
1151 &quot;propertyId&quot;: &quot;A String&quot;, # 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 Frenkel3e17f892020-10-06 16:46:05 -07001152 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001153}
1154
1155 x__xgafv: string, V1 error format.
1156 Allowed values
1157 1 - v1 error format
1158 2 - v2 error format
1159
1160Returns:
1161 An object of the form:
1162
1163 { # The response report table corresponding to a request.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001164 &quot;rows&quot;: [ # Rows of dimension value combinations and metric values in the report.
1165 { # Report data for each row. For example if RunReportRequest contains: ```none &quot;dimensions&quot;: [ { &quot;name&quot;: &quot;eventName&quot; }, { &quot;name&quot;: &quot;countryId&quot; } ], &quot;metrics&quot;: [ { &quot;name&quot;: &quot;eventCount&quot; } ] ``` One row with &#x27;in_app_purchase&#x27; as the eventName, &#x27;JP&#x27; as the countryId, and 15 as the eventCount, would be: ```none &quot;dimensionValues&quot;: [ { &quot;value&quot;: &quot;in_app_purchase&quot; }, { &quot;value&quot;: &quot;JP&quot; } ], &quot;metricValues&quot;: [ { &quot;value&quot;: &quot;15&quot; } ] ```
1166 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
1167 { # The value of a dimension.
1168 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
1169 },
1170 ],
1171 &quot;metricValues&quot;: [ # List of requested visible metric values.
1172 { # The value of a metric.
1173 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
1174 },
1175 ],
1176 },
1177 ],
1178 &quot;maximums&quot;: [ # If requested, the maximum values of metrics.
1179 { # Report data for each row. For example if RunReportRequest contains: ```none &quot;dimensions&quot;: [ { &quot;name&quot;: &quot;eventName&quot; }, { &quot;name&quot;: &quot;countryId&quot; } ], &quot;metrics&quot;: [ { &quot;name&quot;: &quot;eventCount&quot; } ] ``` One row with &#x27;in_app_purchase&#x27; as the eventName, &#x27;JP&#x27; as the countryId, and 15 as the eventCount, would be: ```none &quot;dimensionValues&quot;: [ { &quot;value&quot;: &quot;in_app_purchase&quot; }, { &quot;value&quot;: &quot;JP&quot; } ], &quot;metricValues&quot;: [ { &quot;value&quot;: &quot;15&quot; } ] ```
1180 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
1181 { # The value of a dimension.
1182 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
1183 },
1184 ],
1185 &quot;metricValues&quot;: [ # List of requested visible metric values.
1186 { # The value of a metric.
1187 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
1188 },
1189 ],
1190 },
1191 ],
1192 &quot;dimensionHeaders&quot;: [ # Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows.
1193 { # 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.
1194 &quot;name&quot;: &quot;A String&quot;, # The dimension&#x27;s name.
1195 },
1196 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001197 &quot;metricHeaders&quot;: [ # Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.
1198 { # 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.
1199 &quot;type&quot;: &quot;A String&quot;, # The metric&#x27;s data type.
1200 &quot;name&quot;: &quot;A String&quot;, # The metric&#x27;s name.
1201 },
1202 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001203 &quot;minimums&quot;: [ # If requested, the minimum values of metrics.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001204 { # Report data for each row. For example if RunReportRequest contains: ```none &quot;dimensions&quot;: [ { &quot;name&quot;: &quot;eventName&quot; }, { &quot;name&quot;: &quot;countryId&quot; } ], &quot;metrics&quot;: [ { &quot;name&quot;: &quot;eventCount&quot; } ] ``` One row with &#x27;in_app_purchase&#x27; as the eventName, &#x27;JP&#x27; as the countryId, and 15 as the eventCount, would be: ```none &quot;dimensionValues&quot;: [ { &quot;value&quot;: &quot;in_app_purchase&quot; }, { &quot;value&quot;: &quot;JP&quot; } ], &quot;metricValues&quot;: [ { &quot;value&quot;: &quot;15&quot; } ] ```
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001205 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
1206 { # The value of a dimension.
1207 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
1208 },
1209 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001210 &quot;metricValues&quot;: [ # List of requested visible metric values.
1211 { # The value of a metric.
1212 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
1213 },
1214 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001215 },
1216 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001217 &quot;rowCount&quot;: 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](basics#pagination).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001218 &quot;metadata&quot;: { # Response&#x27;s metadata carrying additional information about the report content. # Metadata for the report.
1219 &quot;dataLossFromOtherRow&quot;: True or False, # If true, indicates some buckets of dimension combinations are rolled into &quot;(other)&quot; row. This can happen for high cardinality reports.
1220 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001221 &quot;propertyQuota&quot;: { # 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&#x27;s quota state including this request.
1222 &quot;tokensPerHour&quot;: { # 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.
1223 &quot;consumed&quot;: 42, # Quota consumed by this request.
1224 &quot;remaining&quot;: 42, # Quota remaining after this request.
1225 },
1226 &quot;tokensPerDay&quot;: { # 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.
1227 &quot;consumed&quot;: 42, # Quota consumed by this request.
1228 &quot;remaining&quot;: 42, # Quota remaining after this request.
1229 },
1230 &quot;serverErrorsPerProjectPerHour&quot;: { # 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.
1231 &quot;consumed&quot;: 42, # Quota consumed by this request.
1232 &quot;remaining&quot;: 42, # Quota remaining after this request.
1233 },
1234 &quot;concurrentRequests&quot;: { # 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.
1235 &quot;consumed&quot;: 42, # Quota consumed by this request.
1236 &quot;remaining&quot;: 42, # Quota remaining after this request.
1237 },
1238 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001239 &quot;totals&quot;: [ # If requested, the totaled values of metrics.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001240 { # Report data for each row. For example if RunReportRequest contains: ```none &quot;dimensions&quot;: [ { &quot;name&quot;: &quot;eventName&quot; }, { &quot;name&quot;: &quot;countryId&quot; } ], &quot;metrics&quot;: [ { &quot;name&quot;: &quot;eventCount&quot; } ] ``` One row with &#x27;in_app_purchase&#x27; as the eventName, &#x27;JP&#x27; as the countryId, and 15 as the eventCount, would be: ```none &quot;dimensionValues&quot;: [ { &quot;value&quot;: &quot;in_app_purchase&quot; }, { &quot;value&quot;: &quot;JP&quot; } ], &quot;metricValues&quot;: [ { &quot;value&quot;: &quot;15&quot; } ] ```
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001241 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
1242 { # The value of a dimension.
1243 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
1244 },
1245 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001246 &quot;metricValues&quot;: [ # List of requested visible metric values.
1247 { # The value of a metric.
1248 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
1249 },
1250 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001251 },
1252 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001253 }</pre>
1254</div>
1255
1256</body></html>