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.



1817
1818
1819
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1817

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)


1785
1786
1787
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1785

def create_time
  @create_time
end

#customBoolean Also known as: custom?

Output only. If set to true, this conversion event refers to a custom event. If set to false, this conversion event refers to a default event in GA. Default events typically have special meaning in GA. Default events are usually created for you by the GA system, but in some cases can be created by property admins. Custom events count towards the maximum number of custom conversion events that may be created per property. Corresponds to the JSON property custom

Returns:

  • (Boolean)


1795
1796
1797
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1795

def custom
  @custom
end

#deletableBoolean Also known as: deletable?

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

Returns:

  • (Boolean)


1802
1803
1804
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1802

def deletable
  @deletable
end

#event_nameString

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

Returns:

  • (String)


1809
1810
1811
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1809

def event_name
  @event_name
end

#nameString

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

Returns:

  • (String)


1815
1816
1817
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1815

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1822
1823
1824
1825
1826
1827
1828
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1822

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