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.



16285
16286
16287
# File 'lib/google/apis/searchads360_v23/classes.rb', line 16285

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)


16273
16274
16275
# File 'lib/google/apis/searchads360_v23/classes.rb', line 16273

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)


16278
16279
16280
# File 'lib/google/apis/searchads360_v23/classes.rb', line 16278

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)


16283
16284
16285
# File 'lib/google/apis/searchads360_v23/classes.rb', line 16283

def property_name
  @property_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16290
16291
16292
16293
16294
# File 'lib/google/apis/searchads360_v23/classes.rb', line 16290

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