Skip to content

Commit 3a6c7dc

Browse files
Google APIscopybara-github
authored andcommitted
feat: add EmptyFilter type to the Data API v1beta
feat: add the `empty_filter` field to the `Filter` type docs: update documentation for the`RunReport` method docs: remove all references to 'GA4' in documentation PiperOrigin-RevId: 698517184
1 parent e697663 commit 3a6c7dc

2 files changed

Lines changed: 35 additions & 23 deletions

File tree

google/analytics/data/v1beta/analytics_data_api.proto

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ service BetaAnalyticsData {
7171
}
7272

7373
// Returns multiple reports in a batch. All reports must be for the same
74-
// GA4 Property.
74+
// Google Analytics property.
7575
rpc BatchRunReports(BatchRunReportsRequest)
7676
returns (BatchRunReportsResponse) {
7777
option (google.api.http) = {
@@ -81,7 +81,7 @@ service BetaAnalyticsData {
8181
}
8282

8383
// Returns multiple pivot reports in a batch. All reports must be for the same
84-
// GA4 Property.
84+
// Google Analytics property.
8585
rpc BatchRunPivotReports(BatchRunPivotReportsRequest)
8686
returns (BatchRunPivotReportsResponse) {
8787
option (google.api.http) = {
@@ -92,7 +92,7 @@ service BetaAnalyticsData {
9292

9393
// Returns metadata for dimensions and metrics available in reporting methods.
9494
// Used to explore the dimensions and metrics. In this method, a Google
95-
// Analytics GA4 Property Identifier is specified in the request, and
95+
// Analytics property identifier is specified in the request, and
9696
// the metadata response includes Custom dimensions and metrics as well as
9797
// Universal metadata.
9898
//
@@ -256,7 +256,7 @@ service BetaAnalyticsData {
256256
// report; fields shared with the `runReport` request should be the same values
257257
// as in your `runReport` request.
258258
message CheckCompatibilityRequest {
259-
// A Google Analytics GA4 property identifier whose events are tracked. To
259+
// A Google Analytics property identifier whose events are tracked. To
260260
// learn more, see [where to find your Property
261261
// ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
262262
// `property` should be the same value as in your `runReport` request.
@@ -318,7 +318,7 @@ message Metadata {
318318

319319
// The request to generate a report.
320320
message RunReportRequest {
321-
// A Google Analytics GA4 property identifier whose events are tracked.
321+
// A Google Analytics property identifier whose events are tracked.
322322
// Specified in the URL path and not the body. To learn more, see [where to
323323
// find your Property
324324
// ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
@@ -378,9 +378,13 @@ message RunReportRequest {
378378

379379
// Aggregation of metrics. Aggregated metric values will be shown in rows
380380
// where the dimension_values are set to "RESERVED_(MetricAggregation)".
381+
// Aggregates including both comparisons and multiple date ranges will
382+
// be aggregated based on the date ranges.
381383
repeated MetricAggregation metric_aggregations = 9;
382384

383385
// Specifies how rows are ordered in the response.
386+
// Requests including both comparisons and multiple date ranges will
387+
// have order bys applied on the comparisons.
384388
repeated OrderBy order_bys = 10;
385389

386390
// A currency code in ISO4217 format, such as "AED", "USD", "JPY".
@@ -396,15 +400,15 @@ message RunReportRequest {
396400
// removed by a filter.
397401
//
398402
// Regardless of this `keep_empty_rows` setting, only data recorded by the
399-
// Google Analytics (GA4) property can be displayed in a report.
403+
// Google Analytics property can be displayed in a report.
400404
//
401405
// For example if a property never logs a `purchase` event, then a query for
402406
// the `eventName` dimension and `eventCount` metric will not have a row
403407
// eventName: "purchase" and eventCount: 0.
404408
bool keep_empty_rows = 13;
405409

406-
// Toggles whether to return the current state of this Analytics Property's
407-
// quota. Quota is returned in [PropertyQuota](#PropertyQuota).
410+
// Toggles whether to return the current state of this Google Analytics
411+
// property's quota. Quota is returned in [PropertyQuota](#PropertyQuota).
408412
bool return_property_quota = 14;
409413

410414
// Optional. The configuration of comparisons requested and displayed. The
@@ -448,7 +452,7 @@ message RunReportResponse {
448452
// Metadata for the report.
449453
ResponseMetaData metadata = 8;
450454

451-
// This Analytics Property's quota state including this request.
455+
// This Google Analytics property's quota state including this request.
452456
PropertyQuota property_quota = 9;
453457

454458
// Identifies what kind of resource this message is. This `kind` is always the
@@ -459,7 +463,7 @@ message RunReportResponse {
459463

460464
// The request to generate a pivot report.
461465
message RunPivotReportRequest {
462-
// A Google Analytics GA4 property identifier whose events are tracked.
466+
// A Google Analytics property identifier whose events are tracked.
463467
// Specified in the URL path and not the body. To learn more, see [where to
464468
// find your Property
465469
// ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
@@ -513,15 +517,15 @@ message RunPivotReportRequest {
513517
// removed by a filter.
514518
//
515519
// Regardless of this `keep_empty_rows` setting, only data recorded by the
516-
// Google Analytics (GA4) property can be displayed in a report.
520+
// Google Analytics property can be displayed in a report.
517521
//
518522
// For example if a property never logs a `purchase` event, then a query for
519523
// the `eventName` dimension and `eventCount` metric will not have a row
520524
// eventName: "purchase" and eventCount: 0.
521525
bool keep_empty_rows = 10;
522526

523-
// Toggles whether to return the current state of this Analytics Property's
524-
// quota. Quota is returned in [PropertyQuota](#PropertyQuota).
527+
// Toggles whether to return the current state of this Google Analytics
528+
// property's quota. Quota is returned in [PropertyQuota](#PropertyQuota).
525529
bool return_property_quota = 11;
526530

527531
// Optional. The configuration of comparisons requested and displayed. The
@@ -590,7 +594,7 @@ message RunPivotReportResponse {
590594
// Metadata for the report.
591595
ResponseMetaData metadata = 6;
592596

593-
// This Analytics Property's quota state including this request.
597+
// This Google Analytics property's quota state including this request.
594598
PropertyQuota property_quota = 7;
595599

596600
// Identifies what kind of resource this message is. This `kind` is always the
@@ -601,7 +605,7 @@ message RunPivotReportResponse {
601605

602606
// The batch request containing multiple report requests.
603607
message BatchRunReportsRequest {
604-
// A Google Analytics GA4 property identifier whose events are tracked.
608+
// A Google Analytics property identifier whose events are tracked.
605609
// Specified in the URL path and not the body. To learn more, see [where to
606610
// find your Property
607611
// ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
@@ -630,7 +634,7 @@ message BatchRunReportsResponse {
630634

631635
// The batch request containing multiple pivot report requests.
632636
message BatchRunPivotReportsRequest {
633-
// A Google Analytics GA4 property identifier whose events are tracked.
637+
// A Google Analytics property identifier whose events are tracked.
634638
// Specified in the URL path and not the body. To learn more, see [where to
635639
// find your Property
636640
// ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
@@ -661,7 +665,7 @@ message BatchRunPivotReportsResponse {
661665
message GetMetadataRequest {
662666
// Required. The resource name of the metadata to retrieve. This name field is
663667
// specified in the URL path and not URL parameters. Property is a numeric
664-
// Google Analytics GA4 Property identifier. To learn more, see [where to find
668+
// Google Analytics property identifier. To learn more, see [where to find
665669
// your Property
666670
// ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
667671
//
@@ -680,7 +684,7 @@ message GetMetadataRequest {
680684

681685
// The request to generate a realtime report.
682686
message RunRealtimeReportRequest {
683-
// A Google Analytics GA4 property identifier whose events are tracked.
687+
// A Google Analytics property identifier whose events are tracked.
684688
// Specified in the URL path and not the body. To learn more, see [where to
685689
// find your Property
686690
// ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
@@ -719,8 +723,9 @@ message RunRealtimeReportRequest {
719723
// Specifies how rows are ordered in the response.
720724
repeated OrderBy order_bys = 8;
721725

722-
// Toggles whether to return the current state of this Analytics Property's
723-
// Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota).
726+
// Toggles whether to return the current state of this Google Analytics
727+
// property's Realtime quota. Quota is returned in
728+
// [PropertyQuota](#PropertyQuota).
724729
bool return_property_quota = 9;
725730

726731
// The minute ranges of event data to read. If unspecified, one minute range
@@ -760,7 +765,8 @@ message RunRealtimeReportResponse {
760765
// only 50 rows.
761766
int32 row_count = 7;
762767

763-
// This Analytics Property's Realtime quota state including this request.
768+
// This Google Analytics property's Realtime quota state including this
769+
// request.
764770
PropertyQuota property_quota = 8;
765771

766772
// Identifies what kind of resource this message is. This `kind` is always the

google/analytics/data/v1beta/data.proto

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@ message Filter {
318318
NumericValue to_value = 2;
319319
}
320320

321+
// Filter for empty values.
322+
message EmptyFilter {}
323+
321324
// The dimension name or metric name.
322325
//
323326
// In most methods, dimensions & metrics can be used for the first time in
@@ -339,6 +342,9 @@ message Filter {
339342

340343
// A filter for two values.
341344
BetweenFilter between_filter = 6;
345+
346+
// A filter for empty values such as "(not set)" and "" values.
347+
EmptyFilter empty_filter = 8;
342348
}
343349
}
344350

@@ -1048,8 +1054,8 @@ enum MetricType {
10481054
TYPE_KILOMETERS = 13;
10491055
}
10501056

1051-
// Categories of data that you may be restricted from viewing on certain GA4
1052-
// properties.
1057+
// Categories of data that you may be restricted from viewing on certain
1058+
// Google Analytics properties.
10531059
enum RestrictedMetricType {
10541060
// Unspecified type.
10551061
RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0;

0 commit comments

Comments
 (0)