Class: Google::Apis::DisplayvideoV1::RateDetails

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

Overview

The rate related settings of the inventory source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RateDetails

Returns a new instance of RateDetails.



8422
8423
8424
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8422

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

Instance Attribute Details

#inventory_source_rate_typeString

The rate type. Acceptable values are INVENTORY_SOURCE_RATE_TYPE_CPM_FIXED, INVENTORY_SOURCE_RATE_TYPE_CPM_FLOOR, and INVENTORY_SOURCE_RATE_TYPE_CPD. Corresponds to the JSON property inventorySourceRateType

Returns:

  • (String)


8404
8405
8406
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8404

def inventory_source_rate_type
  @inventory_source_rate_type
end

#minimum_spendGoogle::Apis::DisplayvideoV1::Money

Represents an amount of money with its currency type. Corresponds to the JSON property minimumSpend



8409
8410
8411
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8409

def minimum_spend
  @minimum_spend
end

#rateGoogle::Apis::DisplayvideoV1::Money

Represents an amount of money with its currency type. Corresponds to the JSON property rate



8414
8415
8416
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8414

def rate
  @rate
end

#units_purchasedFixnum

Required for guaranteed inventory sources. The number of impressions guaranteed by the seller. Corresponds to the JSON property unitsPurchased

Returns:

  • (Fixnum)


8420
8421
8422
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8420

def units_purchased
  @units_purchased
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8427
8428
8429
8430
8431
8432
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8427

def update!(**args)
  @inventory_source_rate_type = args[:inventory_source_rate_type] if args.key?(:inventory_source_rate_type)
  @minimum_spend = args[:minimum_spend] if args.key?(:minimum_spend)
  @rate = args[:rate] if args.key?(:rate)
  @units_purchased = args[:units_purchased] if args.key?(:units_purchased)
end