google-analytics-admin-v1alpha 0.6.0 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -78,7 +78,7 @@ module Google
78
78
  # Example: AUTOMOTIVE, FOOD_AND_DRINK
79
79
  # @!attribute [rw] time_zone
80
80
  # @return [::String]
81
- # Reporting Time Zone, used as the day boundary for reports, regardless of
81
+ # Required. Reporting Time Zone, used as the day boundary for reports, regardless of
82
82
  # where the data originates. If the time zone honors DST, Analytics will
83
83
  # automatically adjust for the changes.
84
84
  #
@@ -94,10 +94,15 @@ module Google
94
94
  #
95
95
  # Format: https://en.wikipedia.org/wiki/ISO_4217
96
96
  # Examples: "USD", "EUR", "JPY"
97
- # @!attribute [r] deleted
98
- # @return [::Boolean]
99
- # Output only. Indicates whether this Property is soft-deleted or not. Deleted properties
100
- # are excluded from List results unless specifically requested.
97
+ # @!attribute [r] delete_time
98
+ # @return [::Google::Protobuf::Timestamp]
99
+ # Output only. If set, the time at which this property was trashed. If not set, then this
100
+ # property is not currently in the trash can.
101
+ # @!attribute [r] expire_time
102
+ # @return [::Google::Protobuf::Timestamp]
103
+ # Output only. If set, the time at which this trashed property will be permanently
104
+ # deleted. If not set, then this property is not currently in the trash can
105
+ # and is not slated to be deleted.
101
106
  class Property
102
107
  include ::Google::Protobuf::MessageExts
103
108
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -199,12 +204,12 @@ module Google
199
204
 
200
205
  # A resource message representing a user's permissions on an Account or
201
206
  # Property resource.
202
- # @!attribute [rw] name
207
+ # @!attribute [r] name
203
208
  # @return [::String]
204
- # Example format: properties/1234/userLinks/5678
209
+ # Output only. Example format: properties/1234/userLinks/5678
205
210
  # @!attribute [rw] email_address
206
211
  # @return [::String]
207
- # Email address of the user to link
212
+ # Immutable. Email address of the user to link
208
213
  # @!attribute [rw] direct_roles
209
214
  # @return [::Array<::String>]
210
215
  # Roles directly assigned to this user for this account or property.
@@ -367,7 +372,7 @@ module Google
367
372
  # Enable personalized advertising features with this integration.
368
373
  # Automatically publish my Google Analytics audience lists and Google
369
374
  # Analytics remarketing events/parameters to the linked Google Ads account.
370
- # If this field is not set on create/update it will be defaulted to true.
375
+ # If this field is not set on create/update, it will be defaulted to true.
371
376
  # @!attribute [r] email_address
372
377
  # @return [::String]
373
378
  # Output only. Email address of the user that created the link.
@@ -451,6 +456,293 @@ module Google
451
456
  extend ::Google::Protobuf::MessageExts::ClassMethods
452
457
  end
453
458
 
