Class: Google::Apis::AdexchangesellerV1_1::PreferredDeal
- Inherits:
-
Object
- Object
- Google::Apis::AdexchangesellerV1_1::PreferredDeal
- 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
-
#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
497 498 499 |
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 497 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
454 455 456 |
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 454 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
459 460 461 |
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 459 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
465 466 467 |
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 465 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
471 472 473 |
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 471 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
479 480 481 |
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 479 def fixed_cpm @fixed_cpm end |
#id ⇒ Fixnum
Unique identifier of this preferred deal.
Corresponds to the JSON property id
484 485 486 |
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 484 def id @id end |
#kind ⇒ String
Kind of resource this is, in this case adexchangeseller#preferredDeal.
Corresponds to the JSON property kind
489 490 491 |
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 489 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
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 |