Class: Google::Apis::AdexchangesellerV2_0::PreferredDeal
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AdexchangesellerV2_0::PreferredDeal
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangeseller_v2_0/classes.rb,
 generated/google/apis/adexchangeseller_v2_0/representations.rb,
 generated/google/apis/adexchangeseller_v2_0/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #advertiser_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the advertiser this deal is for. 
- 
  
    
      #buyer_network_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the buyer network this deal is for. 
- 
  
    
      #currency_code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The currency code that applies to the fixed_cpm value. 
- 
  
    
      #end_time  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Time when this deal stops being active in seconds since the epoch (GMT). 
- 
  
    
      #fixed_cpm  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The fixed price for this preferred deal. 
- 
  
    
      #id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Unique identifier of this preferred deal. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Kind of resource this is, in this case adexchangeseller#preferredDeal. 
- 
  
    
      #start_time  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Time when this deal becomes active in seconds since the epoch (GMT). 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ PreferredDeal 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of PreferredDeal. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PreferredDeal
Returns a new instance of PreferredDeal
| 447 448 449 | # File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 447 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#advertiser_name ⇒ String
The name of the advertiser this deal is for.
Corresponds to the JSON property advertiserName
| 404 405 406 | # File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 404 def advertiser_name @advertiser_name end | 
#buyer_network_name ⇒ String
The name of the buyer network this deal is for.
Corresponds to the JSON property buyerNetworkName
| 409 410 411 | # File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 409 def buyer_network_name @buyer_network_name end | 
#currency_code ⇒ String
The currency code that applies to the fixed_cpm value. If not set then assumed
to be USD.
Corresponds to the JSON property currencyCode
| 415 416 417 | # File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 415 def currency_code @currency_code end | 
#end_time ⇒ Fixnum
Time when this deal stops being active in seconds since the epoch (GMT). If
not set then this deal is valid until manually disabled by the publisher.
Corresponds to the JSON property endTime
| 421 422 423 | # File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 421 def end_time @end_time end | 
#fixed_cpm ⇒ Fixnum
The fixed price for this preferred deal. In cpm micros of currency according
to currencyCode. If set, then this preferred deal is eligible for the fixed
price tier of buying (highest priority, pay exactly the configured fixed price)
.
Corresponds to the JSON property fixedCpm
| 429 430 431 | # File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 429 def fixed_cpm @fixed_cpm end | 
#id ⇒ Fixnum
Unique identifier of this preferred deal.
Corresponds to the JSON property id
| 434 435 436 | # File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 434 def id @id end | 
#kind ⇒ String
Kind of resource this is, in this case adexchangeseller#preferredDeal.
Corresponds to the JSON property kind
| 439 440 441 | # File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 439 def kind @kind end | 
#start_time ⇒ Fixnum
Time when this deal becomes active in seconds since the epoch (GMT). If not
set then this deal is active immediately upon creation.
Corresponds to the JSON property startTime
| 445 446 447 | # File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 445 def start_time @start_time end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 452 453 454 455 456 457 458 459 460 461 | # File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 452 def update!(**args) @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name) @buyer_network_name = args[:buyer_network_name] if args.key?(:buyer_network_name) @currency_code = args[:currency_code] if args.key?(:currency_code) @end_time = args[:end_time] if args.key?(:end_time) @fixed_cpm = args[:fixed_cpm] if args.key?(:fixed_cpm) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @start_time = args[:start_time] if args.key?(:start_time) end |