1- // Copyright 2021 Google LLC
1+ // Copyright 2022 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -52,8 +52,8 @@ message MinuteRange {
5252 //
5353 // If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics
5454 // properties can request up to the last 30 minutes of event data
55- // (`startMinutesAgo <= 29`), and Google Analytics 360 properties can request
56- // up to the last 60 minutes of event data (`startMinutesAgo <= 59`).
55+ // (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to
56+ // the last 60 minutes of event data (`startMinutesAgo <= 59`).
5757 optional int32 start_minutes_ago = 1 ;
5858
5959 // The inclusive end minute for the query as a number of minutes before now.
@@ -63,8 +63,8 @@ message MinuteRange {
6363 //
6464 // If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics
6565 // properties can request any minute in the last 30 minutes of event data
66- // (`endMinutesAgo <= 29`), and Google Analytics 360 properties can request
67- // any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`).
66+ // (`endMinutesAgo <= 29`), and 360 Analytics properties can request any
67+ // minute in the last 60 minutes of event data (`endMinutesAgo <= 59`).
6868 optional int32 end_minutes_ago = 2 ;
6969
7070 // Assigns a name to this minute range. The dimension `dateRange` is valued to
@@ -76,7 +76,7 @@ message MinuteRange {
7676
7777// Dimensions are attributes of your data. For example, the dimension city
7878// indicates the city from which an event originates. Dimension values in report
79- // responses are strings; for example, city could be "Paris" or "New York".
79+ // responses are strings; for example, the city could be "Paris" or "New York".
8080// Requests are allowed up to 9 dimensions.
8181message Dimension {
8282 // The name of the dimension. See the [API
@@ -168,9 +168,8 @@ message Metric {
168168 bool invisible = 3 ;
169169}
170170
171- // To express dimension or metric filters.
172- // The fields in the same FilterExpression need to be either all dimensions or
173- // all metrics.
171+ // To express dimension or metric filters. The fields in the same
172+ // FilterExpression need to be either all dimensions or all metrics.
174173message FilterExpression {
175174 // Specify one type of filter expression for `FilterExpression`.
176175 oneof expr {
@@ -183,9 +182,8 @@ message FilterExpression {
183182 // The FilterExpression is NOT of not_expression.
184183 FilterExpression not_expression = 3 ;
185184
186- // A primitive filter.
187- // All fields in filter in same FilterExpression needs to be either all
188- // dimensions or metrics.
185+ // A primitive filter. In the same FilterExpression, all of the filter's
186+ // field names need to be either all dimensions or all metrics.
189187 Filter filter = 4 ;
190188 }
191189}
@@ -217,10 +215,10 @@ message Filter {
217215 // Contains the string value.
218216 CONTAINS = 4 ;
219217
220- // Full regular expression match with the string value.
218+ // Full match for the regular expression with the string value.
221219 FULL_REGEXP = 5 ;
222220
223- // Partial regular expression match with the string value.
221+ // Partial match for the regular expression with the string value.
224222 PARTIAL_REGEXP = 6 ;
225223 }
226224
@@ -283,8 +281,12 @@ message Filter {
283281 NumericValue to_value = 2 ;
284282 }
285283
286- // The dimension name or metric name. Must be a name defined in dimensions
287- // or metrics.
284+ // The dimension name or metric name.
285+ //
286+ // In most methods, dimensions & metrics can be used for the first time in
287+ // this field. However in a RunPivotReportRequest, this field must be
288+ // additionally specified by name in the RunPivotReportRequest's dimensions or
289+ // metrics.
288290 string field_name = 1 ;
289291
290292 // Specify one type of filter for `Filter`.
@@ -303,7 +305,9 @@ message Filter {
303305 }
304306}
305307
306- // The sort options.
308+ // Order bys define how rows will be sorted in the response. For example,
309+ // ordering rows by descending event count is one ordering, and ordering rows by
310+ // the event name string is a different ordering.
307311message OrderBy {
308312 // Sorts by metric values.
309313 message MetricOrderBy {
@@ -604,6 +608,16 @@ message ResponseMetaData {
604608
605609 // If empty reason is specified, the report is empty for this reason.
606610 optional string empty_reason = 7 ;
611+
612+ // If `subjectToThresholding` is true, this report is subject to thresholding
613+ // and only returns data that meets the minimum aggregation thresholds. It is
614+ // possible for a request to be subject to thresholding thresholding and no
615+ // data is absent from the report, and this happens when all data is above the
616+ // thresholds. To learn more, see [Data
617+ // thresholds](https://support.google.com/analytics/answer/9383630) and [About
618+ // Demographics and
619+ // Interests](https://support.google.com/analytics/answer/2799357).
620+ optional bool subject_to_thresholding = 8 ;
607621}
608622
609623// Describes a dimension column in the report. Dimensions requested in a report
@@ -732,8 +746,8 @@ message PropertyQuota {
732746
733747 // Standard Analytics Properties can use up to 5,000 tokens per hour;
734748 // Analytics 360 Properties can use 50,000 tokens per hour. An API request
735- // consumes a single number of tokens, and that number is deducted from both
736- // the hourly and daily quotas.
749+ // consumes a single number of tokens, and that number is deducted from all of
750+ // the hourly, daily, and per project hourly quotas.
737751 QuotaStatus tokens_per_hour = 2 ;
738752
739753 // Standard Analytics Properties can send up to 10 concurrent requests;
@@ -750,6 +764,14 @@ message PropertyQuota {
750764 // is individually counted for this quota if the request contains potentially
751765 // thresholded dimensions.
752766 QuotaStatus potentially_thresholded_requests_per_hour = 5 ;
767+
768+ // Analytics Properties can use up to 25% of their tokens per project per
769+ // hour. This amounts to standard Analytics Properties can use up to 1,250
770+ // tokens per project per hour, and Analytics 360 Properties can use 12,500
771+ // tokens per project per hour. An API request consumes a single number of
772+ // tokens, and that number is deducted from all of the hourly, daily, and per
773+ // project hourly quotas.
774+ QuotaStatus tokens_per_project_per_hour = 6 ;
753775}
754776
755777// Current state for a particular quota group.
0 commit comments