459
+ # A secret value used for sending hits to Measurement Protocol.
460
+ # @!attribute [r] name
461
+ # @return [::String]
462
+ # Output only. Resource name of this secret. This secret may be a child of any type of
463
+ # stream.
464
+ # Format:
465
+ # properties/\\{property}/webDataStreams/\\{webDataStream}/measurementProtocolSecrets/\\{measurementProtocolSecret}
466
+ # @!attribute [rw] display_name
467
+ # @return [::String]
468
+ # Required. Human-readable display name for this secret.
469
+ # @!attribute [r] secret_value
470
+ # @return [::String]
471
+ # Output only. The measurement protocol secret value. Pass this value to the api_secret
472
+ # field of the Measurement Protocol API when sending hits to this
473
+ # secret's parent property.
474
+ class MeasurementProtocolSecret
475
+ include ::Google::Protobuf::MessageExts
476
+ extend ::Google::Protobuf::MessageExts::ClassMethods
477
+ end
478
+
479
+ # A set of changes within a Google Analytics account or its child properties
480
+ # that resulted from the same cause. Common causes would be updates made in the
481
+ # Google Analytics UI, changes from customer support, or automatic Google
482
+ # Analytics system changes.
483
+ # @!attribute [rw] id
484
+ # @return [::String]
485
+ # ID of this change history event. This ID is unique across Google Analytics.
486
+ # @!attribute [rw] change_time
487
+ # @return [::Google::Protobuf::Timestamp]
488
+ # Time when change was made.
489
+ # @!attribute [rw] actor_type
490
+ # @return [::Google::Analytics::Admin::V1alpha::ActorType]
491
+ # The type of actor that made this change.
492
+ # @!attribute [rw] user_actor_email
493
+ # @return [::String]
494
+ # Email address of the Google account that made the change. This will be a
495
+ # valid email address if the actor field is set to USER, and empty otherwise.
496
+ # Google accounts that have been deleted will cause an error.
497
+ # @!attribute [rw] changes_filtered
498
+ # @return [::Boolean]
499
+ # If true, then the list of changes returned was filtered, and does not
500
+ # represent all changes that occurred in this event.
501
+ # @!attribute [rw] changes
502
+ # @return [::Array<::Google::Analytics::Admin::V1alpha::ChangeHistoryChange>]
503
+ # A list of changes made in this change history event that fit the filters
504
+ # specified in SearchChangeHistoryEventsRequest.
505
+ class ChangeHistoryEvent
506
+ include ::Google::Protobuf::MessageExts
507
+ extend ::Google::Protobuf::MessageExts::ClassMethods
508
+ end
509
+
510
+ # A description of a change to a single Google Analytics resource.
511
+ # @!attribute [rw] resource
512
+ # @return [::String]
513
+ # Resource name of the resource whose changes are described by this entry.
514
+ # @!attribute [rw] action
515
+ # @return [::Google::Analytics::Admin::V1alpha::ActionType]
516
+ # The type of action that changed this resource.
517
+ # @!attribute [rw] resource_before_change
518
+ # @return [::Google::Analytics::Admin::V1alpha::ChangeHistoryChange::ChangeHistoryResource]
519
+ # Resource contents from before the change was made. If this resource was
520
+ # created in this change, this field will be missing.
521
+ # @!attribute [rw] resource_after_change
522
+ # @return [::Google::Analytics::Admin::V1alpha::ChangeHistoryChange::ChangeHistoryResource]
523
+ # Resource contents from after the change was made. If this resource was
524
+ # deleted in this change, this field will be missing.
525
+ class ChangeHistoryChange
526
+ include ::Google::Protobuf::MessageExts
527
+ extend ::Google::Protobuf::MessageExts::ClassMethods
528
+
529
+ # A snapshot of a resource as before or after the result of a change in
530
+ # change history.
531
+ # @!attribute [rw] account
532
+ # @return [::Google::Analytics::Admin::V1alpha::Account]
533
+ # A snapshot of an Account resource in change history.
534
+ # @!attribute [rw] property
535
+ # @return [::Google::Analytics::Admin::V1alpha::Property]
536
+ # A snapshot of a Property resource in change history.
537
+ # @!attribute [rw] web_data_stream
538
+ # @return [::Google::Analytics::Admin::V1alpha::WebDataStream]
539
+ # A snapshot of a WebDataStream resource in change history.
540
+ # @!attribute [rw] android_app_data_stream
541
+ # @return [::Google::Analytics::Admin::V1alpha::AndroidAppDataStream]
542
+ # A snapshot of an AndroidAppDataStream resource in change history.
543
+ # @!attribute [rw] ios_app_data_stream
544
+ # @return [::Google::Analytics::Admin::V1alpha::IosAppDataStream]
545
+ # A snapshot of an IosAppDataStream resource in change history.
546
+ # @!attribute [rw] firebase_link
547
+ # @return [::Google::Analytics::Admin::V1alpha::FirebaseLink]
548
+ # A snapshot of a FirebaseLink resource in change history.
549
+ # @!attribute [rw] google_ads_link
550
+ # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink]
551
+ # A snapshot of a GoogleAdsLink resource in change history.
552
+ # @!attribute [rw] google_signals_settings
553
+ # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings]
554
+ # A snapshot of a GoogleSignalsSettings resource in change history.
555
+ # @!attribute [rw] conversion_event
556
+ # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent]
557
+ # A snapshot of a ConversionEvent resource in change history.
558
+ # @!attribute [rw] measurement_protocol_secret
559
+ # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret]
560
+ # A snapshot of a MeasurementProtocolSecret resource in change history.
561
+ # @!attribute [rw] custom_dimension
562
+ # @return [::Google::Analytics::Admin::V1alpha::CustomDimension]
563
+ # A snapshot of a CustomDimension resource in change history.
564
+ # @!attribute [rw] custom_metric
565
+ # @return [::Google::Analytics::Admin::V1alpha::CustomMetric]
566
+ # A snapshot of a CustomMetric resource in change history.
567
+ class ChangeHistoryResource
568
+ include ::Google::Protobuf::MessageExts
569
+ extend ::Google::Protobuf::MessageExts::ClassMethods
570
+ end
571
+ end
572
+
573
+ # A conversion event in a Google Analytics property.
574
+ # @!attribute [r] name
575
+ # @return [::String]
576
+ # Output only. Resource name of this conversion event.
577
+ # Format: properties/\\{property}/conversionEvents/\\{conversion_event}
578
+ # @!attribute [rw] event_name
579
+ # @return [::String]
580
+ # Immutable. The event name for this conversion event.
581
+ # Examples: 'click', 'purchase'
582
+ # @!attribute [r] create_time
583
+ # @return [::Google::Protobuf::Timestamp]
584
+ # Output only. Time when this conversion event was created in the property.
585
+ # @!attribute [r] is_deletable
586
+ # @return [::Boolean]
587
+ # Output only. If set, this event can currently be deleted via DeleteConversionEvent.
588
+ class ConversionEvent
589
+ include ::Google::Protobuf::MessageExts
590
+ extend ::Google::Protobuf::MessageExts::ClassMethods
591
+ end
592
+
593
+ # Settings values for Google Signals. This is a singleton resource.
594
+ # @!attribute [r] name
595
+ # @return [::String]
596
+ # Output only. Resource name of this setting.
597
+ # Format: properties/\\{property_id}/googleSignalsSettings
598
+ # Example: "properties/1000/googleSignalsSettings"
599
+ # @!attribute [rw] state
600
+ # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsState]
601
+ # Status of this setting.
602
+ # @!attribute [r] consent
603
+ # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsConsent]
604
+ # Output only. Terms of Service acceptance.
605
+ class GoogleSignalsSettings
606
+ include ::Google::Protobuf::MessageExts
607
+ extend ::Google::Protobuf::MessageExts::ClassMethods
608
+ end
609
+
610
+ # A definition for a CustomDimension.
611
+ # @!attribute [r] name
612
+ # @return [::String]
613
+ # Output only. Resource name for this CustomDimension resource.
614
+ # Format: properties/\\{property}/customDimensions/\\{customDimension}
615
+ # @!attribute [rw] parameter_name
616
+ # @return [::String]
617
+ # Required. Immutable. Tagging parameter name for this custom dimension.
618
+ #
619
+ # If this is a user-scoped dimension, then this is the user property name.
620
+ # If this is an event-scoped dimension, then this is the event parameter
621
+ # name.
622
+ #
623
+ # May only contain alphanumeric and underscore characters, starting with a
624
+ # letter. Max length of 24 characters for user-scoped dimensions, 40
625
+ # characters for event-scoped dimensions.
626
+ # @!attribute [rw] display_name
627
+ # @return [::String]
628
+ # Required. Display name for this custom dimension as shown in the Analytics UI.
629
+ # Max length of 82 characters, alphanumeric plus space and underscore
630
+ # starting with a letter. Legacy system-generated display names may contain
631
+ # square brackets, but updates to this field will never permit square
632
+ # brackets.
633
+ # @!attribute [rw] description
634
+ # @return [::String]
635
+ # Optional. Description for this custom dimension. Max length of 150 characters.
636
+ # @!attribute [rw] scope
637
+ # @return [::Google::Analytics::Admin::V1alpha::CustomDimension::DimensionScope]
638
+ # Required. Immutable. The scope of this dimension.
639
+ # @!attribute [rw] disallow_ads_personalization
640
+ # @return [::Boolean]
641
+ # Optional. If set to true, sets this dimension as NPA and excludes it from ads
642
+ # personalization.
643
+ #
644
+ # This is currently only supported by user-scoped custom dimensions.
645
+ class CustomDimension
646
+ include ::Google::Protobuf::MessageExts
647
+ extend ::Google::Protobuf::MessageExts::ClassMethods
648
+
649
+ # Valid values for the scope of this dimension.
650
+ module DimensionScope
651
+ # Scope unknown or not specified.
652
+ DIMENSION_SCOPE_UNSPECIFIED = 0
653
+
654
+ # Dimension scoped to an event.
655
+ EVENT = 1
656
+
657
+ # Dimension scoped to a user.
658
+ USER = 2
659
+ end
660
+ end
661
+
662
+ # A definition for a custom metric.
663
+ # @!attribute [r] name
664
+ # @return [::String]
665
+ # Output only. Resource name for this CustomMetric resource.
666
+ # Format: properties/\\{property}/customMetrics/\\{customMetric}
667
+ # @!attribute [rw] parameter_name
668
+ # @return [::String]
669
+ # Required. Immutable. Tagging name for this custom metric.
670
+ #
671
+ # If this is an event-scoped metric, then this is the event parameter
672
+ # name.
673
+ #
674
+ # May only contain alphanumeric and underscore charactes, starting with a
675
+ # letter. Max length of 40 characters for event-scoped metrics.
676
+ # @!attribute [rw] display_name
677
+ # @return [::String]
678
+ # Required. Display name for this custom metric as shown in the Analytics UI.
679
+ # Max length of 82 characters, alphanumeric plus space and underscore
680
+ # starting with a letter. Legacy system-generated display names may contain
681
+ # square brackets, but updates to this field will never permit square
682
+ # brackets.
683
+ # @!attribute [rw] description
684
+ # @return [::String]
685
+ # Optional. Description for this custom dimension.
686
+ # Max length of 150 characters.
687
+ # @!attribute [rw] measurement_unit
688
+ # @return [::Google::Analytics::Admin::V1alpha::CustomMetric::MeasurementUnit]
689
+ # Required. Immutable. The type for the custom metric's value.
690
+ # @!attribute [rw] scope
691
+ # @return [::Google::Analytics::Admin::V1alpha::CustomMetric::MetricScope]
692
+ # Required. Immutable. The scope of this custom metric.
693
+ class CustomMetric
694
+ include ::Google::Protobuf::MessageExts
695
+ extend ::Google::Protobuf::MessageExts::ClassMethods
696
+
697
+ # Possible types of representing the custom metric's value.
698
+ #
699
+ # Currency representation may change in the future, requiring a breaking API
700
+ # change.
701
+ module MeasurementUnit
702
+ # MeasurementUnit unspecified or missing.
703
+ MEASUREMENT_UNIT_UNSPECIFIED = 0
704
+
705
+ # This metric uses default units.
706
+ STANDARD = 1
707
+
708
+ # This metric measures a currency.
709
+ CURRENCY = 2
710
+
711
+ # This metric measures feet.
712
+ FEET = 3
713
+
714
+ # This metric measures meters.
715
+ METERS = 4
716
+
717
+ # This metric measures kilometers.
718
+ KILOMETERS = 5
719
+
720
+ # This metric measures miles.
721
+ MILES = 6
722
+
723
+ # This metric measures milliseconds.
724
+ MILLISECONDS = 7
725
+
726
+ # This metric measures seconds.
727
+ SECONDS = 8
728
+
729
+ # This metric measures minutes.
730
+ MINUTES = 9
731
+
732
+ # This metric measures hours.
733
+ HOURS = 10
734
+ end
735
+
736
+ # The scope of this metric.
737
+ module MetricScope
738
+ # Scope unknown or not specified.
739
+ METRIC_SCOPE_UNSPECIFIED = 0
740
+
741
+ # Metric scoped to an event.
742
+ EVENT = 1
743
+ end
744
+ end
745
+
454
746
  # Maximum access settings that Firebase user receive on the linked Analytics
