Class: Google::Apis::DfareportingV3_5::FrequencyCap

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

Overview

Frequency Cap.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FrequencyCap

Returns a new instance of FrequencyCap.



6541
6542
6543
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 6541

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)


6533
6534
6535
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 6533

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)


6539
6540
6541
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 6539

def impressions
  @impressions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6546
6547
6548
6549
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 6546

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