Class: Google::Apis::DfareportingV2_7::FrequencyCap

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v2_7/classes.rb,
generated/google/apis/dfareporting_v2_7/representations.rb,
generated/google/apis/dfareporting_v2_7/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



6350
6351
6352
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 6350

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

Instance Attribute Details

#durationString

Duration of time, in seconds, for this frequency cap. The maximum duration is 90 days in seconds, or 7,776,000. Corresponds to the JSON property duration

Returns:

  • (String)


6342
6343
6344
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 6342

def duration
  @duration
end

#impressionsString

Number of times an individual user can be served the ad within the specified duration. The maximum allowed is 15. Corresponds to the JSON property impressions

Returns:

  • (String)


6348
6349
6350
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 6348

def impressions
  @impressions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6355
6356
6357
6358
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 6355

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