google-analytics-data-v1beta 0.4.3 → 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: e1f7897ecf6be76a1671e10114f3879e4beb7e73cc6f1fad9194f125f5b502c9
4
- data.tar.gz: 9e8a3d5a72ec8a500d678f3c492eb88d0c1fb5cb7e8f4a40639f24da56d83564
3
+ metadata.gz: 5134b98fc41b7d917e3fe80a3c6562725c1379ebb19dbd61ea9d76c5b85cd9f5
4
+ data.tar.gz: 3df9c421232682bfd64758f0cb0a24922eef5aff90ef8f67f2f2bc0998da2da0
5
5
  SHA512:
6
- metadata.gz: e5a3096f03815db99beed6086bab0f7ef9b54612be12de4dbb434f851bd0886bbaa01ae7a8dd1500a8a320866e4f447a5666354894cdd3ca9a4f00e930c14779
7
- data.tar.gz: d9c3e0d95e7848005273c6430811e41d99439b7684a7b513848dc12c653341a4588ce57245d59b7b9274acb3a82c55341e0497ac9db3059d6c4a0657d6d17d43
6
+ metadata.gz: 854cd6373f7222ab12711fbc63af02e1888a766e0752f5e28de8050e70707dd46ced34be8b00c75764b4adc046d69eb7f1cc43f89ac55c7a8493a2a85907d28d
7
+ data.tar.gz: 40b4ad526d172c8cbdaa85bfd46ec63400c9033f1509bc7d8510236010b077cf5053a2cf106322c5b8ca5362ac27f7424edf0121b4641650d70020e1ee235941
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -77,8 +77,12 @@ module Google
77
77
 
78
78
  default_config.rpcs.batch_run_pivot_reports.timeout = 60.0
79
79
 
80
+ default_config.rpcs.get_metadata.timeout = 60.0
81
+
80
82
  default_config.rpcs.run_realtime_report.timeout = 60.0
81
83
 
84
+ default_config.rpcs.check_compatibility.timeout = 60.0
85
+
82
86
  default_config
83
87
  end
84
88
  yield @configure if block_given?
@@ -168,6 +172,10 @@ module Google
168
172
  # event count. Dimensions break down metrics across some common criteria,
169
173
  # such as country or event name.
170
174
  #
175
+ # For a guide to constructing requests & understanding responses, see
176
+ # [Creating a
177
+ # Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics).
178
+ #
171
179
  # @overload run_report(request, options = nil)
172
180
  # Pass arguments to `run_report` via a request object, either of type
173
181
  # {::Google::Analytics::Data::V1beta::RunReportRequest} or an equivalent Hash.
@@ -208,8 +216,8 @@ module Google
208
216
  # Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
209
217
  # for examples. Metrics cannot be used in this filter.
210
218
  # @param metric_filter [::Google::Analytics::Data::V1beta::FilterExpression, ::Hash]
211
- # The filter clause of metrics. Applied at post aggregation phase, similar to
212
- # SQL having-clause. Dimensions cannot be used in this filter.
219
+ # The filter clause of metrics. Applied after aggregating the report's rows,
220
+ # similar to SQL having-clause. Dimensions cannot be used in this filter.
213
221
  # @param offset [::Integer]
214
222
  # The row count of the start row. The first row is counted as row 0.
215
223
  #
@@ -749,9 +757,15 @@ module Google
749
757
  end
750
758
 
751
759
  ##
752
- # The Google Analytics Realtime API returns a customized report of realtime
753
- # event data for your property. These reports show events and usage from the
754
- # last 30 minutes.
760
+ # Returns a customized report of realtime event data for your property.
761
+ # Events appear in realtime reports seconds after they have been sent to
762
+ # the Google Analytics. Realtime reports show events and usage data for the
763
+ # periods of time ranging from the present moment to 30 minutes ago (up to
764
+ # 60 minutes for Google Analytics 360 properties).
765
+ #
766
+ # For a guide to constructing realtime requests & understanding responses,
767
+ # see [Creating a Realtime
768
+ # Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).
755
769
  #
756
770
  # @overload run_realtime_report(request, options = nil)
757
771
  # Pass arguments to `run_realtime_report` via a request object, either of type
@@ -780,12 +794,10 @@ module Google
780
794
  # @param metrics [::Array<::Google::Analytics::Data::V1beta::Metric, ::Hash>]
781
795
  # The metrics requested and displayed.
782
796
  # @param dimension_filter [::Google::Analytics::Data::V1beta::FilterExpression, ::Hash]
