google-analytics-data-v1beta 0.5.0 → 0.7.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: 64be66c7d2f44bf4750dbc690804a933a0fee5122c111989ff62f58d3d20c25f
4
- data.tar.gz: 2b62c28348c001f627c472954f4810b0ab91fda3cf49e58aa7b3721a46edd4b0
3
+ metadata.gz: 9177b63c8a4e928cf21993f422f53650f6e2ef309103f0738f55272bf0ab81c2
4
+ data.tar.gz: bfe38a506a945aae66d9787a7589c12e2365fdb9c764111a2400550bd1b13e45
5
5
  SHA512:
6
- metadata.gz: b1ffa099cb69913cdfdae6feb78ad781d1f7d4b833f4f7e0cbc72465bebd3278d95765a0391409344fb1853ddd6d6d1a7220b4cd892c274b3873d9f508130962
7
- data.tar.gz: 1d5d101cebc0909b4d3481dfe30a7e3cbccedfb93bc4204fa2f70c63617181ca6f1304b972316089535845b9841666f790665312a2ad647462e1081359d34135
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
- API Client library for the Google Analytics Data V1beta API
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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 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