Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesTargetFrequencySettings

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

Target Frequency settings for a supported product.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ServicesTargetFrequencySettings

Returns a new instance of GoogleAdsSearchads360V23ServicesTargetFrequencySettings.



55739
55740
55741
# File 'lib/google/apis/searchads360_v23/classes.rb', line 55739

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

Instance Attribute Details

#target_frequencyFixnum

Required. The target frequency goal per selected time unit. Corresponds to the JSON property targetFrequency

Returns:

  • (Fixnum)


55732
55733
55734
# File 'lib/google/apis/searchads360_v23/classes.rb', line 55732

def target_frequency
  @target_frequency
end

#time_unitString

Required. The time unit used to describe the time frame for target_frequency. Corresponds to the JSON property timeUnit

Returns:

  • (String)


55737
55738
55739
# File 'lib/google/apis/searchads360_v23/classes.rb', line 55737

def time_unit
  @time_unit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



55744
55745
55746
55747
# File 'lib/google/apis/searchads360_v23/classes.rb', line 55744

def update!(**args)
  @target_frequency = args[:target_frequency] if args.key?(:target_frequency)
  @time_unit = args[:time_unit] if args.key?(:time_unit)
end