783
- # The filter clause of dimensions. Dimensions must be requested to be used in
784
- # this filter. Metrics cannot be used in this filter.
797
+ # The filter clause of dimensions. Metrics cannot be used in this filter.
785
798
  # @param metric_filter [::Google::Analytics::Data::V1beta::FilterExpression, ::Hash]
786
799
  # The filter clause of metrics. Applied at post aggregation phase, similar to
787
- # SQL having-clause. Metrics must be requested to be used in this filter.
788
- # Dimensions cannot be used in this filter.
800
+ # SQL having-clause. Dimensions cannot be used in this filter.
789
801
  # @param limit [::Integer]
790
802
  # The number of rows to return. If unspecified, 10,000 rows are returned. The
791
803
  # API returns a maximum of 100,000 rows per request, no matter how many you
@@ -1,12 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/analytics/data/v1beta/analytics_data_api.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/analytics/data/v1beta/data_pb'
5
7
  require 'google/api/annotations_pb'
6
8
  require 'google/api/client_pb'
7
9
  require 'google/api/field_behavior_pb'
8
10
  require 'google/api/resource_pb'
9
- require 'google/protobuf'
10
11
 
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_file("google/analytics/data/v1beta/analytics_data_api.proto", :syntax => :proto3) do
@@ -40,6 +40,10 @@ module Google
40
40
  # measurements of user activity on your property, such as active users or
41
41
  # event count. Dimensions break down metrics across some common criteria,
42
42
  # such as country or event name.
43
+ #
44
+ # For a guide to constructing requests & understanding responses, see
45
+ # [Creating a
46
+ # Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics).
43
47
  rpc :RunReport, ::Google::Analytics::Data::V1beta::RunReportRequest, ::Google::Analytics::Data::V1beta::RunReportResponse
44
48
  # Returns a customized pivot report of your Google Analytics event data.
45
49
  # Pivot reports are more advanced and expressive formats than regular
@@ -64,9 +68,15 @@ module Google
64
68
  # `customEvent:levels_unlocked`. Universal metadata are dimensions and
65
69
  # metrics applicable to any property such as `country` and `totalUsers`.
66
70
  rpc :GetMetadata, ::Google::Analytics::Data::V1beta::GetMetadataRequest, ::Google::Analytics::Data::V1beta::Metadata
67
- # The Google Analytics Realtime API returns a customized report of realtime
68
- # event data for your property. These reports show events and usage from the
69
- # last 30 minutes.
71
+ # Returns a customized report of realtime event data for your property.
72
+ # Events appear in realtime reports seconds after they have been sent to
73
+ # the Google Analytics. Realtime reports show events and usage data for the
74
+ # periods of time ranging from the present moment to 30 minutes ago (up to
75
+ # 60 minutes for Google Analytics 360 properties).
76
+ #
77
+ # For a guide to constructing realtime requests & understanding responses,
78
+ # see [Creating a Realtime
79
+ # Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).
70
80
  rpc :RunRealtimeReport, ::Google::Analytics::Data::V1beta::RunRealtimeReportRequest, ::Google::Analytics::Data::V1beta::RunRealtimeReportResponse
71
81
  # This compatibility method lists dimensions and metrics that can be added to
72
82
  # a report request and maintain compatibility. This method fails if the
@@ -158,6 +158,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
158
158
  proto3_optional :currency_code, :string, 5
159
159
  proto3_optional :time_zone, :string, 6
160
160
  proto3_optional :empty_reason, :string, 7
161
+ proto3_optional :subject_to_thresholding, :bool, 8
161
162
  end
162
163
  add_message "google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse" do
163
164
  repeated :active_metric_restrictions, :message, 1, "google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction"
@@ -206,6 +207,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
206
207
  optional :concurrent_requests, :message, 3, "google.analytics.data.v1beta.QuotaStatus"
207
208
  optional :server_errors_per_project_per_hour, :message, 4, "google.analytics.data.v1beta.QuotaStatus"
208
209
  optional :potentially_thresholded_requests_per_hour, :message, 5, "google.analytics.data.v1beta.QuotaStatus"
210
+ optional :tokens_per_project_per_hour, :message, 6, "google.analytics.data.v1beta.QuotaStatus"
209
211
  end
210
212
  add_message "google.analytics.data.v1beta.QuotaStatus" do
211
213
  optional :consumed, :int32, 1
@@ -21,7 +21,7 @@ module Google
21
21
  module Analytics
