class Google::Apis::AdexchangesellerV2_0::PreferredDeal

Attributes

advertiser_name[RW]

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

buyer_network_name[RW]

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

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]

end_time[RW]

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

fixed_cpm[RW]

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

id[RW]

Unique identifier of this preferred deal. Corresponds to the JSON property `id` @return [String]

kind[RW]

Kind of resource this is, in this case adexchangeseller#preferredDeal. Corresponds to the JSON property `kind` @return [String]

start_time[RW]

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

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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