class Google::Apis::AdexchangebuyerV1_3::DirectDeal

The configuration data for an Ad Exchange direct deal.

Attributes

account_id[RW]

The account id of the buyer this deal is for. Corresponds to the JSON property `accountId` @return [Fixnum]

advertiser[RW]

The name of the advertiser this deal is for. Corresponds to the JSON property `advertiser` @return [String]

allows_alcohol[RW]

Whether the publisher for this deal is eligible for alcohol ads. Corresponds to the JSON property `allowsAlcohol` @return [Boolean]

allows_alcohol?[RW]

Whether the publisher for this deal is eligible for alcohol ads. Corresponds to the JSON property `allowsAlcohol` @return [Boolean]

buyer_account_id[RW]

The account id that this deal was negotiated for. It is either the buyer or the client that this deal was negotiated on behalf of. Corresponds to the JSON property `buyerAccountId` @return [Fixnum]

currency_code[RW]

The currency code that applies to the fixed_cpm value. If not set then assumed to be USD. Corresponds to the JSON property `currencyCode` @return [String]

deal_tier[RW]

The deal type such as programmatic reservation or fixed price and so on. Corresponds to the JSON property `dealTier` @return [String]

end_time[RW]

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` @return [Fixnum]

fixed_cpm[RW]

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` @return [Fixnum]

id[RW]

Deal id. Corresponds to the JSON property `id` @return [Fixnum]

kind[RW]

Resource type. Corresponds to the JSON property `kind` @return [String]

name[RW]

Deal name. Corresponds to the JSON property `name` @return [String]

private_exchange_min_cpm[RW]

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` @return [Fixnum]

publisher_blocks_overriden[RW]

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` @return [Boolean]

publisher_blocks_overriden?[RW]

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` @return [Boolean]

seller_network[RW]

The name of the publisher offering this direct deal. Corresponds to the JSON property `sellerNetwork` @return [String]

start_time[RW]

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` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/adexchangebuyer_v1_3/classes.rb, line 886
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/adexchangebuyer_v1_3/classes.rb, line 891
def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @advertiser = args[:advertiser] if args.key?(:advertiser)
  @allows_alcohol = args[:allows_alcohol] if args.key?(:allows_alcohol)
  @buyer_account_id = args[:buyer_account_id] if args.key?(:buyer_account_id)
  @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