22
22
  module Data
23
23
  module V1beta
24
- VERSION = "0.4.3"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/analytics/data/v1beta"
29
31
  # client = ::Google::Analytics::Data::V1beta::AnalyticsData::Client.new
30
32
  #
@@ -122,8 +122,8 @@ module Google
122
122
  # for examples. Metrics cannot be used in this filter.
123
123
  # @!attribute [rw] metric_filter
124
124
  # @return [::Google::Analytics::Data::V1beta::FilterExpression]
125
- # The filter clause of metrics. Applied at post aggregation phase, similar to
126
- # SQL having-clause. Dimensions cannot be used in this filter.
125
+ # The filter clause of metrics. Applied after aggregating the report's rows,
126
+ # similar to SQL having-clause. Dimensions cannot be used in this filter.
127
127
  # @!attribute [rw] offset
128
128
  # @return [::Integer]
129
129
  # The row count of the start row. The first row is counted as row 0.
@@ -467,13 +467,11 @@ module Google
467
467
  # The metrics requested and displayed.
468
468
  # @!attribute [rw] dimension_filter
469
469
  # @return [::Google::Analytics::Data::V1beta::FilterExpression]
470
- # The filter clause of dimensions. Dimensions must be requested to be used in
471
- # this filter. Metrics cannot be used in this filter.
470
+ # The filter clause of dimensions. Metrics cannot be used in this filter.
472
471
  # @!attribute [rw] metric_filter
473
472
  # @return [::Google::Analytics::Data::V1beta::FilterExpression]
474
473
  # The filter clause of metrics. Applied at post aggregation phase, similar to
475
- # SQL having-clause. Metrics must be requested to be used in this filter.
476
- # Dimensions cannot be used in this filter.
474
+ # SQL having-clause. Dimensions cannot be used in this filter.
477
475
  # @!attribute [rw] limit
478
476
  # @return [::Integer]
479
477
  # The number of rows to return. If unspecified, 10,000 rows are returned. The
@@ -82,7 +82,7 @@ module Google
82
82
 
83
83
  # Dimensions are attributes of your data. For example, the dimension city
84
84
  # indicates the city from which an event originates. Dimension values in report
85
- # responses are strings; for example, city could be "Paris" or "New York".
85
+ # responses are strings; for example, the city could be "Paris" or "New York".
86
86
  # Requests are allowed up to 9 dimensions.
87
87
  # @!attribute [rw] name
88
88
  # @return [::String]
@@ -186,9 +186,8 @@ module Google
186
186
  extend ::Google::Protobuf::MessageExts::ClassMethods
187
187
  end
188
188
 
189
- # To express dimension or metric filters.
190
- # The fields in the same FilterExpression need to be either all dimensions or
191
- # all metrics.
189
+ # To express dimension or metric filters. The fields in the same
190
+ # FilterExpression need to be either all dimensions or all metrics.
192
191
  # @!attribute [rw] and_group
193
192
  # @return [::Google::Analytics::Data::V1beta::FilterExpressionList]
194
193
  # The FilterExpressions in and_group have an AND relationship.
@@ -200,9 +199,8 @@ module Google
200
199
  # The FilterExpression is NOT of not_expression.
201
200
  # @!attribute [rw] filter
202
201
  # @return [::Google::Analytics::Data::V1beta::Filter]
203
- # A primitive filter.
204
- # All fields in filter in same FilterExpression needs to be either all
205
- # dimensions or metrics.
202
+ # A primitive filter. In the same FilterExpression, all of the filter's
203
+ # field names need to be either all dimensions or all metrics.
206
204
  class FilterExpression
207
205
  include ::Google::Protobuf::MessageExts
208
206
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -220,8 +218,12 @@ module Google
220
218
  # An expression to filter dimension or metric values.
221
219
  # @!attribute [rw] field_name
222
220
  # @return [::String]
223
- # The dimension name or metric name. Must be a name defined in dimensions
224
- # or metrics.
221
+ # The dimension name or metric name.
222
+ #
223
+ # In most methods, dimensions & metrics can be used for the first time in
224
+ # this field. However in a RunPivotReportRequest, this field must be
225
+ # additionally specified by name in the RunPivotReportRequest's dimensions or
226
+ # metrics.
225
227
  # @!attribute [rw] string_filter
226
228
  # @return [::Google::Analytics::Data::V1beta::Filter::StringFilter]
227
229
  # Strings related filter.
