Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEventMapping

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/analyticsadmin_v1alpha/classes.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb

Overview

Event setting conditions to match an event.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaEventMapping

Returns a new instance of GoogleAnalyticsAdminV1alphaEventMapping.



3194
3195
3196
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3194

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#event_nameString

Required. Name of the GA4 event. It must always be set. The max allowed display name length is 40 UTF-16 code units. Corresponds to the JSON property eventName

Returns:

  • (String)


3165
3166
3167
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3165

def event_name
  @event_name
end

#max_event_countFixnum

The maximum number of times the event occurred. If not set, maximum event count won't be checked. Corresponds to the JSON property maxEventCount

Returns:

  • (Fixnum)


3171
3172
3173
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3171

def max_event_count
  @max_event_count
end

#max_event_valueFloat

The maximum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, maximum event value won't be checked. Corresponds to the JSON property maxEventValue

Returns:

  • (Float)


3178
3179
3180
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3178

def max_event_value
  @max_event_value
end

#min_event_countFixnum

At least one of the following four min/max values must be set. The values set will be ANDed together to qualify an event. The minimum number of times the event occurred. If not set, minimum event count won't be checked. Corresponds to the JSON property minEventCount

Returns:

  • (Fixnum)


3185
3186
3187
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3185

def min_event_count
  @min_event_count
end

#min_event_valueFloat

The minimum revenue generated due to the event. Revenue currency will be defined at the property level. If not set, minimum event value won't be checked. Corresponds to the JSON property minEventValue

Returns:

  • (Float)


3192
3193
3194
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3192

def min_event_value
  @min_event_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3199
3200
3201
3202
3203
3204
3205
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3199

def update!(**args)
  @event_name = args[:event_name] if args.key?(:event_name)
  @max_event_count = args[:max_event_count] if args.key?(:max_event_count)
  @max_event_value = args[:max_event_value] if args.key?(:max_event_value)
  @min_event_count = args[:min_event_count] if args.key?(:min_event_count)
  @min_event_value = args[:min_event_value] if args.key?(:min_event_value)
end