google-analytics-data-v1beta 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/analytics/data/v1beta/analytics_data/client.rb +17 -7
- data/lib/google/analytics/data/v1beta/analytics_data/rest/client.rb +17 -7
- data/lib/google/analytics/data/v1beta/version.rb +1 -1
- data/proto_docs/google/analytics/data/v1beta/analytics_data_api.rb +17 -7
- data/proto_docs/google/analytics/data/v1beta/data.rb +24 -12
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef5116aed6f9d5fa8ca303079895797ee0a991ec330f8859868263689174b890
|
4
|
+
data.tar.gz: 04f1bc9a21cde97026cad035d37dda4ecbfdc0cb382e6ed25d62cd4aa3a04f22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 803c1ac50c49e575e3cc33ee723e93a5279df0fdf34974b1b55ef63c8c6c05f524d095dc5638a6dae30c71f9c5e496de78b4d255db8c9bb9a8958aa3ecc684ed
|
7
|
+
data.tar.gz: a47733f2c3909f1ebeb26bdc70bde2be0b98a640b642eec1bceab762d8f33492d853cb1a4314472d194ce86cb10debc967a68a0cfe9ef03ed471846ae089edce
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Google Analytics Data V1beta API
|
2
2
|
|
3
|
-
Accesses report data in Google Analytics.
|
3
|
+
Accesses report data in Google Analytics. Warning: Creating multiple Customer Applications, Accounts, or Projects to simulate or act as a single Customer Application, Account, or Project (respectively) or to circumvent Service-specific usage limits or quotas is a direct violation of Google Cloud Platform Terms of Service as well as Google APIs Terms of Service. These actions can result in immediate termination of your GCP project(s) without any warning.
|
4
4
|
|
5
5
|
The Google Analytics Data API provides programmatic methods to access report data in Google Analytics 4 (GA4) properties. Google Analytics 4 helps you understand how people use your web, iOS, or Android app.
|
6
6
|
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
# response rows for both date ranges. In a cohort request, this `dateRanges`
|
212
212
|
# must be unspecified.
|
213
213
|
# @param dimension_filter [::Google::Analytics::Data::V1beta::FilterExpression, ::Hash]
|
214
|
-
# Dimension filters
|
214
|
+
# Dimension filters let you ask for only specific dimension values in
|
215
215
|
# the report. To learn more, see [Fundamentals of Dimension
|
216
216
|
# Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
|
217
217
|
# for examples. Metrics cannot be used in this filter.
|
@@ -230,7 +230,7 @@ module Google
|
|
230
230
|
# [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
|
231
231
|
# @param limit [::Integer]
|
232
232
|
# The number of rows to return. If unspecified, 10,000 rows are returned. The
|
233
|
-
# API returns a maximum of
|
233
|
+
# API returns a maximum of 250,000 rows per request, no matter how many you
|
234
234
|
# ask for. `limit` must be positive.
|
235
235
|
#
|
236
236
|
# The API can also return fewer rows than the requested `limit`, if there
|
@@ -256,6 +256,13 @@ module Google
|
|
256
256
|
# If false or unspecified, each row with all metrics equal to 0 will not be
|
257
257
|
# returned. If true, these rows will be returned if they are not separately
|
258
258
|
# removed by a filter.
|
259
|
+
#
|
260
|
+
# Regardless of this `keep_empty_rows` setting, only data recorded by the
|
261
|
+
# Google Analytics (GA4) property can be displayed in a report.
|
262
|
+
#
|
263
|
+
# For example if a property never logs a `purchase` event, then a query for
|
264
|
+
# the `eventName` dimension and `eventCount` metric will not have a row
|
265
|
+
# eventName: "purchase" and eventCount: 0.
|
259
266
|
# @param return_property_quota [::Boolean]
|
260
267
|
# Toggles whether to return the current state of this Analytics Property's
|
261
268
|
# quota. Quota is returned in [PropertyQuota](#PropertyQuota).
|
@@ -390,6 +397,13 @@ module Google
|
|
390
397
|
# If false or unspecified, each row with all metrics equal to 0 will not be
|
391
398
|
# returned. If true, these rows will be returned if they are not separately
|
392
399
|
# removed by a filter.
|
400
|
+
#
|
401
|
+
# Regardless of this `keep_empty_rows` setting, only data recorded by the
|
402
|
+
# Google Analytics (GA4) property can be displayed in a report.
|
403
|
+
#
|
404
|
+
# For example if a property never logs a `purchase` event, then a query for
|
405
|
+
# the `eventName` dimension and `eventCount` metric will not have a row
|
406
|
+
# eventName: "purchase" and eventCount: 0.
|
393
407
|
# @param return_property_quota [::Boolean]
|
394
408
|
# Toggles whether to return the current state of this Analytics Property's
|
395
409
|
# quota. Quota is returned in [PropertyQuota](#PropertyQuota).
|
@@ -800,7 +814,7 @@ module Google
|
|
800
814
|
# SQL having-clause. Dimensions cannot be used in this filter.
|
801
815
|
# @param limit [::Integer]
|
802
816
|
# The number of rows to return. If unspecified, 10,000 rows are returned. The
|
803
|
-
# API returns a maximum of
|
817
|
+
# API returns a maximum of 250,000 rows per request, no matter how many you
|
804
818
|
# ask for. `limit` must be positive.
|
805
819
|
#
|
806
820
|
# The API can also return fewer rows than the requested `limit`, if there
|
@@ -921,10 +935,6 @@ module Google
|
|
921
935
|
# `property` should be the same value as in your `runReport` request.
|
922
936
|
#
|
923
937
|
# Example: properties/1234
|
924
|
-
#
|
925
|
-
# Set the Property ID to 0 for compatibility checking on dimensions and
|
926
|
-
# metrics common to all properties. In this special mode, this method will
|
927
|
-
# not return custom dimensions and metrics.
|
928
938
|
# @param dimensions [::Array<::Google::Analytics::Data::V1beta::Dimension, ::Hash>]
|
929
939
|
# The dimensions in this report. `dimensions` should be the same value as in
|
930
940
|
# your `runReport` request.
|
@@ -202,7 +202,7 @@ module Google
|
|
202
202
|
# response rows for both date ranges. In a cohort request, this `dateRanges`
|
203
203
|
# must be unspecified.
|
204
204
|
# @param dimension_filter [::Google::Analytics::Data::V1beta::FilterExpression, ::Hash]
|
205
|
-
# Dimension filters
|
205
|
+
# Dimension filters let you ask for only specific dimension values in
|
206
206
|
# the report. To learn more, see [Fundamentals of Dimension
|
207
207
|
# Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
|
208
208
|
# for examples. Metrics cannot be used in this filter.
|
@@ -221,7 +221,7 @@ module Google
|
|
221
221
|
# [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
|
222
222
|
# @param limit [::Integer]
|
223
223
|
# The number of rows to return. If unspecified, 10,000 rows are returned. The
|
224
|
-
# API returns a maximum of
|
224
|
+
# API returns a maximum of 250,000 rows per request, no matter how many you
|
225
225
|
# ask for. `limit` must be positive.
|
226
226
|
#
|
227
227
|
# The API can also return fewer rows than the requested `limit`, if there
|
@@ -247,6 +247,13 @@ module Google
|
|
247
247
|
# If false or unspecified, each row with all metrics equal to 0 will not be
|
248
248
|
# returned. If true, these rows will be returned if they are not separately
|
249
249
|
# removed by a filter.
|
250
|
+
#
|
251
|
+
# Regardless of this `keep_empty_rows` setting, only data recorded by the
|
252
|
+
# Google Analytics (GA4) property can be displayed in a report.
|
253
|
+
#
|
254
|
+
# For example if a property never logs a `purchase` event, then a query for
|
255
|
+
# the `eventName` dimension and `eventCount` metric will not have a row
|
256
|
+
# eventName: "purchase" and eventCount: 0.
|
250
257
|
# @param return_property_quota [::Boolean]
|
251
258
|
# Toggles whether to return the current state of this Analytics Property's
|
252
259
|
# quota. Quota is returned in [PropertyQuota](#PropertyQuota).
|
@@ -358,6 +365,13 @@ module Google
|
|
358
365
|
# If false or unspecified, each row with all metrics equal to 0 will not be
|
359
366
|
# returned. If true, these rows will be returned if they are not separately
|
360
367
|
# removed by a filter.
|
368
|
+
#
|
369
|
+
# Regardless of this `keep_empty_rows` setting, only data recorded by the
|
370
|
+
# Google Analytics (GA4) property can be displayed in a report.
|
371
|
+
#
|
372
|
+
# For example if a property never logs a `purchase` event, then a query for
|
373
|
+
# the `eventName` dimension and `eventCount` metric will not have a row
|
374
|
+
# eventName: "purchase" and eventCount: 0.
|
361
375
|
# @param return_property_quota [::Boolean]
|
362
376
|
# Toggles whether to return the current state of this Analytics Property's
|
363
377
|
# quota. Quota is returned in [PropertyQuota](#PropertyQuota).
|
@@ -676,7 +690,7 @@ module Google
|
|
676
690
|
# SQL having-clause. Dimensions cannot be used in this filter.
|
677
691
|
# @param limit [::Integer]
|
678
692
|
# The number of rows to return. If unspecified, 10,000 rows are returned. The
|
679
|
-
# API returns a maximum of
|
693
|
+
# API returns a maximum of 250,000 rows per request, no matter how many you
|
680
694
|
# ask for. `limit` must be positive.
|
681
695
|
#
|
682
696
|
# The API can also return fewer rows than the requested `limit`, if there
|
@@ -774,10 +788,6 @@ module Google
|
|
774
788
|
# `property` should be the same value as in your `runReport` request.
|
775
789
|
#
|
776
790
|
# Example: properties/1234
|
777
|
-
#
|
778
|
-
# Set the Property ID to 0 for compatibility checking on dimensions and
|
779
|
-
# metrics common to all properties. In this special mode, this method will
|
780
|
-
# not return custom dimensions and metrics.
|
781
791
|
# @param dimensions [::Array<::Google::Analytics::Data::V1beta::Dimension, ::Hash>]
|
782
792
|
# The dimensions in this report. `dimensions` should be the same value as in
|
783
793
|
# your `runReport` request.
|
@@ -33,10 +33,6 @@ module Google
|
|
33
33
|
# `property` should be the same value as in your `runReport` request.
|
34
34
|
#
|
35
35
|
# Example: properties/1234
|
36
|
-
#
|
37
|
-
# Set the Property ID to 0 for compatibility checking on dimensions and
|
38
|
-
# metrics common to all properties. In this special mode, this method will
|
39
|
-
# not return custom dimensions and metrics.
|
40
36
|
# @!attribute [rw] dimensions
|
41
37
|
# @return [::Array<::Google::Analytics::Data::V1beta::Dimension>]
|
42
38
|
# The dimensions in this report. `dimensions` should be the same value as in
|
@@ -116,7 +112,7 @@ module Google
|
|
116
112
|
# must be unspecified.
|
117
113
|
# @!attribute [rw] dimension_filter
|
118
114
|
# @return [::Google::Analytics::Data::V1beta::FilterExpression]
|
119
|
-
# Dimension filters
|
115
|
+
# Dimension filters let you ask for only specific dimension values in
|
120
116
|
# the report. To learn more, see [Fundamentals of Dimension
|
121
117
|
# Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
|
122
118
|
# for examples. Metrics cannot be used in this filter.
|
@@ -138,7 +134,7 @@ module Google
|
|
138
134
|
# @!attribute [rw] limit
|
139
135
|
# @return [::Integer]
|
140
136
|
# The number of rows to return. If unspecified, 10,000 rows are returned. The
|
141
|
-
# API returns a maximum of
|
137
|
+
# API returns a maximum of 250,000 rows per request, no matter how many you
|
142
138
|
# ask for. `limit` must be positive.
|
143
139
|
#
|
144
140
|
# The API can also return fewer rows than the requested `limit`, if there
|
@@ -169,6 +165,13 @@ module Google
|
|
169
165
|
# If false or unspecified, each row with all metrics equal to 0 will not be
|
170
166
|
# returned. If true, these rows will be returned if they are not separately
|
171
167
|
# removed by a filter.
|
168
|
+
#
|
169
|
+
# Regardless of this `keep_empty_rows` setting, only data recorded by the
|
170
|
+
# Google Analytics (GA4) property can be displayed in a report.
|
171
|
+
#
|
172
|
+
# For example if a property never logs a `purchase` event, then a query for
|
173
|
+
# the `eventName` dimension and `eventCount` metric will not have a row
|
174
|
+
# eventName: "purchase" and eventCount: 0.
|
172
175
|
# @!attribute [rw] return_property_quota
|
173
176
|
# @return [::Boolean]
|
174
177
|
# Toggles whether to return the current state of this Analytics Property's
|
@@ -280,6 +283,13 @@ module Google
|
|
280
283
|
# If false or unspecified, each row with all metrics equal to 0 will not be
|
281
284
|
# returned. If true, these rows will be returned if they are not separately
|
282
285
|
# removed by a filter.
|
286
|
+
#
|
287
|
+
# Regardless of this `keep_empty_rows` setting, only data recorded by the
|
288
|
+
# Google Analytics (GA4) property can be displayed in a report.
|
289
|
+
#
|
290
|
+
# For example if a property never logs a `purchase` event, then a query for
|
291
|
+
# the `eventName` dimension and `eventCount` metric will not have a row
|
292
|
+
# eventName: "purchase" and eventCount: 0.
|
283
293
|
# @!attribute [rw] return_property_quota
|
284
294
|
# @return [::Boolean]
|
285
295
|
# Toggles whether to return the current state of this Analytics Property's
|
@@ -475,7 +485,7 @@ module Google
|
|
475
485
|
# @!attribute [rw] limit
|
476
486
|
# @return [::Integer]
|
477
487
|
# The number of rows to return. If unspecified, 10,000 rows are returned. The
|
478
|
-
# API returns a maximum of
|
488
|
+
# API returns a maximum of 250,000 rows per request, no matter how many you
|
479
489
|
# ask for. `limit` must be positive.
|
480
490
|
#
|
481
491
|
# The API can also return fewer rows than the requested `limit`, if there
|
@@ -21,8 +21,8 @@ module Google
|
|
21
21
|
module Analytics
|
22
22
|
module Data
|
23
23
|
module V1beta
|
24
|
-
# A contiguous set of days: startDate
|
25
|
-
# are allowed up to 4 date ranges.
|
24
|
+
# A contiguous set of days: `startDate`, `startDate + 1`, ..., `endDate`.
|
25
|
+
# Requests are allowed up to 4 date ranges.
|
26
26
|
# @!attribute [rw] start_date
|
27
27
|
# @return [::String]
|
28
28
|
# The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
|
@@ -46,8 +46,8 @@ module Google
|
|
46
46
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
47
47
|
end
|
48
48
|
|
49
|
-
# A contiguous set of minutes: startMinutesAgo
|
50
|
-
# endMinutesAgo
|
49
|
+
# A contiguous set of minutes: `startMinutesAgo`, `startMinutesAgo + 1`, ...,
|
50
|
+
# `endMinutesAgo`. Requests are allowed up to 2 minute ranges.
|
51
51
|
# @!attribute [rw] start_minutes_ago
|
52
52
|
# @return [::Integer]
|
53
53
|
# The inclusive start minute for the query as a number of minutes before now.
|
@@ -466,7 +466,7 @@ module Google
|
|
466
466
|
# single pivot requests.
|
467
467
|
#
|
468
468
|
# The product of the `limit` for each `pivot` in a `RunPivotReportRequest`
|
469
|
-
# must not exceed
|
469
|
+
# must not exceed 250,000. For example, a two pivot request with `limit:
|
470
470
|
# 1000` in each pivot will fail because the product is `1,000,000`.
|
471
471
|
# @!attribute [rw] metric_aggregations
|
472
472
|
# @return [::Array<::Google::Analytics::Data::V1beta::MetricAggregation>]
|
@@ -622,6 +622,18 @@ module Google
|
|
622
622
|
# @return [::Boolean]
|
623
623
|
# If true, indicates some buckets of dimension combinations are rolled into
|
624
624
|
# "(other)" row. This can happen for high cardinality reports.
|
625
|
+
#
|
626
|
+
# The metadata parameter dataLossFromOtherRow is populated based on the
|
627
|
+
# aggregated data table used in the report. The parameter will be accurately
|
628
|
+
# populated regardless of the filters and limits in the report.
|
629
|
+
#
|
630
|
+
# For example, the (other) row could be dropped from the report because the
|
631
|
+
# request contains a filter on sessionSource = google. This parameter will
|
632
|
+
# still be populated if data loss from other row was present in the input
|
633
|
+
# aggregate data used to generate this report.
|
634
|
+
#
|
635
|
+
# To learn more, see [About the (other) row and data
|
636
|
+
# sampling](https://support.google.com/analytics/answer/13208658#reports).
|
625
637
|
# @!attribute [rw] schema_restriction_response
|
626
638
|
# @return [::Google::Analytics::Data::V1beta::ResponseMetaData::SchemaRestrictionResponse]
|
627
639
|
# Describes the schema restrictions actively enforced in creating this
|
@@ -824,13 +836,13 @@ module Google
|
|
824
836
|
# Exhausted errors.
|
825
837
|
# @!attribute [rw] tokens_per_day
|
826
838
|
# @return [::Google::Analytics::Data::V1beta::QuotaStatus]
|
827
|
-
# Standard Analytics Properties can use up to
|
828
|
-
# Analytics 360 Properties can use
|
839
|
+
# Standard Analytics Properties can use up to 200,000 tokens per day;
|
840
|
+
# Analytics 360 Properties can use 2,000,000 tokens per day. Most requests
|
829
841
|
# consume fewer than 10 tokens.
|
830
842
|
# @!attribute [rw] tokens_per_hour
|
831
843
|
# @return [::Google::Analytics::Data::V1beta::QuotaStatus]
|
832
|
-
# Standard Analytics Properties can use up to
|
833
|
-
# Analytics 360 Properties can use
|
844
|
+
# Standard Analytics Properties can use up to 40,000 tokens per hour;
|
845
|
+
# Analytics 360 Properties can use 400,000 tokens per hour. An API request
|
834
846
|
# consumes a single number of tokens, and that number is deducted from all of
|
835
847
|
# the hourly, daily, and per project hourly quotas.
|
836
848
|
# @!attribute [rw] concurrent_requests
|
@@ -850,9 +862,9 @@ module Google
|
|
850
862
|
# thresholded dimensions.
|
851
863
|
# @!attribute [rw] tokens_per_project_per_hour
|
852
864
|
# @return [::Google::Analytics::Data::V1beta::QuotaStatus]
|
853
|
-
# Analytics Properties can use up to
|
854
|
-
# hour. This amounts to standard Analytics Properties can use up to
|
855
|
-
# tokens per project per hour, and Analytics 360 Properties can use
|
865
|
+
# Analytics Properties can use up to 35% of their tokens per project per
|
866
|
+
# hour. This amounts to standard Analytics Properties can use up to 14,000
|
867
|
+
# tokens per project per hour, and Analytics 360 Properties can use 140,000
|
856
868
|
# tokens per project per hour. An API request consumes a single number of
|
857
869
|
# tokens, and that number is deducted from all of the hourly, daily, and per
|
858
870
|
# project hourly quotas.
|
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.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -214,5 +214,10 @@ requirements: []
|
|
214
214
|
rubygems_version: 3.4.2
|
215
215
|
signing_key:
|
216
216
|
specification_version: 4
|
217
|
-
summary: Accesses report data in Google Analytics.
|
217
|
+
summary: 'Accesses report data in Google Analytics. Warning: Creating multiple Customer
|
218
|
+
Applications, Accounts, or Projects to simulate or act as a single Customer Application,
|
219
|
+
Account, or Project (respectively) or to circumvent Service-specific usage limits
|
220
|
+
or quotas is a direct violation of Google Cloud Platform Terms of Service as well
|
221
|
+
as Google APIs Terms of Service. These actions can result in immediate termination
|
222
|
+
of your GCP project(s) without any warning.'
|
218
223
|
test_files: []
|