Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="analyticsdata_v1alpha.html">Google Analytics Data API</a> . <a href="analyticsdata_v1alpha.properties.html">properties</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#close">close()</a></code></p> |
| 79 | <p class="firstline">Close httplib2 connections.</p> |
| 80 | <p class="toc_element"> |
| 81 | <code><a href="#getMetadata">getMetadata(name, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Returns metadata for dimensions and metrics available in reporting methods. Used to explore the dimensions and metrics. In this method, a Google Analytics GA4 Property Identifier is specified in the request, and the metadata response includes Custom dimensions and metrics as well as Universal metadata. For example if a custom metric with parameter name `levels_unlocked` is registered to a property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata are dimensions and metrics applicable to any property such as `country` and `totalUsers`.</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#runRealtimeReport">runRealtimeReport(property, body=None, x__xgafv=None)</a></code></p> |
| 85 | <p class="firstline">The Google Analytics Realtime API returns a customized report of realtime event data for your property. These reports show events and usage from the last 30 minutes.</p> |
| 86 | <h3>Method Details</h3> |
| 87 | <div class="method"> |
| 88 | <code class="details" id="close">close()</code> |
| 89 | <pre>Close httplib2 connections.</pre> |
| 90 | </div> |
| 91 | |
| 92 | <div class="method"> |
| 93 | <code class="details" id="getMetadata">getMetadata(name, x__xgafv=None)</code> |
| 94 | <pre>Returns metadata for dimensions and metrics available in reporting methods. Used to explore the dimensions and metrics. In this method, a Google Analytics GA4 Property Identifier is specified in the request, and the metadata response includes Custom dimensions and metrics as well as Universal metadata. For example if a custom metric with parameter name `levels_unlocked` is registered to a property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata are dimensions and metrics applicable to any property such as `country` and `totalUsers`. |
| 95 | |
| 96 | Args: |
| 97 | name: string, Required. The resource name of the metadata to retrieve. This name field is specified in the URL path and not URL parameters. Property is a numeric Google Analytics GA4 Property identifier. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id). Example: properties/1234/metadata Set the Property ID to 0 for dimensions and metrics common to all properties. In this special mode, this method will not return custom dimensions and metrics. (required) |
| 98 | x__xgafv: string, V1 error format. |
| 99 | Allowed values |
| 100 | 1 - v1 error format |
| 101 | 2 - v2 error format |
| 102 | |
| 103 | Returns: |
| 104 | An object of the form: |
| 105 | |
| 106 | { # The dimensions and metrics currently accepted in reporting methods. |
| 107 | "dimensions": [ # The dimension descriptions. |
| 108 | { # Explains a dimension. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 109 | "deprecatedApiNames": [ # Still usable but deprecated names for this dimension. If populated, this dimension is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the dimension will be available only by `apiName`. |
| 110 | "A String", |
| 111 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 112 | "customDefinition": True or False, # True if the dimension is a custom dimension for this property. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 113 | "description": "A String", # Description of how this dimension is used and calculated. |
| 114 | "apiName": "A String", # This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For example, `eventName`. |
| 115 | "uiName": "A String", # This dimension's name within the Google Analytics user interface. For example, `Event name`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 116 | }, |
| 117 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 118 | "metrics": [ # The metric descriptions. |
| 119 | { # Explains a metric. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 120 | "apiName": "A String", # A metric name. Useable in [Metric](#Metric)'s `name`. For example, `eventCount`. |
| 121 | "uiName": "A String", # This metric's name within the Google Analytics user interface. For example, `Event count`. |
| 122 | "type": "A String", # The type of this metric. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 123 | "description": "A String", # Description of how this metric is used and calculated. |
| 124 | "deprecatedApiNames": [ # Still usable but deprecated names for this metric. If populated, this metric is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the metric will be available only by `apiName`. |
| 125 | "A String", |
| 126 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 127 | "expression": "A String", # The mathematical expression for this derived metric. Can be used in [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics are not expressions, and for non-expressions, this field is empty. |
| 128 | "customDefinition": True or False, # True if the metric is a custom metric for this property. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 129 | }, |
| 130 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 131 | "name": "A String", # Resource name of this metadata. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 132 | }</pre> |
| 133 | </div> |
| 134 | |
| 135 | <div class="method"> |
| 136 | <code class="details" id="runRealtimeReport">runRealtimeReport(property, body=None, x__xgafv=None)</code> |
| 137 | <pre>The Google Analytics Realtime API returns a customized report of realtime event data for your property. These reports show events and usage from the last 30 minutes. |
| 138 | |
| 139 | Args: |
| 140 | property: string, A Google Analytics GA4 property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id). Example: properties/1234 (required) |
| 141 | body: object, The request body. |
| 142 | The object takes the form of: |
| 143 | |
| 144 | { # The request to generate a realtime report. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 145 | "dimensionFilter": { # To express dimension or metric filters. The fields in the same FilterExpression need to be either all dimensions or all metrics. # The filter clause of dimensions. Dimensions must be requested to be used in this filter. Metrics cannot be used in this filter. |
| 146 | "notExpression": # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 147 | "filter": { # An expression to filter dimension or metric values. # A primitive filter. All fields in filter in same FilterExpression needs to be either all dimensions or metrics. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 148 | "betweenFilter": { # To express that the result needs to be between two numbers (inclusive). # A filter for two values. |
| 149 | "fromValue": { # To represent a number. # Begins with this number. |
| 150 | "doubleValue": 3.14, # Double value |
| 151 | "int64Value": "A String", # Integer value |
| 152 | }, |
| 153 | "toValue": { # To represent a number. # Ends with this number. |
| 154 | "doubleValue": 3.14, # Double value |
| 155 | "int64Value": "A String", # Integer value |
| 156 | }, |
| 157 | }, |
| 158 | "numericFilter": { # Filters for numeric or date values. # A filter for numeric or date values. |
| 159 | "value": { # To represent a number. # A numeric value or a date value. |
| 160 | "doubleValue": 3.14, # Double value |
| 161 | "int64Value": "A String", # Integer value |
| 162 | }, |
| 163 | "operation": "A String", # The operation type for this filter. |
| 164 | }, |
| 165 | "nullFilter": True or False, # A filter for null values. If True, a null dimension value is matched by this filter. Null filter is commonly used inside a NOT filter expression. For example, a NOT expression of a null filter removes rows when a dimension is null. |
| 166 | "stringFilter": { # The filter for string # Strings related filter. |
| 167 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 168 | "value": "A String", # The string value used for the matching. |
| 169 | "matchType": "A String", # The match type for this filter. |
| 170 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 171 | "inListFilter": { # The result needs to be in a list of string values. # A filter for in list values. |
| 172 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 173 | "values": [ # The list of string values. Must be non-empty. |
| 174 | "A String", |
| 175 | ], |
| 176 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 177 | "fieldName": "A String", # The dimension name or metric name. Must be a name defined in dimensions or metrics. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 178 | }, |
| 179 | "orGroup": { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship. |
| 180 | "expressions": [ # A list of filter expressions. |
| 181 | # Object with schema name: FilterExpression |
| 182 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 183 | }, |
| 184 | "andGroup": { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship. |
| 185 | "expressions": [ # A list of filter expressions. |
| 186 | # Object with schema name: FilterExpression |
| 187 | ], |
| 188 | }, |
| 189 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 190 | "dimensions": [ # The dimensions requested and displayed. |
| 191 | { # Dimensions are attributes of your data. For example, the dimension city indicates the city from which an event originates. Dimension values in report responses are strings; for example, city could be "Paris" or "New York". Requests are allowed up to 8 dimensions. |
| 192 | "name": "A String", # The name of the dimension. See the [API Dimensions](https://developers.google.com/analytics/trusted-testing/analytics-data/api-schema#dimensions) for the list of dimension names. If `dimensionExpression` is specified, `name` can be any string that you would like. For example if a `dimensionExpression` concatenates `country` and `city`, you could call that dimension `countryAndCity`. Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, `dimensionExpression`, and `pivots`. |
| 193 | "dimensionExpression": { # Used to express a dimension which is the result of a formula of multiple dimensions. Example usages: 1) lower_case(dimension) 2) concatenate(dimension1, symbol, dimension2). # One dimension can be the result of an expression of multiple dimensions. For example, dimension "country, city": concatenate(country, ", ", city). |
| 194 | "lowerCase": { # Used to convert a dimension value to a single case. # Used to convert a dimension value to lower case. |
| 195 | "dimensionName": "A String", # Name of a dimension. The name must refer back to a name in dimensions field of the request. |
| 196 | }, |
| 197 | "upperCase": { # Used to convert a dimension value to a single case. # Used to convert a dimension value to upper case. |
| 198 | "dimensionName": "A String", # Name of a dimension. The name must refer back to a name in dimensions field of the request. |
| 199 | }, |
| 200 | "concatenate": { # Used to combine dimension values to a single dimension. # Used to combine dimension values to a single dimension. For example, dimension "country, city": concatenate(country, ", ", city). |
| 201 | "dimensionNames": [ # Names of dimensions. The names must refer back to names in the dimensions field of the request. |
| 202 | "A String", |
| 203 | ], |
| 204 | "delimiter": "A String", # The delimiter placed between dimension names. Delimiters are often single characters such as "|" or "," but can be longer strings. If a dimension value contains the delimiter, both will be present in response with no distinction. For example if dimension 1 value = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the response will contain "US,FR,JP". |
| 205 | }, |
| 206 | }, |
| 207 | }, |
| 208 | ], |
| 209 | "metrics": [ # The metrics requested and displayed. |
| 210 | { # The quantitative measurements of a report. For example, the metric `eventCount` is the total number of events. Requests are allowed up to 10 metrics. |
| 211 | "name": "A String", # The name of the metric. See the [API Metrics](https://developers.google.com/analytics/trusted-testing/analytics-data/api-schema#metrics) for the list of metric names. If `expression` is specified, `name` can be any string that you would like. For example if `expression` is `screenPageViews/sessions`, you could call that metric's name = `viewsPerSession`. Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric `expression`. |
| 212 | "expression": "A String", # A mathematical expression for derived metrics. For example, the metric Event count per user is `eventCount/totalUsers`. |
| 213 | "invisible": True or False, # Indicates if a metric is invisible in the report response. If a metric is invisible, the metric will not produce a column in the response, but can be used in `metricFilter`, `orderBys`, or a metric `expression`. |
| 214 | }, |
| 215 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 216 | "metricAggregations": [ # Aggregation of metrics. Aggregated metric values will be shown in rows where the dimension_values are set to "RESERVED_(MetricAggregation)". |
| 217 | "A String", |
| 218 | ], |
| 219 | "returnPropertyQuota": True or False, # Toggles whether to return the current state of this Analytics Property's Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 220 | "orderBys": [ # Specifies how rows are ordered in the response. |
| 221 | { # The sort options. |
| 222 | "metric": { # Sorts by metric values. # Sorts results by a metric's values. |
| 223 | "metricName": "A String", # A metric name in the request to order by. |
| 224 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 225 | "pivot": { # Sorts by a pivot column group. # Sorts results by a metric's values within a pivot column group. |
| 226 | "metricName": "A String", # In the response to order by, order rows by this column. Must be a metric name from the request. |
| 227 | "pivotSelections": [ # Used to select a dimension name and value pivot. If multiple pivot selections are given, the sort occurs on rows where all pivot selection dimension name and value pairs match the row's dimension name and value pair. |
| 228 | { # A pair of dimension names and values. Rows with this dimension pivot pair are ordered by the metric's value. For example if pivots = {{"browser", "Chrome"}} and metric_name = "Sessions", then the rows will be sorted based on Sessions in Chrome. ---------|----------|----------------|----------|---------------- | Chrome | Chrome | Safari | Safari ---------|----------|----------------|----------|---------------- Country | Sessions | Pages/Sessions | Sessions | Pages/Sessions ---------|----------|----------------|----------|---------------- US | 2 | 2 | 3 | 1 ---------|----------|----------------|----------|---------------- Canada | 3 | 1 | 4 | 1 ---------|----------|----------------|----------|---------------- |
| 229 | "dimensionName": "A String", # Must be a dimension name from the request. |
| 230 | "dimensionValue": "A String", # Order by only when the named dimension is this value. |
| 231 | }, |
| 232 | ], |
| 233 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 234 | "desc": True or False, # If true, sorts by descending order. |
| 235 | "dimension": { # Sorts by dimension values. # Sorts results by a dimension's values. |
| 236 | "dimensionName": "A String", # A dimension name in the request to order by. |
| 237 | "orderType": "A String", # Controls the rule for dimension value ordering. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 238 | }, |
| 239 | }, |
| 240 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 241 | "metricFilter": { # To express dimension or metric filters. The fields in the same FilterExpression need to be either all dimensions or all metrics. # The filter clause of metrics. Applied at post aggregation phase, similar to SQL having-clause. Metrics must be requested to be used in this filter. Dimensions cannot be used in this filter. |
| 242 | "notExpression": # Object with schema name: FilterExpression # The FilterExpression is NOT of not_expression. |
| 243 | "filter": { # An expression to filter dimension or metric values. # A primitive filter. All fields in filter in same FilterExpression needs to be either all dimensions or metrics. |
| 244 | "betweenFilter": { # To express that the result needs to be between two numbers (inclusive). # A filter for two values. |
| 245 | "fromValue": { # To represent a number. # Begins with this number. |
| 246 | "doubleValue": 3.14, # Double value |
| 247 | "int64Value": "A String", # Integer value |
| 248 | }, |
| 249 | "toValue": { # To represent a number. # Ends with this number. |
| 250 | "doubleValue": 3.14, # Double value |
| 251 | "int64Value": "A String", # Integer value |
| 252 | }, |
| 253 | }, |
| 254 | "numericFilter": { # Filters for numeric or date values. # A filter for numeric or date values. |
| 255 | "value": { # To represent a number. # A numeric value or a date value. |
| 256 | "doubleValue": 3.14, # Double value |
| 257 | "int64Value": "A String", # Integer value |
| 258 | }, |
| 259 | "operation": "A String", # The operation type for this filter. |
| 260 | }, |
| 261 | "nullFilter": True or False, # A filter for null values. If True, a null dimension value is matched by this filter. Null filter is commonly used inside a NOT filter expression. For example, a NOT expression of a null filter removes rows when a dimension is null. |
| 262 | "stringFilter": { # The filter for string # Strings related filter. |
| 263 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 264 | "value": "A String", # The string value used for the matching. |
| 265 | "matchType": "A String", # The match type for this filter. |
| 266 | }, |
| 267 | "inListFilter": { # The result needs to be in a list of string values. # A filter for in list values. |
| 268 | "caseSensitive": True or False, # If true, the string value is case sensitive. |
| 269 | "values": [ # The list of string values. Must be non-empty. |
| 270 | "A String", |
| 271 | ], |
| 272 | }, |
| 273 | "fieldName": "A String", # The dimension name or metric name. Must be a name defined in dimensions or metrics. |
| 274 | }, |
| 275 | "orGroup": { # A list of filter expressions. # The FilterExpressions in or_group have an OR relationship. |
| 276 | "expressions": [ # A list of filter expressions. |
| 277 | # Object with schema name: FilterExpression |
| 278 | ], |
| 279 | }, |
| 280 | "andGroup": { # A list of filter expressions. # The FilterExpressions in and_group have an AND relationship. |
| 281 | "expressions": [ # A list of filter expressions. |
| 282 | # Object with schema name: FilterExpression |
| 283 | ], |
| 284 | }, |
| 285 | }, |
| 286 | "limit": "A String", # The number of rows to return. If unspecified, 10 rows are returned. If -1, all rows are returned. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 287 | } |
| 288 | |
| 289 | x__xgafv: string, V1 error format. |
| 290 | Allowed values |
| 291 | 1 - v1 error format |
| 292 | 2 - v2 error format |
| 293 | |
| 294 | Returns: |
| 295 | An object of the form: |
| 296 | |
| 297 | { # The response realtime report table corresponding to a request. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 298 | "dimensionHeaders": [ # Describes dimension columns. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows. |
| 299 | { # 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. |
| 300 | "name": "A String", # The dimension's name. |
| 301 | }, |
| 302 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 303 | "propertyQuota": { # Current state of all quotas for this Analytics Property. If any quota for a property is exhausted, all requests to that property will return Resource Exhausted errors. # This Analytics Property's Realtime quota state including this request. |
| 304 | "tokensPerHour": { # Current state for a particular quota group. # Standard Analytics Properties can use up to 5,000 tokens per day; Analytics 360 Properties can use 50,000 tokens per day. An API request consumes a single number of tokens, and that number is deducted from both the hourly and daily quotas. |
| 305 | "consumed": 42, # Quota consumed by this request. |
| 306 | "remaining": 42, # Quota remaining after this request. |
| 307 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 308 | "concurrentRequests": { # Current state for a particular quota group. # Standard Analytics Properties can send up to 10 concurrent requests; Analytics 360 Properties can use up to 50 concurrent requests. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 309 | "consumed": 42, # Quota consumed by this request. |
| 310 | "remaining": 42, # Quota remaining after this request. |
| 311 | }, |
| 312 | "serverErrorsPerProjectPerHour": { # Current state for a particular quota group. # Standard Analytics Properties and cloud project pairs can have up to 10 server errors per hour; Analytics 360 Properties and cloud project pairs can have up to 50 server errors per hour. |
| 313 | "consumed": 42, # Quota consumed by this request. |
| 314 | "remaining": 42, # Quota remaining after this request. |
| 315 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 316 | "tokensPerDay": { # Current state for a particular quota group. # Standard Analytics Properties can use up to 25,000 tokens per day; Analytics 360 Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 317 | "consumed": 42, # Quota consumed by this request. |
| 318 | "remaining": 42, # Quota remaining after this request. |
| 319 | }, |
| 320 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 321 | "rows": [ # Rows of dimension value combinations and metric values in the report. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 322 | { # Report data for each row. For example if RunReportRequest contains: ```none "dimensions": [ { "name": "eventName" }, { "name": "countryId" } ], "metrics": [ { "name": "eventCount" } ] ``` One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and 15 as the eventCount, would be: ```none "dimensionValues": [ { "value": "in_app_purchase" }, { "value": "JP" } ], "metricValues": [ { "value": "15" } ] ``` |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 323 | "metricValues": [ # List of requested visible metric values. |
| 324 | { # The value of a metric. |
| 325 | "value": "A String", # Measurement value. See MetricHeader for type. |
| 326 | }, |
| 327 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 328 | "dimensionValues": [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. |
| 329 | { # The value of a dimension. |
| 330 | "value": "A String", # Value as a string if the dimension type is a string. |
| 331 | }, |
| 332 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 333 | }, |
| 334 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 335 | "minimums": [ # If requested, the minimum values of metrics. |
| 336 | { # Report data for each row. For example if RunReportRequest contains: ```none "dimensions": [ { "name": "eventName" }, { "name": "countryId" } ], "metrics": [ { "name": "eventCount" } ] ``` One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and 15 as the eventCount, would be: ```none "dimensionValues": [ { "value": "in_app_purchase" }, { "value": "JP" } ], "metricValues": [ { "value": "15" } ] ``` |
| 337 | "metricValues": [ # List of requested visible metric values. |
| 338 | { # The value of a metric. |
| 339 | "value": "A String", # Measurement value. See MetricHeader for type. |
| 340 | }, |
| 341 | ], |
| 342 | "dimensionValues": [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. |
| 343 | { # The value of a dimension. |
| 344 | "value": "A String", # Value as a string if the dimension type is a string. |
| 345 | }, |
| 346 | ], |
| 347 | }, |
| 348 | ], |
| 349 | "rowCount": 42, # The total number of rows in the query result, regardless of the number of rows returned in the response. For example if a query returns 175 rows and includes limit = 50 in the API request, the response will contain row_count = 175 but only 50 rows. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 350 | "metricHeaders": [ # Describes metric columns. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows. |
| 351 | { # 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. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 352 | "name": "A String", # The metric's name. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 353 | "type": "A String", # The metric's data type. |
| 354 | }, |
| 355 | ], |
| 356 | "totals": [ # If requested, the totaled values of metrics. |
| 357 | { # Report data for each row. For example if RunReportRequest contains: ```none "dimensions": [ { "name": "eventName" }, { "name": "countryId" } ], "metrics": [ { "name": "eventCount" } ] ``` One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and 15 as the eventCount, would be: ```none "dimensionValues": [ { "value": "in_app_purchase" }, { "value": "JP" } ], "metricValues": [ { "value": "15" } ] ``` |
| 358 | "metricValues": [ # List of requested visible metric values. |
| 359 | { # The value of a metric. |
| 360 | "value": "A String", # Measurement value. See MetricHeader for type. |
| 361 | }, |
| 362 | ], |
| 363 | "dimensionValues": [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. |
| 364 | { # The value of a dimension. |
| 365 | "value": "A String", # Value as a string if the dimension type is a string. |
| 366 | }, |
| 367 | ], |
| 368 | }, |
| 369 | ], |
| 370 | "maximums": [ # If requested, the maximum values of metrics. |
| 371 | { # Report data for each row. For example if RunReportRequest contains: ```none "dimensions": [ { "name": "eventName" }, { "name": "countryId" } ], "metrics": [ { "name": "eventCount" } ] ``` One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and 15 as the eventCount, would be: ```none "dimensionValues": [ { "value": "in_app_purchase" }, { "value": "JP" } ], "metricValues": [ { "value": "15" } ] ``` |
| 372 | "metricValues": [ # List of requested visible metric values. |
| 373 | { # The value of a metric. |
| 374 | "value": "A String", # Measurement value. See MetricHeader for type. |
| 375 | }, |
| 376 | ], |
| 377 | "dimensionValues": [ # List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. |
| 378 | { # The value of a dimension. |
| 379 | "value": "A String", # Value as a string if the dimension type is a string. |
| 380 | }, |
| 381 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 382 | }, |
| 383 | ], |
| 384 | }</pre> |
| 385 | </div> |
| 386 | |
| 387 | </body></html> |