google-analytics-data-v1alpha 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46a4a35fe96d97d0e55469823d63d565fad0d23c91ec695e4900dd026dac33c2
4
- data.tar.gz: 4fb8b75aa1d11f18617f9667010111ac548a77cd304e1d9e4522e9f3e395138d
3
+ metadata.gz: 0df7ce139a07a0a04c8ab6eac58e9a9133854397c3341ffd7c4d92e72cc51a44
4
+ data.tar.gz: 1ae183bfc5af5c2860c392225a0730fc7b7e639b8c4e988f64ab149605b93c32
5
5
  SHA512:
6
- metadata.gz: 88e10c1f978a46c7e3417bc54941af2a6dc1d8c04b01ec296dc0b868f01b606dfa7c37206a2ce71a12051364c43650e78e47e7863042d88552ccf375a0683771
7
- data.tar.gz: ae84293ce9806270947f602b06f98b16cfae7435ad075a7672ef7de96e111cda55793e309971c7c79c5a4bb9e2aad2af593625f59691d4356b31f7e3d37a1ccc
6
+ metadata.gz: a4ddb36c9b77fa122d64ad7ee2f8dad8c417fded8388d3baf6fb53f442e136d4670d94483677acc070ba291bd16f3fbf0a1e0b137222be13c857d7d1208324f9
7
+ data.tar.gz: de5acb5b7ea89b169969ad9cbc0e49c0a6dfa8002ae25834bbe8a135a73ff976c8288d3b3765643df8408ce1c7478653fb2e6928389ee74c46a31343c75cd4d6
@@ -201,13 +201,13 @@ module Google
201
201
  # The row count of the start row. The first row is counted as row 0.
202
202
  #
203
203
  # To learn more about this pagination parameter, see
204
- # [Pagination](basics#pagination).
204
+ # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
205
205
  # @param limit [::Integer]
206
206
  # The number of rows to return. If unspecified, 10 rows are returned. If
207
207
  # -1, all rows are returned.
208
208
  #
209
209
  # To learn more about this pagination parameter, see
210
- # [Pagination](basics#pagination).
210
+ # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
211
211
  # @param metric_aggregations [::Array<::Google::Analytics::Data::V1alpha::MetricAggregation>]
212
212
  # Aggregation of metrics. Aggregated metric values will be shown in rows
213
213
  # where the dimension_values are set to "RESERVED_(MetricAggregation)".
@@ -540,7 +540,7 @@ module Google
540
540
  # specified in the URL path and not URL parameters. Property is a numeric
541
541
  # Google Analytics GA4 Property identifier. To learn more, see [where to find
542
542
  # your Property
543
- # ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id).
543
+ # ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
544
544
  #
545
545
  # Example: properties/1234/metadata
546
546
  #
@@ -617,7 +617,7 @@ module Google
617
617
  # A Google Analytics GA4 property identifier whose events are tracked.
618
618
  # Specified in the URL path and not the body. To learn more, see [where to
619
619
  # find your Property
620
- # ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id).
620
+ # ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
621
621
  #
622
622
  # Example: properties/1234
623
623
  # @param dimensions [::Array<::Google::Analytics::Data::V1alpha::Dimension, ::Hash>]
@@ -137,9 +137,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
137
137
  optional :dimension, :string, 2
138
138
  optional :date_range, :message, 3, "google.analytics.data.v1alpha.DateRange"
139
139
  end
140
- add_message "google.analytics.data.v1alpha.CohortReportSettings" do
141
- optional :accumulate, :bool, 1
142
- end
143
140
  add_message "google.analytics.data.v1alpha.CohortsRange" do
144
141
  optional :granularity, :enum, 1, "google.analytics.data.v1alpha.CohortsRange.Granularity"
145
142
  optional :start_offset, :int32, 2
@@ -151,6 +148,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
151
148
  value :WEEKLY, 2
152
149
  value :MONTHLY, 3
153
150
  end
