Class: Google::Apis::AdexchangesellerV2_0::PreferredDeal

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_nameString

The name of the advertiser this deal is for. Corresponds to the JSON property advertiserName

Returns:

  • (String)


404
405
406
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 404

def advertiser_name
  @advertiser_name
end

#buyer_network_nameString

The name of the buyer network this deal is for. Corresponds to the JSON property buyerNetworkName

Returns:

  • (String)


409
410
411
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 409

def buyer_network_name
  @buyer_network_name
end

#currency_codeString

The currency code that applies to the fixed_cpm value. If not set then assumed to be USD. Corresponds to the JSON property currencyCode

Returns:

  • (String)


415
416
417
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 415

def currency_code
  @currency_code
end

#end_timeString

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

Returns:

  • (String)


421
422
423
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 421

def end_time
  @end_time
end

#fixed_cpmString

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

Returns:

  • (String)


429
430
431
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 429

def fixed_cpm
  @fixed_cpm
end

#idString

Unique identifier of this preferred deal. Corresponds to the JSON property id

Returns:

  • (String)


434
435
436
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 434

def id
  @id
end

#kindString

Kind of resource this is, in this case adexchangeseller#preferredDeal. Corresponds to the JSON property kind

Returns:

  • (String)


439
440
441
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 439

def kind
  @kind
end

#start_timeString

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

Returns:

  • (String)


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