Class: Google::Apis::AuthorizedbuyersmarketplaceV1::FrequencyCap
- Inherits:
-
Object
- Object
- Google::Apis::AuthorizedbuyersmarketplaceV1::FrequencyCap
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb,
lib/google/apis/authorizedbuyersmarketplace_v1/representations.rb,
lib/google/apis/authorizedbuyersmarketplace_v1/representations.rb
Overview
Message contains details about publisher-set frequency caps of the delivery.
Instance Attribute Summary collapse
-
#max_impressions ⇒ Fixnum
The maximum number of impressions that can be served to a user within the specified time period.
-
#time_unit_type ⇒ String
The time unit.
-
#time_units_count ⇒ Fixnum
The amount of time, in the units specified by time_unit_type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FrequencyCap
constructor
A new instance of FrequencyCap.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FrequencyCap
Returns a new instance of FrequencyCap.
953 954 955 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 953 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_impressions ⇒ Fixnum
The maximum number of impressions that can be served to a user within the
specified time period.
Corresponds to the JSON property maxImpressions
939 940 941 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 939 def max_impressions @max_impressions end |
#time_unit_type ⇒ String
The time unit. Along with num_time_units defines the amount of time over which
impressions per user are counted and capped.
Corresponds to the JSON property timeUnitType
945 946 947 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 945 def time_unit_type @time_unit_type end |
#time_units_count ⇒ Fixnum
The amount of time, in the units specified by time_unit_type. Defines the
amount of time over which impressions per user are counted and capped.
Corresponds to the JSON property timeUnitsCount
951 952 953 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 951 def time_units_count @time_units_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
958 959 960 961 962 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 958 def update!(**args) @max_impressions = args[:max_impressions] if args.key?(:max_impressions) @time_unit_type = args[:time_unit_type] if args.key?(:time_unit_type) @time_units_count = args[:time_units_count] if args.key?(:time_units_count) end |