151
+ add_message "google.analytics.data.v1alpha.CohortReportSettings" do
152
+ optional :accumulate, :bool, 1
153
+ end
154
154
  add_message "google.analytics.data.v1alpha.ResponseMetaData" do
155
155
  optional :data_loss_from_other_row, :bool, 3
156
156
  end
@@ -203,6 +203,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
203
203
  optional :ui_name, :string, 2
204
204
  optional :description, :string, 3
205
205
  repeated :deprecated_api_names, :string, 4
206
+ optional :custom_definition, :bool, 5
206
207
  end
207
208
  add_message "google.analytics.data.v1alpha.MetricMetadata" do
208
209
  optional :api_name, :string, 1
@@ -211,6 +212,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
211
212
  repeated :deprecated_api_names, :string, 4
212
213
  optional :type, :enum, 5, "google.analytics.data.v1alpha.MetricType"
213
214
  optional :expression, :string, 6
215
+ optional :custom_definition, :bool, 7
214
216
  end
215
217
  add_enum "google.analytics.data.v1alpha.MetricAggregation" do
216
218
  value :METRIC_AGGREGATION_UNSPECIFIED, 0
@@ -266,9 +268,9 @@ module Google
266
268
  Pivot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.Pivot").msgclass
267
269
  CohortSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.CohortSpec").msgclass
268
270
  Cohort = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.Cohort").msgclass
269
- CohortReportSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.CohortReportSettings").msgclass
270
271
  CohortsRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.CohortsRange").msgclass
271
272
  CohortsRange::Granularity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.CohortsRange.Granularity").enummodule
273
+ CohortReportSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.CohortReportSettings").msgclass
272
274
  ResponseMetaData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.ResponseMetaData").msgclass
273
275
  DimensionHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.DimensionHeader").msgclass
274
276
  MetricHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1alpha.MetricHeader").msgclass
@@ -21,7 +21,7 @@ module Google
21
21
  module Analytics
22
22
  module Data
23
23
  module V1alpha
24
- VERSION = "0.5.0"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -59,14 +59,14 @@ module Google
59
59
  # The row count of the start row. The first row is counted as row 0.
60
60
  #
61
61
  # To learn more about this pagination parameter, see
62
- # [Pagination](basics#pagination).
62
+ # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
63
63
  # @!attribute [rw] limit
64
64
  # @return [::Integer]
65
65
  # The number of rows to return. If unspecified, 10 rows are returned. If
66
66
  # -1, all rows are returned.
67
67
  #
68
68
  # To learn more about this pagination parameter, see
69
- # [Pagination](basics#pagination).
69
+ # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
70
70
  # @!attribute [rw] metric_aggregations
71
71
  # @return [::Array<::Google::Analytics::Data::V1alpha::MetricAggregation>]
72
72
  # Aggregation of metrics. Aggregated metric values will be shown in rows
@@ -134,7 +134,7 @@ module Google
134
134
  # = 175 but only 50 rows.
135
135
  #
136
136
  # To learn more about this pagination parameter, see
137
- # [Pagination](basics#pagination).
137
+ # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
138
138
  # @!attribute [rw] metadata
139
139
  # @return [::Google::Analytics::Data::V1alpha::ResponseMetaData]
140
140
  # Metadata for the report.
@@ -326,7 +326,7 @@ module Google
326
326
  # specified in the URL path and not URL parameters. Property is a numeric
327
327
  # Google Analytics GA4 Property identifier. To learn more, see [where to find
328
328
  # your Property
329
- # ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id).
329
+ # ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
330
330
  #
331
331
  # Example: properties/1234/metadata
332
332
  #
@@ -344,7 +344,7 @@ module Google
344
344
  # A Google Analytics GA4 property identifier whose events are tracked.
345
345
  # Specified in the URL path and not the body. To learn more, see [where to
346
346
  # find your Property
347
- # ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id).
347
+ # ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
348
348
  #
349
349
  # Example: properties/1234
350
350
  # @!attribute [rw] dimensions
