google-analytics-data-v1beta 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/analytics/data/v1beta/analytics_data/client.rb +35 -21
- data/lib/google/analytics/data/v1beta/analytics_data_api_pb.rb +2 -2
- data/lib/google/analytics/data/v1beta/analytics_data_api_services_pb.rb +1 -1
- data/lib/google/analytics/data/v1beta/data_pb.rb +26 -0
- data/lib/google/analytics/data/v1beta/version.rb +1 -1
- data/proto_docs/google/analytics/data/v1beta/data.rb +89 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '059c6b332489b0cbb18e6c74e9ddb315d7f82adb8dbbe4a68df85ee11c183d78'
|
4
|
+
data.tar.gz: a3e25aa05bbed95b21a39fce150a146e86f20c2ec7f4c82473db66c12177ea27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4daa847f618a432dc22512099eca529df77c9e9fa569c160c8482e605a60cfb79d705affda9b2449089247fe5f3b84094e7a916d1a91ccdfc6402e10e892014
|
7
|
+
data.tar.gz: faac7c705db32dcb11fe6c986f7d3b20cc07084b4caef0e7829cbfadbeb0403cf55e98711101d80466b2fe76ca8c3641225417f3be4aab4e13f96a592d9a8d76
|
@@ -277,9 +277,11 @@ module Google
|
|
277
277
|
gapic_version: ::Google::Analytics::Data::V1beta::VERSION
|
278
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
279
279
|
|
280
|
-
header_params = {
|
281
|
-
|
282
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.property
|
282
|
+
header_params["property"] = request.property
|
283
|
+
end
|
284
|
+
|
283
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
284
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
285
287
|
|
@@ -394,9 +396,11 @@ module Google
|
|
394
396
|
gapic_version: ::Google::Analytics::Data::V1beta::VERSION
|
395
397
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
396
398
|
|
397
|
-
header_params = {
|
398
|
-
|
399
|
-
|
399
|
+
header_params = {}
|
400
|
+
if request.property
|
401
|
+
header_params["property"] = request.property
|
402
|
+
end
|
403
|
+
|
400
404
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
401
405
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
402
406
|
|
@@ -474,9 +478,11 @@ module Google
|
|
474
478
|
gapic_version: ::Google::Analytics::Data::V1beta::VERSION
|
475
479
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
476
480
|
|
477
|
-
header_params = {
|
478
|
-
|
479
|
-
|
481
|
+
header_params = {}
|
482
|
+
if request.property
|
483
|
+
header_params["property"] = request.property
|
484
|
+
end
|
485
|
+
|
480
486
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
481
487
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
482
488
|
|
@@ -554,9 +560,11 @@ module Google
|
|
554
560
|
gapic_version: ::Google::Analytics::Data::V1beta::VERSION
|
555
561
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
556
562
|
|
557
|
-
header_params = {
|
558
|
-
|
559
|
-
|
563
|
+
header_params = {}
|
564
|
+
if request.property
|
565
|
+
header_params["property"] = request.property
|
566
|
+
end
|
567
|
+
|
560
568
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
561
569
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
562
570
|
|
@@ -641,9 +649,11 @@ module Google
|
|
641
649
|
gapic_version: ::Google::Analytics::Data::V1beta::VERSION
|
642
650
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
643
651
|
|
644
|
-
header_params = {
|
645
|
-
|
646
|
-
|
652
|
+
header_params = {}
|
653
|
+
if request.name
|
654
|
+
header_params["name"] = request.name
|
655
|
+
end
|
656
|
+
|
647
657
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
648
658
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
649
659
|
|
@@ -751,9 +761,11 @@ module Google
|
|
751
761
|
gapic_version: ::Google::Analytics::Data::V1beta::VERSION
|
752
762
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
753
763
|
|
754
|
-
header_params = {
|
755
|
-
|
756
|
-
|
764
|
+
header_params = {}
|
765
|
+
if request.property
|
766
|
+
header_params["property"] = request.property
|
767
|
+
end
|
768
|
+
|
757
769
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
758
770
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
759
771
|
|
@@ -853,9 +865,11 @@ module Google
|
|
853
865
|
gapic_version: ::Google::Analytics::Data::V1beta::VERSION
|
854
866
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
855
867
|
|
856
|
-
header_params = {
|
857
|
-
|
858
|
-
|
868
|
+
header_params = {}
|
869
|
+
if request.property
|
870
|
+
header_params["property"] = request.property
|
871
|
+
end
|
872
|
+
|
859
873
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
860
874
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
861
875
|
|
@@ -1,13 +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
|
-
|
6
4
|
require 'google/analytics/data/v1beta/data_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
8
6
|
require 'google/api/client_pb'
|
9
7
|
require 'google/api/field_behavior_pb'
|
10
8
|
require 'google/api/resource_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/analytics/data/v1beta/analytics_data_api.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.analytics.data.v1beta.CheckCompatibilityRequest" do
|
@@ -154,6 +154,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
154
154
|
end
|
155
155
|
add_message "google.analytics.data.v1beta.ResponseMetaData" do
|
156
156
|
optional :data_loss_from_other_row, :bool, 3
|
157
|
+
proto3_optional :schema_restriction_response, :message, 4, "google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse"
|
158
|
+
proto3_optional :currency_code, :string, 5
|
159
|
+
proto3_optional :time_zone, :string, 6
|
160
|
+
proto3_optional :empty_reason, :string, 7
|
161
|
+
end
|
162
|
+
add_message "google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse" do
|
163
|
+
repeated :active_metric_restrictions, :message, 1, "google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction"
|
164
|
+
end
|
165
|
+
add_message "google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction" do
|
166
|
+
proto3_optional :metric_name, :string, 1
|
167
|
+
repeated :restricted_metric_types, :enum, 2, "google.analytics.data.v1beta.RestrictedMetricType"
|
157
168
|
end
|
158
169
|
add_message "google.analytics.data.v1beta.DimensionHeader" do
|
159
170
|
optional :name, :string, 1
|
@@ -216,8 +227,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
216
227
|
optional :type, :enum, 5, "google.analytics.data.v1beta.MetricType"
|
217
228
|
optional :expression, :string, 6
|
218
229
|
optional :custom_definition, :bool, 7
|
230
|
+
repeated :blocked_reasons, :enum, 8, "google.analytics.data.v1beta.MetricMetadata.BlockedReason"
|
219
231
|
optional :category, :string, 10
|
220
232
|
end
|
233
|
+
add_enum "google.analytics.data.v1beta.MetricMetadata.BlockedReason" do
|
234
|
+
value :BLOCKED_REASON_UNSPECIFIED, 0
|
235
|
+
value :NO_REVENUE_METRICS, 1
|
236
|
+
value :NO_COST_METRICS, 2
|
237
|
+
end
|
221
238
|
add_message "google.analytics.data.v1beta.DimensionCompatibility" do
|
222
239
|
proto3_optional :dimension_metadata, :message, 1, "google.analytics.data.v1beta.DimensionMetadata"
|
223
240
|
proto3_optional :compatibility, :enum, 2, "google.analytics.data.v1beta.Compatibility"
|
@@ -248,6 +265,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
248
265
|
value :TYPE_METERS, 12
|
249
266
|
value :TYPE_KILOMETERS, 13
|
250
267
|
end
|
268
|
+
add_enum "google.analytics.data.v1beta.RestrictedMetricType" do
|
269
|
+
value :RESTRICTED_METRIC_TYPE_UNSPECIFIED, 0
|
270
|
+
value :COST_DATA, 1
|
271
|
+
value :REVENUE_DATA, 2
|
272
|
+
end
|
251
273
|
add_enum "google.analytics.data.v1beta.Compatibility" do
|
252
274
|
value :COMPATIBILITY_UNSPECIFIED, 0
|
253
275
|
value :COMPATIBLE, 1
|
@@ -289,6 +311,8 @@ module Google
|
|
289
311
|
CohortsRange::Granularity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.CohortsRange.Granularity").enummodule
|
290
312
|
CohortReportSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.CohortReportSettings").msgclass
|
291
313
|
ResponseMetaData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.ResponseMetaData").msgclass
|
314
|
+
ResponseMetaData::SchemaRestrictionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse").msgclass
|
315
|
+
ResponseMetaData::SchemaRestrictionResponse::ActiveMetricRestriction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction").msgclass
|
292
316
|
DimensionHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.DimensionHeader").msgclass
|
293
317
|
MetricHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.MetricHeader").msgclass
|
294
318
|
PivotHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.PivotHeader").msgclass
|
@@ -301,10 +325,12 @@ module Google
|
|
301
325
|
QuotaStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.QuotaStatus").msgclass
|
302
326
|
DimensionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.DimensionMetadata").msgclass
|
303
327
|
MetricMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.MetricMetadata").msgclass
|
328
|
+
MetricMetadata::BlockedReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.MetricMetadata.BlockedReason").enummodule
|
304
329
|
DimensionCompatibility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.DimensionCompatibility").msgclass
|
305
330
|
MetricCompatibility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.MetricCompatibility").msgclass
|
306
331
|
MetricAggregation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.MetricAggregation").enummodule
|
307
332
|
MetricType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.MetricType").enummodule
|
333
|
+
RestrictedMetricType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.RestrictedMetricType").enummodule
|
308
334
|
Compatibility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.data.v1beta.Compatibility").enummodule
|
309
335
|
end
|
310
336
|
end
|
@@ -618,9 +618,61 @@ module Google
|
|
618
618
|
# @return [::Boolean]
|
619
619
|
# If true, indicates some buckets of dimension combinations are rolled into
|
620
620
|
# "(other)" row. This can happen for high cardinality reports.
|
621
|
+
# @!attribute [rw] schema_restriction_response
|
622
|
+
# @return [::Google::Analytics::Data::V1beta::ResponseMetaData::SchemaRestrictionResponse]
|
623
|
+
# Describes the schema restrictions actively enforced in creating this
|
624
|
+
# report. To learn more, see [Access and data-restriction
|
625
|
+
# management](https://support.google.com/analytics/answer/10851388).
|
626
|
+
# @!attribute [rw] currency_code
|
627
|
+
# @return [::String]
|
628
|
+
# The currency code used in this report. Intended to be used in formatting
|
629
|
+
# currency metrics like `purchaseRevenue` for visualization. If currency_code
|
630
|
+
# was specified in the request, this response parameter will echo the request
|
631
|
+
# parameter; otherwise, this response parameter is the property's current
|
632
|
+
# currency_code.
|
633
|
+
#
|
634
|
+
# Currency codes are string encodings of currency types from the ISO 4217
|
635
|
+
# standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD",
|
636
|
+
# "EUR", "JPY". To learn more, see
|
637
|
+
# https://support.google.com/analytics/answer/9796179.
|
638
|
+
# @!attribute [rw] time_zone
|
639
|
+
# @return [::String]
|
640
|
+
# The property's current timezone. Intended to be used to interpret
|
641
|
+
# time-based dimensions like `hour` and `minute`. Formatted as strings from
|
642
|
+
# the IANA Time Zone database (https://www.iana.org/time-zones); for example
|
643
|
+
# "America/New_York" or "Asia/Tokyo".
|
644
|
+
# @!attribute [rw] empty_reason
|
645
|
+
# @return [::String]
|
646
|
+
# If empty reason is specified, the report is empty for this reason.
|
621
647
|
class ResponseMetaData
|
622
648
|
include ::Google::Protobuf::MessageExts
|
623
649
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
650
|
+
|
651
|
+
# The schema restrictions actively enforced in creating this report. To learn
|
652
|
+
# more, see [Access and data-restriction
|
653
|
+
# management](https://support.google.com/analytics/answer/10851388).
|
654
|
+
# @!attribute [rw] active_metric_restrictions
|
655
|
+
# @return [::Array<::Google::Analytics::Data::V1beta::ResponseMetaData::SchemaRestrictionResponse::ActiveMetricRestriction>]
|
656
|
+
# All restrictions actively enforced in creating the report. For example,
|
657
|
+
# `purchaseRevenue` always has the restriction type `REVENUE_DATA`.
|
658
|
+
# However, this active response restriction is only populated if the user's
|
659
|
+
# custom role disallows access to `REVENUE_DATA`.
|
660
|
+
class SchemaRestrictionResponse
|
661
|
+
include ::Google::Protobuf::MessageExts
|
662
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
663
|
+
|
664
|
+
# A metric actively restricted in creating the report.
|
665
|
+
# @!attribute [rw] metric_name
|
666
|
+
# @return [::String]
|
667
|
+
# The name of the restricted metric.
|
668
|
+
# @!attribute [rw] restricted_metric_types
|
669
|
+
# @return [::Array<::Google::Analytics::Data::V1beta::RestrictedMetricType>]
|
670
|
+
# The reason for this metric's restriction.
|
671
|
+
class ActiveMetricRestriction
|
672
|
+
include ::Google::Protobuf::MessageExts
|
673
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
674
|
+
end
|
675
|
+
end
|
624
676
|
end
|
625
677
|
|
626
678
|
# Describes a dimension column in the report. Dimensions requested in a report
|
@@ -858,6 +910,16 @@ module Google
|
|
858
910
|
# @!attribute [rw] custom_definition
|
859
911
|
# @return [::Boolean]
|
860
912
|
# True if the metric is a custom metric for this property.
|
913
|
+
# @!attribute [rw] blocked_reasons
|
914
|
+
# @return [::Array<::Google::Analytics::Data::V1beta::MetricMetadata::BlockedReason>]
|
915
|
+
# If reasons are specified, your access is blocked to this metric for this
|
916
|
+
# property. API requests from you to this property for this metric will
|
917
|
+
# succeed; however, the report will contain only zeros for this metric. API
|
918
|
+
# requests with metric filters on blocked metrics will fail. If reasons are
|
919
|
+
# empty, you have access to this metric.
|
920
|
+
#
|
921
|
+
# To learn more, see [Access and data-restriction
|
922
|
+
# management](https://support.google.com/analytics/answer/10851388).
|
861
923
|
# @!attribute [rw] category
|
862
924
|
# @return [::String]
|
863
925
|
# The display name of the category that this metrics belongs to. Similar
|
@@ -865,6 +927,20 @@ module Google
|
|
865
927
|
class MetricMetadata
|
866
928
|
include ::Google::Protobuf::MessageExts
|
867
929
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
930
|
+
|
931
|
+
# Justifications for why this metric is blocked.
|
932
|
+
module BlockedReason
|
933
|
+
# Will never be specified in API response.
|
934
|
+
BLOCKED_REASON_UNSPECIFIED = 0
|
935
|
+
|
936
|
+
# If present, your access is blocked to revenue related metrics for this
|
937
|
+
# property, and this metric is revenue related.
|
938
|
+
NO_REVENUE_METRICS = 1
|
939
|
+
|
940
|
+
# If present, your access is blocked to cost related metrics for this
|
941
|
+
# property, and this metric is cost related.
|
942
|
+
NO_COST_METRICS = 2
|
943
|
+
end
|
868
944
|
end
|
869
945
|
|
870
946
|
# The compatibility for a single dimension.
|
@@ -957,6 +1033,19 @@ module Google
|
|
957
1033
|
TYPE_KILOMETERS = 13
|
958
1034
|
end
|
959
1035
|
|
1036
|
+
# Categories of data that you may be restricted from viewing on certain GA4
|
1037
|
+
# properties.
|
1038
|
+
module RestrictedMetricType
|
1039
|
+
# Unspecified type.
|
1040
|
+
RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0
|
1041
|
+
|
1042
|
+
# Cost metrics such as `adCost`.
|
1043
|
+
COST_DATA = 1
|
1044
|
+
|
1045
|
+
# Revenue metrics such as `purchaseRevenue`.
|
1046
|
+
REVENUE_DATA = 2
|
1047
|
+
end
|
1048
|
+
|
960
1049
|
# The compatibility types for a single dimension or metric.
|
961
1050
|
module Compatibility
|
962
1051
|
# Unspecified compatibility.
|
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.4.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: 2021-
|
11
|
+
date: 2021-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|