Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesConversionActionGoogleAnalytics4Settings

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

Overview

Settings related to a Google Analytics 4 conversion action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ResourcesConversionActionGoogleAnalytics4Settings

Returns a new instance of GoogleAdsSearchads360V23ResourcesConversionActionGoogleAnalytics4Settings.



16411
16412
16413
# File 'lib/google/apis/searchads360_v23/classes.rb', line 16411

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

Instance Attribute Details

#event_nameString

Output only. The name of the GA 4 event. Corresponds to the JSON property eventName

Returns:

  • (String)


16399
16400
16401
# File 'lib/google/apis/searchads360_v23/classes.rb', line 16399

def event_name
  @event_name
end

#property_idFixnum

Output only. The ID of the GA 4 property. Corresponds to the JSON property propertyId

Returns:

  • (Fixnum)


16404
16405
16406
# File 'lib/google/apis/searchads360_v23/classes.rb', line 16404

def property_id
  @property_id
end

#property_nameString

Output only. The name of the GA 4 property. Corresponds to the JSON property propertyName

Returns:

  • (String)


16409
16410
16411
# File 'lib/google/apis/searchads360_v23/classes.rb', line 16409

def property_name
  @property_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16416
16417
16418
16419
16420
# File 'lib/google/apis/searchads360_v23/classes.rb', line 16416

def update!(**args)
  @event_name = args[:event_name] if args.key?(:event_name)
  @property_id = args[:property_id] if args.key?(:property_id)
  @property_name = args[:property_name] if args.key?(:property_name)
end