Class: Google::Apis::AdexchangebuyerV1_3::DirectDeal
- Inherits:
-
Object
- Object
- Google::Apis::AdexchangebuyerV1_3::DirectDeal
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/adexchangebuyer_v1_3/classes.rb,
generated/google/apis/adexchangebuyer_v1_3/representations.rb,
generated/google/apis/adexchangebuyer_v1_3/representations.rb
Overview
The configuration data for an Ad Exchange direct deal.
Instance Attribute Summary collapse
-
#account_id ⇒ Fixnum
The account id of the buyer this deal is for.
-
#advertiser ⇒ String
The name of the advertiser this deal is for.
-
#currency_code ⇒ String
The currency code that applies to the fixed_cpm value.
-
#deal_tier ⇒ String
The deal type such as programmatic reservation or fixed price and so on.
-
#end_time ⇒ String
End time for when this deal stops being active.
-
#fixed_cpm ⇒ String
The fixed price for this direct deal.
-
#id ⇒ String
Deal id.
-
#kind ⇒ String
Resource type.
-
#name ⇒ String
Deal name.
-
#private_exchange_min_cpm ⇒ String
The minimum price for this direct deal.
-
#publisher_blocks_overriden ⇒ Boolean
(also: #publisher_blocks_overriden?)
If true, the publisher has opted to have their blocks ignored when a creative is bid with for this deal.
-
#seller_network ⇒ String
The name of the publisher offering this direct deal.
-
#start_time ⇒ String
Start time for when this deal becomes active.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DirectDeal
constructor
A new instance of DirectDeal.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DirectDeal
Returns a new instance of DirectDeal
834 835 836 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 834 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ Fixnum
The account id of the buyer this deal is for.
Corresponds to the JSON property accountId
763 764 765 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 763 def account_id @account_id end |
#advertiser ⇒ String
The name of the advertiser this deal is for.
Corresponds to the JSON property advertiser
768 769 770 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 768 def advertiser @advertiser 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
774 775 776 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 774 def currency_code @currency_code end |
#deal_tier ⇒ String
The deal type such as programmatic reservation or fixed price and so on.
Corresponds to the JSON property dealTier
779 780 781 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 779 def deal_tier @deal_tier end |
#end_time ⇒ String
End time for when this deal stops being active. If not set then this deal is
valid until manually disabled by the publisher. In seconds since the epoch.
Corresponds to the JSON property endTime
785 786 787 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 785 def end_time @end_time end |
#fixed_cpm ⇒ String
The fixed price for this direct deal. In cpm micros of currency according to
currency_code. If set, then this deal is eligible for the fixed price tier of
buying (highest priority, pay exactly the configured fixed price).
Corresponds to the JSON property fixedCpm
792 793 794 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 792 def fixed_cpm @fixed_cpm end |
#id ⇒ String
Deal id.
Corresponds to the JSON property id
797 798 799 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 797 def id @id end |
#kind ⇒ String
Resource type.
Corresponds to the JSON property kind
802 803 804 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 802 def kind @kind end |
#name ⇒ String
Deal name.
Corresponds to the JSON property name
807 808 809 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 807 def name @name end |
#private_exchange_min_cpm ⇒ String
The minimum price for this direct deal. In cpm micros of currency according to
currency_code. If set, then this deal is eligible for the private exchange
tier of buying (below fixed price priority, run as a second price auction).
Corresponds to the JSON property privateExchangeMinCpm
814 815 816 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 814 def private_exchange_min_cpm @private_exchange_min_cpm end |
#publisher_blocks_overriden ⇒ Boolean Also known as: publisher_blocks_overriden?
If true, the publisher has opted to have their blocks ignored when a creative
is bid with for this deal.
Corresponds to the JSON property publisherBlocksOverriden
820 821 822 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 820 def publisher_blocks_overriden @publisher_blocks_overriden end |
#seller_network ⇒ String
The name of the publisher offering this direct deal.
Corresponds to the JSON property sellerNetwork
826 827 828 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 826 def seller_network @seller_network end |
#start_time ⇒ String
Start time for when this deal becomes active. If not set then this deal is
active immediately upon creation. In seconds since the epoch.
Corresponds to the JSON property startTime
832 833 834 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 832 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 |
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 839 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @advertiser = args[:advertiser] if args.key?(:advertiser) @currency_code = args[:currency_code] if args.key?(:currency_code) @deal_tier = args[:deal_tier] if args.key?(:deal_tier) @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) @name = args[:name] if args.key?(:name) @private_exchange_min_cpm = args[:private_exchange_min_cpm] if args.key?(:private_exchange_min_cpm) @publisher_blocks_overriden = args[:publisher_blocks_overriden] if args.key?(:publisher_blocks_overriden) @seller_network = args[:seller_network] if args.key?(:seller_network) @start_time = args[:start_time] if args.key?(:start_time) end |