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.



54885
54886
54887
# File 'lib/google/apis/searchads360_v23/classes.rb', line 54885

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)


54878
54879
54880
# File 'lib/google/apis/searchads360_v23/classes.rb', line 54878

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)


54883
54884
54885
# File 'lib/google/apis/searchads360_v23/classes.rb', line 54883

def time_unit
  @time_unit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



54890
54891
54892
54893
# File 'lib/google/apis/searchads360_v23/classes.rb', line 54890

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