google-analytics-data-v1beta 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 +4 -4
- data/AUTHENTICATION.md +1 -1
- data/lib/google/analytics/data/v1beta/analytics_data/client.rb +21 -9
- data/lib/google/analytics/data/v1beta/analytics_data_api_services_pb.rb +13 -3
- data/lib/google/analytics/data/v1beta/data_pb.rb +2 -0
- data/lib/google/analytics/data/v1beta/version.rb +1 -1
- data/proto_docs/google/analytics/data/v1beta/analytics_data_api.rb +4 -6
- data/proto_docs/google/analytics/data/v1beta/data.rb +40 -18
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5134b98fc41b7d917e3fe80a3c6562725c1379ebb19dbd61ea9d76c5b85cd9f5
|
4
|
+
data.tar.gz: 3df9c421232682bfd64758f0cb0a24922eef5aff90ef8f67f2f2bc0998da2da0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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
|
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
|
-
#
|
753
|
-
#
|
754
|
-
#
|
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.
|
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.
|
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
|
@@ -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
|
-
#
|
68
|
-
#
|
69
|
-
#
|
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
|
@@ -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
|
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.
|
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.
|
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
|
@@ -56,8 +56,8 @@ module Google
|
|
56
56
|
#
|
57
57
|
# If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics
|
58
58
|
# properties can request up to the last 30 minutes of event data
|
59
|
-
# (`startMinutesAgo <= 29`), and
|
60
|
-
#
|
59
|
+
# (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to
|
60
|
+
# the last 60 minutes of event data (`startMinutesAgo <= 59`).
|
61
61
|
# @!attribute [rw] end_minutes_ago
|
62
62
|
# @return [::Integer]
|
63
63
|
# The inclusive end minute for the query as a number of minutes before now.
|
@@ -67,8 +67,8 @@ module Google
|
|
67
67
|
#
|
68
68
|
# If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics
|
69
69
|
# properties can request any minute in the last 30 minutes of event data
|
70
|
-
# (`endMinutesAgo <= 29`), and
|
71
|
-
#
|
70
|
+
# (`endMinutesAgo <= 29`), and 360 Analytics properties can request any
|
71
|
+
# minute in the last 60 minutes of event data (`endMinutesAgo <= 59`).
|
72
72
|
# @!attribute [rw] name
|
73
73
|
# @return [::String]
|
74
74
|
# Assigns a name to this minute range. The dimension `dateRange` is valued to
|
@@ -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
|
-
#
|
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
|
-
#
|
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.
|
224
|
-
#
|
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
|
274
|
+
# Full match for the regular expression with the string value.
|
273
275
|
FULL_REGEXP = 5
|
274
276
|
|
275
|
-
# Partial regular expression
|
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
|
-
#
|
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
|
821
|
-
# the hourly and
|
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
|
+
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-
|
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.
|
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.
|
29
|
+
version: '0.12'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|