455
747
  # property.
456
748
  module MaximumUserAccess
@@ -555,6 +847,108 @@ module Google
555
847
  # Shopping
556
848
  SHOPPING = 26
557
849
  end
850
+
851
+ # Different kinds of actors that can make changes to Google Analytics
852
+ # resources.
853
+ module ActorType
854
+ # Unknown or unspecified actor type.
855
+ ACTOR_TYPE_UNSPECIFIED = 0
856
+
857
+ # Changes made by the user specified in actor_email.
858
+ USER = 1
859
+
860
+ # Changes made by the Google Analytics system.
861
+ SYSTEM = 2
862
+
863
+ # Changes made by Google Analytics support team staff.
864
+ SUPPORT = 3
865
+ end
866
+
867
+ # Types of actions that may change a resource.
868
+ module ActionType
869
+ # Action type unknown or not specified.
870
+ ACTION_TYPE_UNSPECIFIED = 0
871
+
872
+ # Resource was created in this change.
873
+ CREATED = 1
874
+
875
+ # Resource was updated in this change.
876
+ UPDATED = 2
877
+
878
+ # Resource was deleted in this change.
879
+ DELETED = 3
880
+ end
881
+
882
+ # Types of resources whose changes may be returned from change history.
883
+ module ChangeHistoryResourceType
884
+ # Resource type unknown or not specified.
885
+ CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0
886
+
887
+ # Account resource
888
+ ACCOUNT = 1
889
+
890
+ # Property resource
891
+ PROPERTY = 2
892
+
893
+ # WebDataStream resource
894
+ WEB_DATA_STREAM = 3
895
+
896
+ # AndroidAppDataStream resource
897
+ ANDROID_APP_DATA_STREAM = 4
898
+
899
+ # IosAppDataStream resource
900
+ IOS_APP_DATA_STREAM = 5
901
+
902
+ # FirebaseLink resource
903
+ FIREBASE_LINK = 6
904
+
905
+ # GoogleAdsLink resource
906
+ GOOGLE_ADS_LINK = 7
907
+
908
+ # GoogleSignalsSettings resource
909
+ GOOGLE_SIGNALS_SETTINGS = 8
910
+
911
+ # ConversionEvent resource
912
+ CONVERSION_EVENT = 9
913
+
914
+ # MeasurementProtocolSecret resource
915
+ MEASUREMENT_PROTOCOL_SECRET = 10
916
+
917
+ # CustomDimension resource
918
+ CUSTOM_DIMENSION = 11
919
+
920
+ # CustomMetric resource
921
+ CUSTOM_METRIC = 12
922
+ end
923
+
924
+ # Status of the Google Signals settings (i.e., whether this feature has been
925
+ # enabled for the property).
926
+ module GoogleSignalsState
927
+ # Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to
928
+ # represent that the user has not made an explicit choice.
929
+ GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0
930
+
931
+ # Google Signals is enabled.
932
+ GOOGLE_SIGNALS_ENABLED = 1
933
+
934
+ # Google Signals is disabled.
935
+ GOOGLE_SIGNALS_DISABLED = 2
936
+ end
937
+
938
+ # Consent field of the Google Signals settings (i.e., whether the user has
939
+ # consented to the Google Signals terms of service.)
940
+ module GoogleSignalsConsent
941
+ # Google Signals consent value defaults to
942
+ # GOOGLE_SIGNALS_CONSENT_UNSPECIFIED. This will be treated as
943
+ # GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED.
944
+ GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0
945
+
946
+ # Terms of service have been accepted
947
+ GOOGLE_SIGNALS_CONSENT_CONSENTED = 2
948
+
949
+ # Terms of service have not been accepted
950
+ GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1
951
+ end
558
952
  end
559
953
  end
560
954
  end