google-analytics-data-v1beta 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +2 -2
- data/lib/google/analytics/data/v1beta/analytics_data/client.rb +21 -9
- data/lib/google/analytics/data/v1beta/analytics_data/rest/client.rb +1025 -0
- data/lib/google/analytics/data/v1beta/analytics_data/rest/service_stub.rb +467 -0
- data/lib/google/analytics/data/v1beta/analytics_data/rest.rb +52 -0
- data/lib/google/analytics/data/v1beta/analytics_data.rb +7 -1
- 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/rest.rb +37 -0
- data/lib/google/analytics/data/v1beta/version.rb +1 -1
- data/lib/google/analytics/data/v1beta.rb +7 -2
- data/proto_docs/google/analytics/data/v1beta/analytics_data_api.rb +4 -6
- data/proto_docs/google/analytics/data/v1beta/data.rb +40 -18
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- metadata +15 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9177b63c8a4e928cf21993f422f53650f6e2ef309103f0738f55272bf0ab81c2
|
4
|
+
data.tar.gz: bfe38a506a945aae66d9787a7589c12e2365fdb9c764111a2400550bd1b13e45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dee419b6ba097e9d9e042ba4c343dfe3ea01c5f51750c7495e1f99348fa89f8c4d61acf2c9b99535a05f98f05814647c339b17ccda608389378087d1af3b6332
|
7
|
+
data.tar.gz: ccb2ec5a6f03d00e1d7c060641df12f26d848a361c649c9af2c0fdf735032130534913413e7dc55cb20d383b572f5716f5320458d2025f2adf0c7d792b50a767
|
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
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Google Analytics Data V1beta API
|
2
2
|
|
3
|
-
|
3
|
+
Accesses report data in Google Analytics.
|
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
|
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -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
|