@@ -627,6 +627,13 @@ class GoogleAnalyticsAdminV1alphaAccount
627627 # @return [String]
628628 attr_accessor :display_name
629629
630+ # Output only. The URI for a Google Marketing Platform organization resource.
631+ # Only set when this account is connected to a GMP organization. Format:
632+ # marketingplatformadmin.googleapis.com/organizations/`org_id`
633+ # Corresponds to the JSON property `gmpOrganization`
634+ # @return [String]
635+ attr_accessor :gmp_organization
636+
630637 # Output only. Resource name of this account. Format: accounts/`account` Example:
631638 # "accounts/100"
632639 # Corresponds to the JSON property `name`
@@ -652,6 +659,7 @@ def update!(**args)
652659 @create_time = args [ :create_time ] if args . key? ( :create_time )
653660 @deleted = args [ :deleted ] if args . key? ( :deleted )
654661 @display_name = args [ :display_name ] if args . key? ( :display_name )
662+ @gmp_organization = args [ :gmp_organization ] if args . key? ( :gmp_organization )
655663 @name = args [ :name ] if args . key? ( :name )
656664 @region_code = args [ :region_code ] if args . key? ( :region_code )
657665 @update_time = args [ :update_time ] if args . key? ( :update_time )
@@ -3782,6 +3790,100 @@ def update!(**args)
37823790 end
37833791 end
37843792
3793+ # A key event in a Google Analytics property.
3794+ class GoogleAnalyticsAdminV1alphaKeyEvent
3795+ include Google ::Apis ::Core ::Hashable
3796+
3797+ # Required. The method by which Key Events will be counted across multiple
3798+ # events within a session.
3799+ # Corresponds to the JSON property `countingMethod`
3800+ # @return [String]
3801+ attr_accessor :counting_method
3802+
3803+ # Output only. Time when this key event was created in the property.
3804+ # Corresponds to the JSON property `createTime`
3805+ # @return [String]
3806+ attr_accessor :create_time
3807+
3808+ # Output only. If set to true, this key event refers to a custom event. If set
3809+ # to false, this key event refers to a default event in GA. Default events
3810+ # typically have special meaning in GA. Default events are usually created for
3811+ # you by the GA system, but in some cases can be created by property admins.
3812+ # Custom events count towards the maximum number of custom key events that may
3813+ # be created per property.
3814+ # Corresponds to the JSON property `custom`
3815+ # @return [Boolean]
3816+ attr_accessor :custom
3817+ alias_method :custom? , :custom
3818+
3819+ # Defines a default value/currency for a key event.
3820+ # Corresponds to the JSON property `defaultValue`
3821+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaKeyEventDefaultValue]
3822+ attr_accessor :default_value
3823+
3824+ # Output only. If set to true, this event can be deleted.
3825+ # Corresponds to the JSON property `deletable`
3826+ # @return [Boolean]
3827+ attr_accessor :deletable
3828+ alias_method :deletable? , :deletable
3829+
3830+ # Immutable. The event name for this key event. Examples: 'click', 'purchase'
3831+ # Corresponds to the JSON property `eventName`
3832+ # @return [String]
3833+ attr_accessor :event_name
3834+
3835+ # Output only. Resource name of this key event. Format: properties/`property`/
3836+ # keyEvents/`key_event`
3837+ # Corresponds to the JSON property `name`
3838+ # @return [String]
3839+ attr_accessor :name
3840+
3841+ def initialize ( **args )
3842+ update! ( **args )
3843+ end
3844+
3845+ # Update properties of this object
3846+ def update! ( **args )
3847+ @counting_method = args [ :counting_method ] if args . key? ( :counting_method )
3848+ @create_time = args [ :create_time ] if args . key? ( :create_time )
3849+ @custom = args [ :custom ] if args . key? ( :custom )
3850+ @default_value = args [ :default_value ] if args . key? ( :default_value )
3851+ @deletable = args [ :deletable ] if args . key? ( :deletable )
3852+ @event_name = args [ :event_name ] if args . key? ( :event_name )
3853+ @name = args [ :name ] if args . key? ( :name )
3854+ end
3855+ end
3856+
3857+ # Defines a default value/currency for a key event.
3858+ class GoogleAnalyticsAdminV1alphaKeyEventDefaultValue
3859+ include Google ::Apis ::Core ::Hashable
3860+
3861+ # Required. When an occurrence of this Key Event (specified by event_name) has
3862+ # no set currency this currency will be applied as the default. Must be in ISO
3863+ # 4217 currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for more
3864+ # information.
3865+ # Corresponds to the JSON property `currencyCode`
3866+ # @return [String]
3867+ attr_accessor :currency_code
3868+
3869+ # Required. This will be used to populate the "value" parameter for all
3870+ # occurrences of this Key Event (specified by event_name) where that parameter
3871+ # is unset.
3872+ # Corresponds to the JSON property `numericValue`
3873+ # @return [Float]
3874+ attr_accessor :numeric_value
3875+
3876+ def initialize ( **args )
3877+ update! ( **args )
3878+ end
3879+
3880+ # Update properties of this object
3881+ def update! ( **args )
3882+ @currency_code = args [ :currency_code ] if args . key? ( :currency_code )
3883+ @numeric_value = args [ :numeric_value ] if args . key? ( :numeric_value )
3884+ end
3885+ end
3886+
37853887 # Status information for a link proposal.
37863888 class GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails
37873889 include Google ::Apis ::Core ::Hashable
@@ -4326,6 +4428,32 @@ def update!(**args)
43264428 end
43274429 end
43284430
4431+ # Response message for ListKeyEvents RPC.
4432+ class GoogleAnalyticsAdminV1alphaListKeyEventsResponse
4433+ include Google ::Apis ::Core ::Hashable
4434+
4435+ # The requested Key Events
4436+ # Corresponds to the JSON property `keyEvents`
4437+ # @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaKeyEvent>]
4438+ attr_accessor :key_events
4439+
4440+ # A token, which can be sent as `page_token` to retrieve the next page. If this
4441+ # field is omitted, there are no subsequent pages.
4442+ # Corresponds to the JSON property `nextPageToken`
4443+ # @return [String]
4444+ attr_accessor :next_page_token
4445+
4446+ def initialize ( **args )
4447+ update! ( **args )
4448+ end
4449+
4450+ # Update properties of this object
4451+ def update! ( **args )
4452+ @key_events = args [ :key_events ] if args . key? ( :key_events )
4453+ @next_page_token = args [ :next_page_token ] if args . key? ( :next_page_token )
4454+ end
4455+ end
4456+
43294457 # Response message for ListMeasurementProtocolSecret RPC
43304458 class GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse
43314459 include Google ::Apis ::Core ::Hashable
0 commit comments