Class: Google::Apis::AdexchangesellerV1_1::PreferredDeal

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adexchangeseller_v1_1/classes.rb,
generated/google/apis/adexchangeseller_v1_1/representations.rb,
generated/google/apis/adexchangeseller_v1_1/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



497
498
499
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 497

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)


454
455
456
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 454

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)


459
460
461
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 459

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)


465
466
467
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 465

def currency_code
  @currency_code
end

#end_timeFixnum

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:

  • (Fixnum)


471
472
473
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 471

def end_time
  @end_time
end

#fixed_cpmFixnum

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:

  • (Fixnum)


479
480
481
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 479

def fixed_cpm
  @fixed_cpm
end

#idFixnum

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

Returns:

  • (Fixnum)


484
485
486
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 484

def id
  @id
end

#kindString

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

Returns:

  • (String)


489
490
491
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 489

def kind
  @kind
end

#start_timeFixnum

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:

  • (Fixnum)


495
496
497
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 495

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



502
503
504
505
506
507
508
509
510
511
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 502

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