@@ -51,7 +51,7 @@ module Google
51
51
  # @return [::String]
52
52
  # A Google Analytics GA4 property id. To learn more, see [where to find your
53
53
  # Property
54
- # ID](https://developers.google.com/analytics/trusted-testing/analytics-data/property-id).
54
+ # ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
55
55
  class Entity
56
56
  include ::Google::Protobuf::MessageExts
57
57
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -64,7 +64,7 @@ module Google
64
64
  # @!attribute [rw] name
65
65
  # @return [::String]
66
66
  # The name of the dimension. See the [API
67
- # Dimensions](https://developers.google.com/analytics/trusted-testing/analytics-data/api-schema#dimensions)
67
+ # Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
68
68
  # for the list of dimension names.
69
69
  #
70
70
  # If `dimensionExpression` is specified, `name` can be any string that you
@@ -136,7 +136,7 @@ module Google
136
136
  # @!attribute [rw] name
137
137
  # @return [::String]
138
138
  # The name of the metric. See the [API
139
- # Metrics](https://developers.google.com/analytics/trusted-testing/analytics-data/api-schema#metrics)
139
+ # Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
140
140
  # for the list of metric names.
141
141
  #
142
142
  # If `expression` is specified, `name` can be any string that you would like.
@@ -447,23 +447,38 @@ module Google
447
447
  extend ::Google::Protobuf::MessageExts::ClassMethods
448
448
  end
449
449
 
450
- # Specification for a cohort report.
450
+ # Specification of cohorts for a cohort report.
451
+ # Cohort reports can be used for example to create a time series of user
452
+ # retention for the cohort. For example, you could select the cohort of users
453
+ # that were acquired in the first week of September and follow that cohort for
454
+ # the next six weeks. Selecting the users acquired in the first week of
455
+ # September cohort is specified in the `cohort` object. Following that
456
+ # cohort for the next six weeks is specified in the `cohortsRange` object.
457
+ #
458
+ # The report response could show a weekly time series where say your app has
459
+ # retained 60% of this cohort after three weeks and 25% of this cohort after
460
+ # six weeks. These two percentages can be calculated by the metric
461
+ # `cohortActiveUsers/cohortTotalUsers` and will be separate rows in the report.
451
462
  # @!attribute [rw] cohorts
452
463
  # @return [::Array<::Google::Analytics::Data::V1alpha::Cohort>]
453
- # The definition for the cohorts.
464
+ # Defines the selection criteria to group users into cohorts.
465
+ #
466
+ # Most cohort reports define only a single cohort. If multiple cohorts are
467
+ # specified, each cohort can be recognized in the report by their name.
454
468
  # @!attribute [rw] cohorts_range
455
469
  # @return [::Google::Analytics::Data::V1alpha::CohortsRange]
456
- # The data ranges of cohorts.
470
+ # Cohort reports follow cohorts over an extended reporting date range. This
471
+ # range specifies an offset duration to follow the cohorts over.
457
472
  # @!attribute [rw] cohort_report_settings
458
473
  # @return [::Google::Analytics::Data::V1alpha::CohortReportSettings]
459
- # Settings of a cohort report.
474
+ # Optional settings for a cohort report.
460
475
  class CohortSpec
461
476
  include ::Google::Protobuf::MessageExts
462
477
  extend ::Google::Protobuf::MessageExts::ClassMethods
463
478
  end
464
479
 
465
- # Defines a cohort. A cohort is a group of users who share a common
466
- # characteristic. For example, all users with the same acquisition date
480
+ # Defines a cohort selection criteria. A cohort is a group of users who share
481
+ # a common characteristic. For example, users with the same `firstTouchDate`
467
482
  # belong to the same cohort.
468
483
  # @!attribute [rw] name
469
484
  # @return [::String]
@@ -473,69 +488,100 @@ module Google
473
488
  # `cohort_0`, `cohort_1`, etc.
474
489
  # @!attribute [rw] dimension
