Class: Google::Apis::AuthorizedbuyersmarketplaceV1::ProgrammaticGuaranteedTerms

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

Pricing terms for Programmatic Guaranteed Deals.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProgrammaticGuaranteedTerms

Returns a new instance of ProgrammaticGuaranteedTerms.



1475
1476
1477
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1475

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

Instance Attribute Details

#fixed_priceGoogle::Apis::AuthorizedbuyersmarketplaceV1::Price

Represents a price and a pricing type for a deal. Corresponds to the JSON property fixedPrice



1443
1444
1445
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1443

def fixed_price
  @fixed_price
end

#guaranteed_looksFixnum

Count of guaranteed looks. Corresponds to the JSON property guaranteedLooks

Returns:

  • (Fixnum)


1448
1449
1450
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1448

def guaranteed_looks
  @guaranteed_looks
end

#impression_capFixnum

The lifetime impression cap for CPM Sponsorship deals. Deal will stop serving when cap is reached. Corresponds to the JSON property impressionCap

Returns:

  • (Fixnum)


1454
1455
1456
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1454

def impression_cap
  @impression_cap
end

#minimum_daily_looksFixnum

Daily minimum looks for CPD deal types. Corresponds to the JSON property minimumDailyLooks

Returns:

  • (Fixnum)


1459
1460
1461
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1459

def minimum_daily_looks
  @minimum_daily_looks
end

#percent_share_of_voiceFixnum

For sponsorship deals, this is the percentage of the seller's eligible impressions that the deal will serve until the cap is reached. Valid value is within range 0~100. Corresponds to the JSON property percentShareOfVoice

Returns:

  • (Fixnum)


1466
1467
1468
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1466

def percent_share_of_voice
  @percent_share_of_voice
end

#reservation_typeString

The reservation type for a Programmatic Guaranteed deal. This indicates whether the number of impressions is fixed, or a percent of available impressions. If not specified, the default reservation type is STANDARD. Corresponds to the JSON property reservationType

Returns:

  • (String)


1473
1474
1475
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1473

def reservation_type
  @reservation_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1480
1481
1482
1483
1484
1485
1486
1487
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1480

def update!(**args)
  @fixed_price = args[:fixed_price] if args.key?(:fixed_price)
  @guaranteed_looks = args[:guaranteed_looks] if args.key?(:guaranteed_looks)
  @impression_cap = args[:impression_cap] if args.key?(:impression_cap)
  @minimum_daily_looks = args[:minimum_daily_looks] if args.key?(:minimum_daily_looks)
  @percent_share_of_voice = args[:percent_share_of_voice] if args.key?(:percent_share_of_voice)
  @reservation_type = args[:reservation_type] if args.key?(:reservation_type)
end