Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent

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

A conversion event in a Google Analytics property.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaConversionEvent

Returns a new instance of GoogleAnalyticsAdminV1alphaConversionEvent.



618
619
620
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 618

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

Instance Attribute Details

#create_timeString

Output only. Time when this conversion event was created in the property. Corresponds to the JSON property createTime

Returns:

  • (String)


597
598
599
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 597

def create_time
  @create_time
end

#event_nameString

Immutable. The event name for this conversion event. Examples: 'click', ' purchase' Corresponds to the JSON property eventName

Returns:

  • (String)


603
604
605
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 603

def event_name
  @event_name
end

#is_deletableBoolean Also known as: is_deletable?

Output only. If set, this event can currently be deleted via DeleteConversionEvent. Corresponds to the JSON property isDeletable

Returns:

  • (Boolean)


609
610
611
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 609

def is_deletable
  @is_deletable
end

#nameString

Output only. Resource name of this conversion event. Format: properties/ property/conversionEvents/conversion_event Corresponds to the JSON property name

Returns:

  • (String)


616
617
618
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 616

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



623
624
625
626
627
628
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 623

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @event_name = args[:event_name] if args.key?(:event_name)
  @is_deletable = args[:is_deletable] if args.key?(:is_deletable)
  @name = args[:name] if args.key?(:name)
end