475
490
  # @return [::String]
476
- # The dimension used by cohort. Only supports `firstTouchDate` for retention
477
- # report.
491
+ # Dimension used by the cohort. Required and only supports `firstTouchDate`.
478
492
  # @!attribute [rw] date_range
479
493
  # @return [::Google::Analytics::Data::V1alpha::DateRange]
480
- # The cohort selects users whose first visit date is between start date
481
- # and end date defined in the `dateRange`. In a cohort request, this
482
- # `dateRange` is required and the `dateRanges` in the `RunReportRequest` or
483
- # `RunPivotReportRequest` must be unspecified.
494
+ # The cohort selects users whose first touch date is between start date and
495
+ # end date defined in the `dateRange`. This `dateRange` does not specify the
496
+ # full date range of event data that is present in a cohort report. In a
497
+ # cohort report, this `dateRange` is extended by the granularity and offset
498
+ # present in the `cohortsRange`; event data for the extended reporting date
499
+ # range is present in a cohort report.
484
500
  #
485
- # The date range should be aligned with the cohort's granularity. If
486
- # CohortsRange uses daily granularity, the date range can be aligned to any
487
- # day. If CohortsRange uses weekly granularity, the date range should be
488
- # aligned to the week boundary, starting at Sunday and ending Saturday. If
489
- # CohortsRange uses monthly granularity, the date range should be aligned to
490
- # the month, starting at the first and ending on the last day of the month.
501
+ # In a cohort request, this `dateRange` is required and the `dateRanges` in
502
+ # the `RunReportRequest` or `RunPivotReportRequest` must be unspecified.
503
+ #
504
+ # This `dateRange` should generally be aligned with the cohort's granularity.
505
+ # If `CohortsRange` uses daily granularity, this `dateRange` can be a single
506
+ # day. If `CohortsRange` uses weekly granularity, this `dateRange` can be
507
+ # aligned to a week boundary, starting at Sunday and ending Saturday. If
508
+ # `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to
509
+ # a month, starting at the first and ending on the last day of the month.
491
510
  class Cohort
492
511
  include ::Google::Protobuf::MessageExts
493
512
  extend ::Google::Protobuf::MessageExts::ClassMethods
494
513
  end
495
514
 
496
- # Settings of a cohort report.
497
- # @!attribute [rw] accumulate
498
- # @return [::Boolean]
499
- # If true, accumulates the result from first visit day to the end day. Not
500
- # supported in `RunReportRequest`.
501
- class CohortReportSettings
502
- include ::Google::Protobuf::MessageExts
503
- extend ::Google::Protobuf::MessageExts::ClassMethods
504
- end
505
-
506
- # Describes date range for a cohort report.
515
+ # Configures the extended reporting date range for a cohort report. Specifies
516
+ # an offset duration to follow the cohorts over.
507
517
  # @!attribute [rw] granularity
508
518
  # @return [::Google::Analytics::Data::V1alpha::CohortsRange::Granularity]
509
- # Reporting date range for each cohort is calculated based on these three
510
- # fields.
519
+ # The granularity used to interpret the `startOffset` and `endOffset` for the
520
+ # extended reporting date range for a cohort report.
511
521
  # @!attribute [rw] start_offset
512
522
  # @return [::Integer]
513
- # For daily cohorts, this will be the start day offset.
514
- # For weekly cohorts, this will be the week offset.
523
+ # `startOffset` specifies the start date of the extended reporting date range
524
+ # for a cohort report. `startOffset` is commonly set to 0 so that reports
525
+ # contain data from the acquisition of the cohort forward.
526
+ #
527
+ # If `granularity` is `DAILY`, the `startDate` of the extended reporting date
528
+ # range is `startDate` of the cohort plus `startOffset` days.
529
+ #
530
+ # If `granularity` is `WEEKLY`, the `startDate` of the extended reporting
531
+ # date range is `startDate` of the cohort plus `startOffset * 7` days.
532
+ #
533
+ # If `granularity` is `MONTHLY`, the `startDate` of the extended reporting
534
+ # date range is `startDate` of the cohort plus `startOffset * 30` days.
515
535
  # @!attribute [rw] end_offset