@@ -269,10 +271,10 @@ module Google
269
271
  # Contains the string value.
270
272
  CONTAINS = 4
271
273
 
272
- # Full regular expression match with the string value.
274
+ # Full match for the regular expression with the string value.
273
275
  FULL_REGEXP = 5
274
276
 
275
- # Partial regular expression match with the string value.
277
+ # Partial match for the regular expression with the string value.
276
278
  PARTIAL_REGEXP = 6
277
279
  end
278
280
  end
@@ -336,7 +338,9 @@ module Google
336
338
  end
337
339
  end
338
340
 
339
- # The sort options.
341
+ # Order bys define how rows will be sorted in the response. For example,
342
+ # ordering rows by descending event count is one ordering, and ordering rows by
343
+ # the event name string is a different ordering.
340
344
  # @!attribute [rw] metric
341
345
  # @return [::Google::Analytics::Data::V1beta::OrderBy::MetricOrderBy]
342
346
  # Sorts results by a metric's values.
@@ -644,6 +648,16 @@ module Google
644
648
  # @!attribute [rw] empty_reason
645
649
  # @return [::String]
646
650
  # If empty reason is specified, the report is empty for this reason.
651
+ # @!attribute [rw] subject_to_thresholding
652
+ # @return [::Boolean]
653
+ # If `subjectToThresholding` is true, this report is subject to thresholding
654
+ # and only returns data that meets the minimum aggregation thresholds. It is
655
+ # possible for a request to be subject to thresholding thresholding and no
656
+ # data is absent from the report, and this happens when all data is above the
657
+ # thresholds. To learn more, see [Data
658
+ # thresholds](https://support.google.com/analytics/answer/9383630) and [About
659
+ # Demographics and
660
+ # Interests](https://support.google.com/analytics/answer/2799357).
647
661
  class ResponseMetaData
648
662
  include ::Google::Protobuf::MessageExts
649
663
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -817,8 +831,8 @@ module Google
817
831
  # @return [::Google::Analytics::Data::V1beta::QuotaStatus]
818
832
  # Standard Analytics Properties can use up to 5,000 tokens per hour;
819
833
  # Analytics 360 Properties can use 50,000 tokens per hour. An API request
820
- # consumes a single number of tokens, and that number is deducted from both
821
- # the hourly and daily quotas.
834
+ # consumes a single number of tokens, and that number is deducted from all of
835
+ # the hourly, daily, and per project hourly quotas.
822
836
  # @!attribute [rw] concurrent_requests
823
837
  # @return [::Google::Analytics::Data::V1beta::QuotaStatus]
824
838
  # Standard Analytics Properties can send up to 10 concurrent requests;
@@ -834,6 +848,14 @@ module Google
834
848
  # thresholded dimensions per hour. In a batch request, each report request
835
849
  # is individually counted for this quota if the request contains potentially
836
850
  # thresholded dimensions.
851
+ # @!attribute [rw] tokens_per_project_per_hour
852
+ # @return [::Google::Analytics::Data::V1beta::QuotaStatus]
853
+ # Analytics Properties can use up to 25% of their tokens per project per
854
+ # hour. This amounts to standard Analytics Properties can use up to 1,250
855
+ # tokens per project per hour, and Analytics 360 Properties can use 12,500
856
+ # tokens per project per hour. An API request consumes a single number of
857
+ # tokens, and that number is deducted from all of the hourly, daily, and per
858
+ # project hourly quotas.
837
859
  class PropertyQuota
838
860
  include ::Google::Protobuf::MessageExts
839
861
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-analytics-data-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
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: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: '0.12'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: '0.12'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,28 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.25.1
53
+ version: 1.26.1
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.25.1
60
+ version: 1.26.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '5.14'
67
+ version: '5.16'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '5.14'
74
+ version: '5.16'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: minitest-focus
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '12.0'
109
+ version: '13.0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '12.0'
116
+ version: '13.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: redcarpet
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -197,14 +197,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
197
197
  requirements:
198
198
  - - ">="
199
199
  - !ruby/object:Gem::Version
200
- version: '2.5'
200
+ version: '2.6'
201
201
  required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  requirements:
203
203
  - - ">="
204
204
  - !ruby/object:Gem::Version
205
205
  version: '0'
206
206
  requirements: []
207
- rubygems_version: 3.3.4
207
+ rubygems_version: 3.3.14
208
208
  signing_key:
209
209
  specification_version: 4
210
210
  summary: API Client library for the Google Analytics Data V1beta API