Class: Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaConversionEvent
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaConversionEvent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsadmin_v1beta/classes.rb,
lib/google/apis/analyticsadmin_v1beta/representations.rb,
lib/google/apis/analyticsadmin_v1beta/representations.rb
Overview
A conversion event in a Google Analytics property.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#custom ⇒ Boolean
(also: #custom?)
Output only.
-
#deletable ⇒ Boolean
(also: #deletable?)
Output only.
-
#event_name ⇒ String
Immutable.
-
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAnalyticsAdminV1betaConversionEvent
constructor
A new instance of GoogleAnalyticsAdminV1betaConversionEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAnalyticsAdminV1betaConversionEvent
Returns a new instance of GoogleAnalyticsAdminV1betaConversionEvent.
377 378 379 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 377 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Time when this conversion event was created in the property.
Corresponds to the JSON property createTime
345 346 347 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 345 def create_time @create_time end |
#custom ⇒ Boolean 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
355 356 357 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 355 def custom @custom end |
#deletable ⇒ Boolean Also known as: deletable?
Output only. If set, this event can currently be deleted via
DeleteConversionEvent.
Corresponds to the JSON property deletable
362 363 364 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 362 def deletable @deletable end |
#event_name ⇒ String
Immutable. The event name for this conversion event. Examples: 'click', '
purchase'
Corresponds to the JSON property eventName
369 370 371 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 369 def event_name @event_name end |
#name ⇒ String
Output only. Resource name of this conversion event. Format: properties/
property/conversionEvents/conversion_event
Corresponds to the JSON property name
375 376 377 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 375 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
382 383 384 385 386 387 388 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 382 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 |