Class: Google::Apis::AuthorizedbuyersmarketplaceV1::FrequencyCap

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_impressionsFixnum

The maximum number of impressions that can be served to a user within the specified time period. Corresponds to the JSON property maxImpressions

Returns:

  • (Fixnum)


939
940
941
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 939

def max_impressions
  @max_impressions
end

#time_unit_typeString

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

Returns:

  • (String)


945
946
947
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 945

def time_unit_type
  @time_unit_type
end

#time_units_countFixnum

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

Returns:

  • (Fixnum)


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