Skip to content

Commit 7b6975c

Browse files
Google APIscopybara-github
authored andcommitted
feat: add SamplingLevel type to Data API v1alpha
feat: add `sampling_level` to the `ReportDefinition` type PiperOrigin-RevId: 686560382
1 parent 80a2abb commit 7b6975c

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

google/analytics/data/v1alpha/analytics_data_api.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,10 @@ message ReportTask {
10861086
// the `eventName` dimension and `eventCount` metric will not have a row
10871087
// containing eventName: "purchase" and eventCount: 0.
10881088
bool keep_empty_rows = 13 [(google.api.field_behavior) = OPTIONAL];
1089+
1090+
// Optional. The report's sampling level.
1091+
optional SamplingLevel sampling_level = 14
1092+
[(google.api.field_behavior) = OPTIONAL];
10891093
}
10901094

10911095
// The report metadata for a specific report task.

google/analytics/data/v1alpha/data.proto

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,3 +1573,23 @@ enum RestrictedMetricType {
15731573
// Revenue metrics such as `purchaseRevenue`.
15741574
REVENUE_DATA = 2;
15751575
}
1576+
1577+
// Categories of sampling levels for the requests.
1578+
enum SamplingLevel {
1579+
// Unspecified type.
1580+
SAMPLING_LEVEL_UNSPECIFIED = 0;
1581+
1582+
// Applies a sampling level of 10 million to standard properties and
1583+
// 100 million to Google Analytics 360 properties.
1584+
LOW = 1;
1585+
1586+
// Exclusive to Google Analytics 360 properties with a sampling level of 1
1587+
// billion.
1588+
MEDIUM = 2;
1589+
1590+
// Exclusive to Google Analytics 360 properties. Unsampled explorations are
1591+
// more accurate and can reveal insights that aren't visible in standard
1592+
// explorations. To learn more, see
1593+
// https://support.google.com/analytics/answer/10896953.
1594+
UNSAMPLED = 3;
1595+
}

0 commit comments

Comments
 (0)