blob: cde0f1f6c33d10c178ae2a935e87061279a99be1 [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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800102 &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.
103 &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/devguides/reporting/data/v1/property-id).
104 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700105 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800107 &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.
108 &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.
109 &quot;stringFilter&quot;: { # The filter for string # Strings related filter.
110 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
111 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
112 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700113 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800114 &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.
115 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
116 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
117 &quot;values&quot;: [ # The list of string values. Must be non-empty.
118 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800119 ],
120 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800121 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
122 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
123 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
124 &quot;doubleValue&quot;: 3.14, # Double value
125 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
126 },
127 },
128 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name. Must be a name defined in dimensions or metrics.
129 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
130 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
131 &quot;doubleValue&quot;: 3.14, # Double value
132 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
133 },
134 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
135 &quot;doubleValue&quot;: 3.14, # Double value
136 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
137 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800138 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700139 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800140 &quot;andGroup&quot;: { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship.
141 &quot;expressions&quot;: [ # A list of filter expressions.
142 # Object with schema name: FilterExpression
143 ],
144 },
145 &quot;notExpression&quot;: # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression.
146 &quot;orGroup&quot;: { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship.
147 &quot;expressions&quot;: [ # A list of filter expressions.
148 # Object with schema name: FilterExpression
149 ],
150 },
151 },
152 &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.
153 { # The quantitative measurements of a report. For example, the metric `eventCount` is the total number of events. Requests are allowed up to 10 metrics.
154 &quot;expression&quot;: &quot;A String&quot;, # A mathematical expression for derived metrics. For example, the metric Event count per user is `eventCount/totalUsers`.
155 &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`.
156 &quot;name&quot;: &quot;A String&quot;, # The name of the metric. See the [API Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) for the list of metric names. 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`.
157 },
158 ],
159 &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).
160 &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.
161 { # Describes the visible dimension columns and rows in the report response.
162 &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.
163 { # The sort options.
164 &quot;dimension&quot;: { # Sorts by dimension values. # Sorts results by a dimension&#x27;s values.
165 &quot;orderType&quot;: &quot;A String&quot;, # Controls the rule for dimension value ordering.
166 &quot;dimensionName&quot;: &quot;A String&quot;, # A dimension name in the request to order by.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800167 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800168 &quot;desc&quot;: True or False, # If true, sorts by descending order.
169 &quot;pivot&quot;: { # Sorts by a pivot column group. # Sorts results by a metric&#x27;s values within a pivot column group.
170 &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.
171 { # 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 ---------|----------|----------------|----------|----------------
172 &quot;dimensionName&quot;: &quot;A String&quot;, # Must be a dimension name from the request.
173 &quot;dimensionValue&quot;: &quot;A String&quot;, # Order by only when the named dimension is this value.
174 },
175 ],
176 &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.
177 },
178 &quot;metric&quot;: { # Sorts by metric values. # Sorts results by a metric&#x27;s values.
179 &quot;metricName&quot;: &quot;A String&quot;, # A metric name in the request to order by.
180 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800181 },
182 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800183 &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.
184 &quot;offset&quot;: &quot;A String&quot;, # The row count of the start row. The first row is counted as row 0.
185 &quot;metricAggregations&quot;: [ # Aggregate the metrics by dimensions in this pivot using the specified metric_aggregations.
186 &quot;A String&quot;,
187 ],
188 &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.
189 &quot;A String&quot;,
190 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800191 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800192 ],
193 &quot;dimensions&quot;: [ # The dimensions requested. All defined dimensions must be used by one of the following: dimension_expression, dimension_filter, pivots, order_bys.
194 { # 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.
195 &quot;name&quot;: &quot;A String&quot;, # The name of the dimension. See the [API Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) for the list of dimension names. 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`.
196 &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).
197 &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).
198 &quot;dimensionNames&quot;: [ # Names of dimensions. The names must refer back to names in the dimensions field of the request.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800199 &quot;A String&quot;,
200 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800201 &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;.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800202 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800203 &quot;upperCase&quot;: { # Used to convert a dimension value to a single case. # Used to convert a dimension value to upper case.
204 &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.
205 },
206 &quot;lowerCase&quot;: { # Used to convert a dimension value to a single case. # Used to convert a dimension value to lower case.
207 &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.
208 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800209 },
210 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800211 ],
212 &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.
213 &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.
214 { # A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges.
215 &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.
216 &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.
217 &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.
218 },
219 ],
220 &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.
221 &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/devguides/reporting/data/v1/property-id).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700222 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800223 &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.
224 &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.
225 &quot;cohortsRange&quot;: { # Describes date range for a cohort report. # The data ranges of cohorts.
226 &quot;startOffset&quot;: 42, # For daily cohorts, this will be the start day offset. For weekly cohorts, this will be the week offset.
227 &quot;endOffset&quot;: 42, # For daily cohorts, this will be the end day offset. For weekly cohorts, this will be the week offset.
228 &quot;granularity&quot;: &quot;A String&quot;, # Reporting date range for each cohort is calculated based on these three fields.
229 },
230 &quot;cohorts&quot;: [ # The definition for the cohorts.
231 { # 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.
232 &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.
233 &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.
234 &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.
235 &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.
236 },
237 &quot;dimension&quot;: &quot;A String&quot;, # The dimension used by cohort. Only supports `firstTouchDate` for retention report.
238 &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.
239 },
240 ],
241 &quot;cohortReportSettings&quot;: { # Settings of a cohort report. # Settings of a cohort report.
242 &quot;accumulate&quot;: True or False, # If true, accumulates the result from first visit day to the end day. Not supported in `RunReportRequest`.
243 },
244 },
245 &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.
246 &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.
247 &quot;stringFilter&quot;: { # The filter for string # Strings related filter.
248 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
249 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
250 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
251 },
252 &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.
253 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
254 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
255 &quot;values&quot;: [ # The list of string values. Must be non-empty.
256 &quot;A String&quot;,
257 ],
258 },
259 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
260 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
261 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
262 &quot;doubleValue&quot;: 3.14, # Double value
263 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
264 },
265 },
266 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name. Must be a name defined in dimensions or metrics.
267 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
268 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
269 &quot;doubleValue&quot;: 3.14, # Double value
270 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
271 },
272 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
273 &quot;doubleValue&quot;: 3.14, # Double value
274 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
275 },
276 },
277 },
278 &quot;andGroup&quot;: { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship.
279 &quot;expressions&quot;: [ # A list of filter expressions.
280 # Object with schema name: FilterExpression
281 ],
282 },
283 &quot;notExpression&quot;: # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression.
284 &quot;orGroup&quot;: { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship.
285 &quot;expressions&quot;: [ # A list of filter expressions.
286 # Object with schema name: FilterExpression
287 ],
288 },
289 },
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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800305 &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 ],
310 &quot;metadata&quot;: { # Response&#x27;s metadata carrying additional information about the report content. # Metadata for the report.
311 &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.
312 },
313 &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.
314 &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.
315 &quot;consumed&quot;: 42, # Quota consumed by this request.
316 &quot;remaining&quot;: 42, # Quota remaining after this request.
317 },
318 &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.
319 &quot;consumed&quot;: 42, # Quota consumed by this request.
320 &quot;remaining&quot;: 42, # Quota remaining after this request.
321 },
322 &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.
323 &quot;consumed&quot;: 42, # Quota consumed by this request.
324 &quot;remaining&quot;: 42, # Quota remaining after this request.
325 },
326 &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.
327 &quot;consumed&quot;: 42, # Quota consumed by this request.
328 &quot;remaining&quot;: 42, # Quota remaining after this request.
329 },
330 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800331 &quot;rows&quot;: [ # Rows of dimension value combinations and metric values in the report.
332 { # 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; } ] ```
333 &quot;metricValues&quot;: [ # List of requested visible metric values.
334 { # The value of a metric.
335 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
336 },
337 ],
338 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
339 { # The value of a dimension.
340 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
341 },
342 ],
343 },
344 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800345 &quot;metricHeaders&quot;: [ # Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.
346 { # 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.
347 &quot;name&quot;: &quot;A String&quot;, # The metric&#x27;s name.
348 &quot;type&quot;: &quot;A String&quot;, # The metric&#x27;s data type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700349 },
350 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800351 &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;.
352 { # 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; } ] ```
353 &quot;metricValues&quot;: [ # List of requested visible metric values.
354 { # The value of a metric.
355 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
356 },
357 ],
358 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
359 { # The value of a dimension.
360 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
361 },
362 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700363 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800364 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700365 &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; }] }] }]
366 { # Dimensions&#x27; values in a single pivot.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700367 &quot;pivotDimensionHeaders&quot;: [ # The size is the same as the cardinality of the corresponding dimension combinations.
368 { # Summarizes dimension values from a row for this pivot.
369 &quot;dimensionValues&quot;: [ # Values of multiple dimensions in a pivot.
370 { # The value of a dimension.
371 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
372 },
373 ],
374 },
375 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800376 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700377 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700378 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700379 },
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.
393 &quot;requests&quot;: [ # Individual requests. Each request has a separate report response. Each batch request is allowed up to 5 requests.
394 { # The request to generate a report.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800395 &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.
396 &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;.
397 &quot;A String&quot;,
398 ],
399 &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.
400 &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/devguides/reporting/data/v1/property-id).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700401 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800402 &quot;metrics&quot;: [ # The metrics requested and displayed.
403 { # The quantitative measurements of a report. For example, the metric `eventCount` is the total number of events. Requests are allowed up to 10 metrics.
404 &quot;expression&quot;: &quot;A String&quot;, # A mathematical expression for derived metrics. For example, the metric Event count per user is `eventCount/totalUsers`.
405 &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`.
406 &quot;name&quot;: &quot;A String&quot;, # The name of the metric. See the [API Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) for the list of metric names. 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`.
407 },
408 ],
409 &quot;dimensions&quot;: [ # The dimensions requested and displayed.
410 { # 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.
411 &quot;name&quot;: &quot;A String&quot;, # The name of the dimension. See the [API Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) for the list of dimension names. 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`.
412 &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).
413 &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).
414 &quot;dimensionNames&quot;: [ # Names of dimensions. The names must refer back to names in the dimensions field of the request.
415 &quot;A String&quot;,
416 ],
417 &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;.
418 },
419 &quot;upperCase&quot;: { # Used to convert a dimension value to a single case. # Used to convert a dimension value to upper case.
420 &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.
421 },
422 &quot;lowerCase&quot;: { # Used to convert a dimension value to a single case. # Used to convert a dimension value to lower case.
423 &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.
424 },
425 },
426 },
427 ],
428 &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.
429 &quot;cohortsRange&quot;: { # Describes date range for a cohort report. # The data ranges of cohorts.
430 &quot;startOffset&quot;: 42, # For daily cohorts, this will be the start day offset. For weekly cohorts, this will be the week offset.
431 &quot;endOffset&quot;: 42, # For daily cohorts, this will be the end day offset. For weekly cohorts, this will be the week offset.
432 &quot;granularity&quot;: &quot;A String&quot;, # Reporting date range for each cohort is calculated based on these three fields.
433 },
434 &quot;cohorts&quot;: [ # The definition for the cohorts.
435 { # 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.
436 &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.
437 &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.
438 &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.
439 &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.
440 },
441 &quot;dimension&quot;: &quot;A String&quot;, # The dimension used by cohort. Only supports `firstTouchDate` for retention report.
442 &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.
443 },
444 ],
445 &quot;cohortReportSettings&quot;: { # Settings of a cohort report. # Settings of a cohort report.
446 &quot;accumulate&quot;: True or False, # If true, accumulates the result from first visit day to the end day. Not supported in `RunReportRequest`.
447 },
448 },
449 &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](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
450 &quot;orderBys&quot;: [ # Specifies how rows are ordered in the response.
451 { # The sort options.
452 &quot;dimension&quot;: { # Sorts by dimension values. # Sorts results by a dimension&#x27;s values.
453 &quot;orderType&quot;: &quot;A String&quot;, # Controls the rule for dimension value ordering.
454 &quot;dimensionName&quot;: &quot;A String&quot;, # A dimension name in the request to order by.
455 },
456 &quot;desc&quot;: True or False, # If true, sorts by descending order.
457 &quot;pivot&quot;: { # Sorts by a pivot column group. # Sorts results by a metric&#x27;s values within a pivot column group.
458 &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.
459 { # 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 ---------|----------|----------------|----------|----------------
460 &quot;dimensionName&quot;: &quot;A String&quot;, # Must be a dimension name from the request.
461 &quot;dimensionValue&quot;: &quot;A String&quot;, # Order by only when the named dimension is this value.
462 },
463 ],
464 &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.
465 },
466 &quot;metric&quot;: { # Sorts by metric values. # Sorts results by a metric&#x27;s values.
467 &quot;metricName&quot;: &quot;A String&quot;, # A metric name in the request to order by.
468 },
469 },
470 ],
471 &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](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
472 &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.
473 &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.
474 &quot;stringFilter&quot;: { # The filter for string # Strings related filter.
475 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
476 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
477 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
478 },
479 &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.
480 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
481 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
482 &quot;values&quot;: [ # The list of string values. Must be non-empty.
483 &quot;A String&quot;,
484 ],
485 },
486 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
487 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
488 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
489 &quot;doubleValue&quot;: 3.14, # Double value
490 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
491 },
492 },
493 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name. Must be a name defined in dimensions or metrics.
494 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
495 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
496 &quot;doubleValue&quot;: 3.14, # Double value
497 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
498 },
499 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
500 &quot;doubleValue&quot;: 3.14, # Double value
501 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
502 },
503 },
504 },
505 &quot;andGroup&quot;: { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship.
506 &quot;expressions&quot;: [ # A list of filter expressions.
507 # Object with schema name: FilterExpression
508 ],
509 },
510 &quot;notExpression&quot;: # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression.
511 &quot;orGroup&quot;: { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship.
512 &quot;expressions&quot;: [ # A list of filter expressions.
513 # Object with schema name: FilterExpression
514 ],
515 },
516 },
517 &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.
518 { # A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges.
519 &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.
520 &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.
521 &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.
522 },
523 ],
524 &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).
525 &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.
526 &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.
527 &quot;stringFilter&quot;: { # The filter for string # Strings related filter.
528 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
529 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
530 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
531 },
532 &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.
533 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
534 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
535 &quot;values&quot;: [ # The list of string values. Must be non-empty.
536 &quot;A String&quot;,
537 ],
538 },
539 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
540 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
541 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
542 &quot;doubleValue&quot;: 3.14, # Double value
543 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
544 },
545 },
546 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name. Must be a name defined in dimensions or metrics.
547 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
548 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
549 &quot;doubleValue&quot;: 3.14, # Double value
550 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
551 },
552 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
553 &quot;doubleValue&quot;: 3.14, # Double value
554 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
555 },
556 },
557 },
558 &quot;andGroup&quot;: { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship.
559 &quot;expressions&quot;: [ # A list of filter expressions.
560 # Object with schema name: FilterExpression
561 ],
562 },
563 &quot;notExpression&quot;: # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression.
564 &quot;orGroup&quot;: { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship.
565 &quot;expressions&quot;: [ # A list of filter expressions.
566 # Object with schema name: FilterExpression
567 ],
568 },
569 },
570 &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.
571 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700572 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800573 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800574 &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/devguides/reporting/data/v1/property-id).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800575 },
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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800589 &quot;metricHeaders&quot;: [ # Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.
590 { # 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.
591 &quot;name&quot;: &quot;A String&quot;, # The metric&#x27;s name.
592 &quot;type&quot;: &quot;A String&quot;, # The metric&#x27;s data type.
593 },
594 ],
595 &quot;maximums&quot;: [ # If requested, the maximum values of metrics.
596 { # 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; } ] ```
597 &quot;metricValues&quot;: [ # List of requested visible metric values.
598 { # The value of a metric.
599 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
600 },
601 ],
602 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
603 { # The value of a dimension.
604 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
605 },
606 ],
607 },
608 ],
609 &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](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
610 &quot;rows&quot;: [ # Rows of dimension value combinations and metric values in the report.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700611 { # 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; } ] ```
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700612 &quot;metricValues&quot;: [ # List of requested visible metric values.
613 { # The value of a metric.
614 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
615 },
616 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700617 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
618 { # The value of a dimension.
619 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
620 },
621 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700622 },
623 ],
624 &quot;dimensionHeaders&quot;: [ # Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows.
625 { # 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.
626 &quot;name&quot;: &quot;A String&quot;, # The dimension&#x27;s name.
627 },
628 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800629 &quot;totals&quot;: [ # If requested, the totaled values of metrics.
630 { # 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; } ] ```
631 &quot;metricValues&quot;: [ # List of requested visible metric values.
632 { # The value of a metric.
633 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
634 },
635 ],
636 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
637 { # The value of a dimension.
638 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
639 },
640 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700641 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800642 ],
643 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700645 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800646 &quot;minimums&quot;: [ # If requested, the minimum values of metrics.
647 { # 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; } ] ```
648 &quot;metricValues&quot;: [ # List of requested visible metric values.
649 { # The value of a metric.
650 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
651 },
652 ],
653 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
654 { # The value of a dimension.
655 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
656 },
657 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700658 },
659 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800660 &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.
661 &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.
662 &quot;consumed&quot;: 42, # Quota consumed by this request.
663 &quot;remaining&quot;: 42, # Quota remaining after this request.
664 },
665 &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.
666 &quot;consumed&quot;: 42, # Quota consumed by this request.
667 &quot;remaining&quot;: 42, # Quota remaining after this request.
668 },
669 &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.
670 &quot;consumed&quot;: 42, # Quota consumed by this request.
671 &quot;remaining&quot;: 42, # Quota remaining after this request.
672 },
673 &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.
674 &quot;consumed&quot;: 42, # Quota consumed by this request.
675 &quot;remaining&quot;: 42, # Quota remaining after this request.
676 },
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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800697 &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.
698 &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.
699 &quot;stringFilter&quot;: { # The filter for string # Strings related filter.
700 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
701 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
702 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700703 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800704 &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.
705 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
706 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
707 &quot;values&quot;: [ # The list of string values. Must be non-empty.
708 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800709 ],
710 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800711 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
712 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
713 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
714 &quot;doubleValue&quot;: 3.14, # Double value
715 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
716 },
717 },
718 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name. Must be a name defined in dimensions or metrics.
719 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
720 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
721 &quot;doubleValue&quot;: 3.14, # Double value
722 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
723 },
724 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
725 &quot;doubleValue&quot;: 3.14, # Double value
726 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
727 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800728 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700729 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800730 &quot;andGroup&quot;: { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship.
731 &quot;expressions&quot;: [ # A list of filter expressions.
732 # Object with schema name: FilterExpression
733 ],
734 },
735 &quot;notExpression&quot;: # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression.
736 &quot;orGroup&quot;: { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship.
737 &quot;expressions&quot;: [ # A list of filter expressions.
738 # Object with schema name: FilterExpression
739 ],
740 },
741 },
742 &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.
743 { # The quantitative measurements of a report. For example, the metric `eventCount` is the total number of events. Requests are allowed up to 10 metrics.
744 &quot;expression&quot;: &quot;A String&quot;, # A mathematical expression for derived metrics. For example, the metric Event count per user is `eventCount/totalUsers`.
745 &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`.
746 &quot;name&quot;: &quot;A String&quot;, # The name of the metric. See the [API Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) for the list of metric names. 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`.
747 },
748 ],
749 &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).
750 &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.
751 { # Describes the visible dimension columns and rows in the report response.
752 &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.
753 { # The sort options.
754 &quot;dimension&quot;: { # Sorts by dimension values. # Sorts results by a dimension&#x27;s values.
755 &quot;orderType&quot;: &quot;A String&quot;, # Controls the rule for dimension value ordering.
756 &quot;dimensionName&quot;: &quot;A String&quot;, # A dimension name in the request to order by.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800757 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800758 &quot;desc&quot;: True or False, # If true, sorts by descending order.
759 &quot;pivot&quot;: { # Sorts by a pivot column group. # Sorts results by a metric&#x27;s values within a pivot column group.
760 &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.
761 { # 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 ---------|----------|----------------|----------|----------------
762 &quot;dimensionName&quot;: &quot;A String&quot;, # Must be a dimension name from the request.
763 &quot;dimensionValue&quot;: &quot;A String&quot;, # Order by only when the named dimension is this value.
764 },
765 ],
766 &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.
767 },
768 &quot;metric&quot;: { # Sorts by metric values. # Sorts results by a metric&#x27;s values.
769 &quot;metricName&quot;: &quot;A String&quot;, # A metric name in the request to order by.
770 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800771 },
772 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800773 &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.
774 &quot;offset&quot;: &quot;A String&quot;, # The row count of the start row. The first row is counted as row 0.
775 &quot;metricAggregations&quot;: [ # Aggregate the metrics by dimensions in this pivot using the specified metric_aggregations.
776 &quot;A String&quot;,
777 ],
778 &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.
779 &quot;A String&quot;,
780 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700781 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800782 ],
783 &quot;dimensions&quot;: [ # The dimensions requested. All defined dimensions must be used by one of the following: dimension_expression, dimension_filter, pivots, order_bys.
784 { # 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.
785 &quot;name&quot;: &quot;A String&quot;, # The name of the dimension. See the [API Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) for the list of dimension names. 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`.
786 &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).
787 &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).
788 &quot;dimensionNames&quot;: [ # Names of dimensions. The names must refer back to names in the dimensions field of the request.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800789 &quot;A String&quot;,
790 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800791 &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;.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800792 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800793 &quot;upperCase&quot;: { # Used to convert a dimension value to a single case. # Used to convert a dimension value to upper case.
794 &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.
795 },
796 &quot;lowerCase&quot;: { # Used to convert a dimension value to a single case. # Used to convert a dimension value to lower case.
797 &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.
798 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800799 },
800 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800801 ],
802 &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.
803 &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.
804 { # A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges.
805 &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.
806 &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.
807 &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.
808 },
809 ],
810 &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.
811 &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/devguides/reporting/data/v1/property-id).
812 },
813 &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.
814 &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.
815 &quot;cohortsRange&quot;: { # Describes date range for a cohort report. # The data ranges of cohorts.
816 &quot;startOffset&quot;: 42, # For daily cohorts, this will be the start day offset. For weekly cohorts, this will be the week offset.
817 &quot;endOffset&quot;: 42, # For daily cohorts, this will be the end day offset. For weekly cohorts, this will be the week offset.
818 &quot;granularity&quot;: &quot;A String&quot;, # Reporting date range for each cohort is calculated based on these three fields.
819 },
820 &quot;cohorts&quot;: [ # The definition for the cohorts.
821 { # 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.
822 &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.
823 &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.
824 &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.
825 &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.
826 },
827 &quot;dimension&quot;: &quot;A String&quot;, # The dimension used by cohort. Only supports `firstTouchDate` for retention report.
828 &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.
829 },
830 ],
831 &quot;cohortReportSettings&quot;: { # Settings of a cohort report. # Settings of a cohort report.
832 &quot;accumulate&quot;: True or False, # If true, accumulates the result from first visit day to the end day. Not supported in `RunReportRequest`.
833 },
834 },
835 &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.
836 &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.
837 &quot;stringFilter&quot;: { # The filter for string # Strings related filter.
838 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
839 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
840 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
841 },
842 &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.
843 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
844 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
845 &quot;values&quot;: [ # The list of string values. Must be non-empty.
846 &quot;A String&quot;,
847 ],
848 },
849 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
850 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
851 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
852 &quot;doubleValue&quot;: 3.14, # Double value
853 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
854 },
855 },
856 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name. Must be a name defined in dimensions or metrics.
857 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
858 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
859 &quot;doubleValue&quot;: 3.14, # Double value
860 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
861 },
862 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
863 &quot;doubleValue&quot;: 3.14, # Double value
864 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
865 },
866 },
867 },
868 &quot;andGroup&quot;: { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship.
869 &quot;expressions&quot;: [ # A list of filter expressions.
870 # Object with schema name: FilterExpression
871 ],
872 },
873 &quot;notExpression&quot;: # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression.
874 &quot;orGroup&quot;: { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship.
875 &quot;expressions&quot;: [ # A list of filter expressions.
876 # Object with schema name: FilterExpression
877 ],
878 },
879 },
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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800891 &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 ],
896 &quot;metadata&quot;: { # Response&#x27;s metadata carrying additional information about the report content. # Metadata for the report.
897 &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.
898 },
899 &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.
900 &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.
901 &quot;consumed&quot;: 42, # Quota consumed by this request.
902 &quot;remaining&quot;: 42, # Quota remaining after this request.
903 },
904 &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.
905 &quot;consumed&quot;: 42, # Quota consumed by this request.
906 &quot;remaining&quot;: 42, # Quota remaining after this request.
907 },
908 &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.
909 &quot;consumed&quot;: 42, # Quota consumed by this request.
910 &quot;remaining&quot;: 42, # Quota remaining after this request.
911 },
912 &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.
913 &quot;consumed&quot;: 42, # Quota consumed by this request.
914 &quot;remaining&quot;: 42, # Quota remaining after this request.
915 },
916 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800917 &quot;rows&quot;: [ # Rows of dimension value combinations and metric values in the report.
918 { # 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; } ] ```
919 &quot;metricValues&quot;: [ # List of requested visible metric values.
920 { # The value of a metric.
921 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
922 },
923 ],
924 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
925 { # The value of a dimension.
926 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
927 },
928 ],
929 },
930 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800931 &quot;metricHeaders&quot;: [ # Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.
932 { # 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.
933 &quot;name&quot;: &quot;A String&quot;, # The metric&#x27;s name.
934 &quot;type&quot;: &quot;A String&quot;, # The metric&#x27;s data type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700935 },
936 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800937 &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;.
938 { # 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; } ] ```
939 &quot;metricValues&quot;: [ # List of requested visible metric values.
940 { # The value of a metric.
941 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
942 },
943 ],
944 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
945 { # The value of a dimension.
946 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
947 },
948 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700949 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800950 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700951 &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; }] }] }]
952 { # Dimensions&#x27; values in a single pivot.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700953 &quot;pivotDimensionHeaders&quot;: [ # The size is the same as the cardinality of the corresponding dimension combinations.
954 { # Summarizes dimension values from a row for this pivot.
955 &quot;dimensionValues&quot;: [ # Values of multiple dimensions in a pivot.
956 { # The value of a dimension.
957 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
958 },
959 ],
960 },
961 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800962 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700963 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700964 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700965 }</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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800977 &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.
978 &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;.
979 &quot;A String&quot;,
980 ],
981 &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.
982 &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/devguides/reporting/data/v1/property-id).
983 },
984 &quot;metrics&quot;: [ # The metrics requested and displayed.
985 { # The quantitative measurements of a report. For example, the metric `eventCount` is the total number of events. Requests are allowed up to 10 metrics.
986 &quot;expression&quot;: &quot;A String&quot;, # A mathematical expression for derived metrics. For example, the metric Event count per user is `eventCount/totalUsers`.
987 &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`.
988 &quot;name&quot;: &quot;A String&quot;, # The name of the metric. See the [API Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) for the list of metric names. 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`.
989 },
990 ],
991 &quot;dimensions&quot;: [ # The dimensions requested and displayed.
992 { # 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.
993 &quot;name&quot;: &quot;A String&quot;, # The name of the dimension. See the [API Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) for the list of dimension names. 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`.
994 &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).
995 &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).
996 &quot;dimensionNames&quot;: [ # Names of dimensions. The names must refer back to names in the dimensions field of the request.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800997 &quot;A String&quot;,
998 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800999 &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;.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001000 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001001 &quot;upperCase&quot;: { # Used to convert a dimension value to a single case. # Used to convert a dimension value to upper case.
1002 &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.
1003 },
1004 &quot;lowerCase&quot;: { # Used to convert a dimension value to a single case. # Used to convert a dimension value to lower case.
1005 &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.
1006 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001007 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001008 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001009 ],
1010 &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.
1011 &quot;cohortsRange&quot;: { # Describes date range for a cohort report. # The data ranges of cohorts.
1012 &quot;startOffset&quot;: 42, # For daily cohorts, this will be the start day offset. For weekly cohorts, this will be the week offset.
1013 &quot;endOffset&quot;: 42, # For daily cohorts, this will be the end day offset. For weekly cohorts, this will be the week offset.
1014 &quot;granularity&quot;: &quot;A String&quot;, # Reporting date range for each cohort is calculated based on these three fields.
1015 },
1016 &quot;cohorts&quot;: [ # The definition for the cohorts.
1017 { # 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.
1018 &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.
1019 &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.
1020 &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.
1021 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001022 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001023 &quot;dimension&quot;: &quot;A String&quot;, # The dimension used by cohort. Only supports `firstTouchDate` for retention report.
1024 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001025 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001026 ],
1027 &quot;cohortReportSettings&quot;: { # Settings of a cohort report. # Settings of a cohort report.
1028 &quot;accumulate&quot;: True or False, # If true, accumulates the result from first visit day to the end day. Not supported in `RunReportRequest`.
1029 },
1030 },
1031 &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](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
1032 &quot;orderBys&quot;: [ # Specifies how rows are ordered in the response.
1033 { # The sort options.
1034 &quot;dimension&quot;: { # Sorts by dimension values. # Sorts results by a dimension&#x27;s values.
1035 &quot;orderType&quot;: &quot;A String&quot;, # Controls the rule for dimension value ordering.
1036 &quot;dimensionName&quot;: &quot;A String&quot;, # A dimension name in the request to order by.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001037 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001038 &quot;desc&quot;: True or False, # If true, sorts by descending order.
1039 &quot;pivot&quot;: { # Sorts by a pivot column group. # Sorts results by a metric&#x27;s values within a pivot column group.
1040 &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.
1041 { # 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 ---------|----------|----------------|----------|----------------
1042 &quot;dimensionName&quot;: &quot;A String&quot;, # Must be a dimension name from the request.
1043 &quot;dimensionValue&quot;: &quot;A String&quot;, # Order by only when the named dimension is this value.
1044 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001045 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001046 &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.
1047 },
1048 &quot;metric&quot;: { # Sorts by metric values. # Sorts results by a metric&#x27;s values.
1049 &quot;metricName&quot;: &quot;A String&quot;, # A metric name in the request to order by.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001050 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001051 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001052 ],
1053 &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](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
1054 &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.
1055 &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.
1056 &quot;stringFilter&quot;: { # The filter for string # Strings related filter.
1057 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
1058 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
1059 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001060 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001061 &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.
1062 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
1063 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
1064 &quot;values&quot;: [ # The list of string values. Must be non-empty.
1065 &quot;A String&quot;,
1066 ],
1067 },
1068 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
1069 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
1070 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
1071 &quot;doubleValue&quot;: 3.14, # Double value
1072 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001073 },
1074 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001075 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name. Must be a name defined in dimensions or metrics.
1076 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
1077 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
1078 &quot;doubleValue&quot;: 3.14, # Double value
1079 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001080 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001081 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
1082 &quot;doubleValue&quot;: 3.14, # Double value
1083 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
1084 },
1085 },
1086 },
1087 &quot;andGroup&quot;: { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship.
1088 &quot;expressions&quot;: [ # A list of filter expressions.
1089 # Object with schema name: FilterExpression
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001090 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001091 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001092 &quot;notExpression&quot;: # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression.
1093 &quot;orGroup&quot;: { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship.
1094 &quot;expressions&quot;: [ # A list of filter expressions.
1095 # Object with schema name: FilterExpression
1096 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001097 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001098 },
1099 &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.
1100 { # A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges.
1101 &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.
1102 &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.
1103 &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.
1104 },
1105 ],
1106 &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).
1107 &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.
1108 &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.
1109 &quot;stringFilter&quot;: { # The filter for string # Strings related filter.
1110 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
1111 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
1112 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
1113 },
1114 &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.
1115 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
1116 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
1117 &quot;values&quot;: [ # The list of string values. Must be non-empty.
1118 &quot;A String&quot;,
1119 ],
1120 },
1121 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
1122 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
1123 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
1124 &quot;doubleValue&quot;: 3.14, # Double value
1125 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001126 },
1127 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001128 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name. Must be a name defined in dimensions or metrics.
1129 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
1130 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
1131 &quot;doubleValue&quot;: 3.14, # Double value
1132 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
1133 },
1134 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
1135 &quot;doubleValue&quot;: 3.14, # Double value
1136 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
1137 },
1138 },
1139 },
1140 &quot;andGroup&quot;: { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship.
1141 &quot;expressions&quot;: [ # A list of filter expressions.
1142 # Object with schema name: FilterExpression
1143 ],
1144 },
1145 &quot;notExpression&quot;: # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression.
1146 &quot;orGroup&quot;: { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship.
1147 &quot;expressions&quot;: [ # A list of filter expressions.
1148 # Object with schema name: FilterExpression
1149 ],
1150 },
1151 },
1152 &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.
1153}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001154
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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001164 &quot;metricHeaders&quot;: [ # Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.
1165 { # 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.
1166 &quot;name&quot;: &quot;A String&quot;, # The metric&#x27;s name.
1167 &quot;type&quot;: &quot;A String&quot;, # The metric&#x27;s data type.
1168 },
1169 ],
1170 &quot;maximums&quot;: [ # If requested, the maximum values of metrics.
1171 { # 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; } ] ```
1172 &quot;metricValues&quot;: [ # List of requested visible metric values.
1173 { # The value of a metric.
1174 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
1175 },
1176 ],
1177 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
1178 { # The value of a dimension.
1179 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
1180 },
1181 ],
1182 },
1183 ],
1184 &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](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
1185 &quot;rows&quot;: [ # Rows of dimension value combinations and metric values in the report.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001186 { # 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; } ] ```
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001187 &quot;metricValues&quot;: [ # List of requested visible metric values.
1188 { # The value of a metric.
1189 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
1190 },
1191 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001192 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
1193 { # The value of a dimension.
1194 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
1195 },
1196 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001197 },
1198 ],
1199 &quot;dimensionHeaders&quot;: [ # Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows.
1200 { # 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.
1201 &quot;name&quot;: &quot;A String&quot;, # The dimension&#x27;s name.
1202 },
1203 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001204 &quot;totals&quot;: [ # If requested, the totaled values of metrics.
1205 { # 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; } ] ```
1206 &quot;metricValues&quot;: [ # List of requested visible metric values.
1207 { # The value of a metric.
1208 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
1209 },
1210 ],
1211 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
1212 { # The value of a dimension.
1213 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
1214 },
1215 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001216 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001217 ],
1218 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001220 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001221 &quot;minimums&quot;: [ # If requested, the minimum values of metrics.
1222 { # 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; } ] ```
1223 &quot;metricValues&quot;: [ # List of requested visible metric values.
1224 { # The value of a metric.
1225 &quot;value&quot;: &quot;A String&quot;, # Measurement value. See MetricHeader for type.
1226 },
1227 ],
1228 &quot;dimensionValues&quot;: [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot.
1229 { # The value of a dimension.
1230 &quot;value&quot;: &quot;A String&quot;, # Value as a string if the dimension type is a string.
1231 },
1232 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001233 },
1234 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001235 &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.
1236 &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.
1237 &quot;consumed&quot;: 42, # Quota consumed by this request.
1238 &quot;remaining&quot;: 42, # Quota remaining after this request.
1239 },
1240 &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.
1241 &quot;consumed&quot;: 42, # Quota consumed by this request.
1242 &quot;remaining&quot;: 42, # Quota remaining after this request.
1243 },
1244 &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.
1245 &quot;consumed&quot;: 42, # Quota consumed by this request.
1246 &quot;remaining&quot;: 42, # Quota remaining after this request.
1247 },
1248 &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.
1249 &quot;consumed&quot;: 42, # Quota consumed by this request.
1250 &quot;remaining&quot;: 42, # Quota remaining after this request.
1251 },
1252 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001253 }</pre>
1254</div>
1255
1256</body></html>