1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 Google LLC
2
2
//
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
@@ -66,7 +66,8 @@ service BetaAnalyticsData {
66
66
67
67
// Returns multiple reports in a batch. All reports must be for the same
68
68
// GA4 Property.
69
- rpc BatchRunReports (BatchRunReportsRequest ) returns (BatchRunReportsResponse ) {
69
+ rpc BatchRunReports (BatchRunReportsRequest )
70
+ returns (BatchRunReportsResponse ) {
70
71
option (google.api.http ) = {
71
72
post : "/v1beta/{property=properties/*}:batchRunReports"
72
73
body : "*"
@@ -75,7 +76,8 @@ service BetaAnalyticsData {
75
76
76
77
// Returns multiple pivot reports in a batch. All reports must be for the same
77
78
// GA4 Property.
78
- rpc BatchRunPivotReports (BatchRunPivotReportsRequest ) returns (BatchRunPivotReportsResponse ) {
79
+ rpc BatchRunPivotReports (BatchRunPivotReportsRequest )
80
+ returns (BatchRunPivotReportsResponse ) {
79
81
option (google.api.http ) = {
80
82
post : "/v1beta/{property=properties/*}:batchRunPivotReports"
81
83
8000
body : "*"
@@ -108,7 +110,8 @@ service BetaAnalyticsData {
108
110
// For a guide to constructing realtime requests & understanding responses,
109
111
// see [Creating a Realtime
110
112
// Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).
111
- rpc RunRealtimeReport (RunRealtimeReportRequest ) returns (RunRealtimeReportResponse ) {
113
+ rpc RunRealtimeReport (RunRealtimeReportRequest )
114
+ returns (RunRealtimeReportResponse ) {
112
115
option (google.api.http ) = {
113
116
post : "/v1beta/{property=properties/*}:runRealtimeReport"
114
117
body : "*"
@@ -125,7 +128,8 @@ service BetaAnalyticsData {
125
128
//
126
129
// The Realtime and Core reports have different compatibility rules. This
127
130
// method checks compatibility for Core reports.
128
- rpc CheckCompatibility (CheckCompatibilityRequest ) returns (CheckCompatibilityResponse ) {
131
+ rpc CheckCompatibility (CheckCompatibilityRequest )
132
+ returns (CheckCompatibilityResponse ) {
129
133
option (google.api.http ) = {
130
134
post : "/v1beta/{property=properties/*}:checkCompatibility"
131
135
body : "*"
@@ -144,10 +148,6 @@ message CheckCompatibilityRequest {
144
148
// `property` should be the same value as in your `runReport` request.
145
149
//
146
150
// Example: properties/1234
147
- //
148
- // Set the Property ID to 0 for compatibility checking on dimensions and
149
- // metrics common to all properties. In this special mode, this method will
150
- // not return custom dimensions and metrics.
151
151
string property = 1 ;
152
152
153
153
// The dimensions in this report. `dimensions` should be the same value as in
@@ -223,7 +223,7 @@ message RunReportRequest {
223
223
// must be unspecified.
224
224
repeated DateRange date_ranges = 4 ;
225
225
226
- // Dimension filters allow you to ask for only specific dimension values in
226
+ // Dimension filters let you ask for only specific dimension values in
227
227
// the report. To learn more, see [Fundamentals of Dimension
228
228
// Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
229
229
// for examples. Metrics cannot be used in this filter.
@@ -245,7 +245,7 @@ message RunReportRequest {
245
245
int64 offset = 7 ;
246
246
247
247
// The number of rows to return. If unspecified, 10,000 rows are returned. The
248
- // API returns a maximum of 100 ,000 rows per request, no matter how many you
248
+ // API returns a maximum of 250 ,000 rows per request, no matter how many you
249
249
// ask for. `limit` must be positive.
250
250
//
251
251
// The API can also return fewer rows than the requested `limit`, if there
@@ -276,6 +276,13 @@ message RunReportRequest {
276
276
// If false or unspecified, each row with all metrics equal to 0 will not be
277
277
// returned. If true, these rows will be returned if they are not separately
278
278
// removed by a filter.
279
+ //
280
+ // Regardless of this `keep_empty_rows` setting, only data recorded by the
281
+ // Google Analytics (GA4) property can be displayed in a report.
282
+ //
283
+ // For example if a property never logs a `purchase` event, then a query for
284
+ // the `eventName` dimension and `eventCount` metric will not have a row
285
+ // eventName: "purchase" and eventCount: 0.
279
286
bool keep_empty_rows = 13 ;
280
287
281
288
// Toggles whether to return the current state of this Analytics Property's
@@ -381,6 +388,13 @@ message RunPivotReportRequest {
381
388
// If false or unspecified, each row with all metrics equal to 0 will not be
382
389
// returned. If true, these rows will be returned if they are not separately
383
390
// removed by a filter.
391
+ //
392
+ // Regardless of this `keep_empty_rows` setting, only data recorded by the
393
+ // Google Analytics (GA4) property can be displayed in a report.
394
+ //
395
+ // For example if a property never logs a `purchase` event, then a query for
396
+ // the `eventName` dimension and `eventCount` metric will not have a row
397
+ // eventName: "purchase" and eventCount: 0.
384
398
bool keep_empty_rows = 10 ;
385
399
386
400
// Toggles whether to return the current state of this Analytics Property's
@@ -560,7 +574,7 @@ message RunRealtimeReportRequest {
560
574
FilterExpression metric_filter = 5 ;
561
575
562
576
// The number of rows to return. If unspecified, 10,000 rows are returned. The
563
- // API returns a maximum of 100 ,000 rows per request, no matter how many you
577
+ // API returns a maximum of 250 ,000 rows per request, no matter how many you
564
578
// ask for. `limit` must be positive.
565
579
//
566<
1E80
/code>
580
// The API can also return fewer rows than the requested `limit`, if there
0 commit comments