516
536
  # @return [::Integer]
517
- # For daily cohorts, this will be the end day offset.
518
- # For weekly cohorts, this will be the week offset.
537
+ # `endOffset` specifies the end date of the extended reporting date range
538
+ # for a cohort report. `endOffset` can be any positive integer but is
539
+ # commonly set to 5 to 10 so that reports contain data on the cohort for the
540
+ # next several granularity time periods.
541
+ #
542
+ # If `granularity` is `DAILY`, the `endDate` of the extended reporting date
543
+ # range is `endDate` of the cohort plus `endOffset` days.
544
+ #
545
+ # If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date
546
+ # range is `endDate` of the cohort plus `endOffset * 7` days.
547
+ #
548
+ # If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date
549
+ # range is `endDate` of the cohort plus `endOffset * 30` days.
519
550
  class CohortsRange
520
551
  include ::Google::Protobuf::MessageExts
521
552
  extend ::Google::Protobuf::MessageExts::ClassMethods
522
553
 
523
- # Reporting granularity for the cohorts.
554
+ # The granularity used to interpret the `startOffset` and `endOffset` for the
555
+ # extended reporting date range for a cohort report.
524
556
  module Granularity
525
- # Unspecified.
557
+ # Should never be specified.
526
558
  GRANULARITY_UNSPECIFIED = 0
527
559
 
528
- # Daily
560
+ # Daily granularity. Commonly used if the cohort's `dateRange` is a single
561
+ # day and the request contains `cohortNthDay`.
529
562
  DAILY = 1
530
563
 
531
- # Weekly
564
+ # Weekly granularity. Commonly used if the cohort's `dateRange` is a week
565
+ # in duration (starting on Sunday and ending on Saturday) and the request
566
+ # contains `cohortNthWeek`.
532
567
  WEEKLY = 2
533
568
 
534
- # Monthly
569
+ # Monthly granularity. Commonly used if the cohort's `dateRange` is a month
570
+ # in duration and the request contains `cohortNthMonth`.
535
571
  MONTHLY = 3
536
572
  end
537
573
  end
538
574
 
575
+ # Optional settings of a cohort report.
576
+ # @!attribute [rw] accumulate
577
+ # @return [::Boolean]
578
+ # If true, accumulates the result from first touch day to the end day. Not
579
+ # supported in `RunReportRequest`.
580
+ class CohortReportSettings
581
+ include ::Google::Protobuf::MessageExts
582
+ extend ::Google::Protobuf::MessageExts::ClassMethods
583
+ end
584
+
539
585
  # Response's metadata carrying additional information about the report content.
540
586
  # @!attribute [rw] data_loss_from_other_row
541
587
  # @return [::Boolean]
@@ -734,6 +780,9 @@ module Google
734
780
  # dimension is available by either `apiName` or one of `deprecatedApiNames`
735
781
  # for a period of time. After the deprecation period, the dimension will be
736
782
  # available only by `apiName`.
783
+ # @!attribute [rw] custom_definition
784
+ # @return [::Boolean]
785
+ # True if the dimension is a custom dimension for this property.
737
786
  class DimensionMetadata
738
787
  include ::Google::Protobuf::MessageExts
739
788
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -765,6 +814,9 @@ module Google
765
814
  # The mathematical expression for this derived metric. Can be used in
766
815
  # [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
767
816
  # are not expressions, and for non-expressions, this field is empty.
817
+ # @!attribute [rw] custom_definition
818
+ # @return [::Boolean]
819
+ # True if the metric is a custom metric for this property.
768
820
  class MetricMetadata
769
821
  include ::Google::Protobuf::MessageExts
770
822
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-analytics-data-v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-20 00:00:00.000000000 Z
11
+ date: 2020-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common