Class: Google::Apis::DfareportingV2_1::FrequencyCap
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_1::FrequencyCap
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/dfareporting_v2_1/classes.rb,
generated/google/apis/dfareporting_v2_1/representations.rb,
generated/google/apis/dfareporting_v2_1/representations.rb
Overview
Frequency Cap.
Instance Attribute Summary collapse
-
#duration ⇒ String
Duration of time, in seconds, for this frequency cap.
-
#impressions ⇒ String
Number of times an individual user can be served the ad within the specified duration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FrequencyCap
constructor
A new instance of FrequencyCap.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FrequencyCap
Returns a new instance of FrequencyCap
5740 5741 5742 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 5740 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration ⇒ String
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
5732 5733 5734 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 5732 def duration @duration end |
#impressions ⇒ String
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
5738 5739 5740 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 5738 def impressions @impressions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5745 5746 5747 5748 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 5745 def update!(**args) @duration = args[:duration] unless args[:duration].nil? @impressions = args[:impressions] unless args[:impressions].nil? end |