Class: Google::Apis::DfareportingV2_8::FrequencyCap

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

Overview

Frequency Cap.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ FrequencyCap

Returns a new instance of FrequencyCap



6466
6467
6468
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 6466

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

Instance Attribute Details

#durationFixnum

Duration of time, in seconds, for this frequency cap. The maximum duration is 90 days. Acceptable values are 1 to 7776000, inclusive. Corresponds to the JSON property duration

Returns:

  • (Fixnum)


6458
6459
6460
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 6458

def duration
  @duration
end

#impressionsFixnum

Number of times an individual user can be served the ad within the specified duration. Acceptable values are 1 to 15, inclusive. Corresponds to the JSON property impressions

Returns:

  • (Fixnum)


6464
6465
6466
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 6464

def impressions
  @impressions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6471
6472
6473
6474
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 6471

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