class Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal

A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.

Attributes

buyer_private_data[RW]

Buyer private data (hidden from seller). Corresponds to the JSON property `buyerPrivateData` @return [Google::Apis::AdexchangebuyerV1_4::PrivateData]

creation_time_ms[RW]

The time (ms since epoch) of the deal creation. (readonly) Corresponds to the JSON property `creationTimeMs` @return [String]

creative_pre_approval_policy[RW]

Specifies the creative pre-approval policy (buyer-readonly) Corresponds to the JSON property `creativePreApprovalPolicy` @return [String]

creative_safe_frame_compatibility[RW]

Specifies whether the creative is safeFrame compatible (buyer-readonly) Corresponds to the JSON property `creativeSafeFrameCompatibility` @return [String]

deal_id[RW]

A unique deal=id for the deal (readonly). Corresponds to the JSON property `dealId` @return [String]

deal_serving_metadata[RW]

Metadata about the serving status of this deal (readonly, writes via custom actions) Corresponds to the JSON property `dealServingMetadata` @return [Google::Apis::AdexchangebuyerV1_4::DealServingMetadata]

delivery_control[RW]

The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher. This message is assigned an id of 100 since some day we would want to model this as a protobuf extension. Corresponds to the JSON property `deliveryControl` @return [Google::Apis::AdexchangebuyerV1_4::DeliveryControl]

external_deal_id[RW]

The external deal id assigned to this deal once the deal is finalized. This is the deal-id that shows up in serving/reporting etc. (readonly) Corresponds to the JSON property `externalDealId` @return [String]

flight_end_time_ms[RW]

Proposed flight end time of the deal (ms since epoch) This will generally be stored in a granularity of a second. (updatable) Corresponds to the JSON property `flightEndTimeMs` @return [String]

flight_start_time_ms[RW]

Proposed flight start time of the deal (ms since epoch) This will generally be stored in a granularity of a second. (updatable) Corresponds to the JSON property `flightStartTimeMs` @return [String]

inventory_description[RW]

Description for the deal terms. (updatable) Corresponds to the JSON property `inventoryDescription` @return [String]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “ adexchangebuyer#marketplaceDeal”. Corresponds to the JSON property `kind` @return [String]

last_update_time_ms[RW]

The time (ms since epoch) when the deal was last updated. (readonly) Corresponds to the JSON property `lastUpdateTimeMs` @return [String]

name[RW]

The name of the deal. (updatable) Corresponds to the JSON property `name` @return [String]

product_id[RW]

The product-id from which this deal was created. (readonly, except on create) Corresponds to the JSON property `productId` @return [String]

product_revision_number[RW]

The revision number of the product that the deal was created from (readonly, except on create) Corresponds to the JSON property `productRevisionNumber` @return [String]

programmatic_creative_source[RW]

Specifies the creative source for programmatic deals, PUBLISHER means creative is provided by seller and ADVERTISR means creative is provided by buyer. ( buyer-readonly) Corresponds to the JSON property `programmaticCreativeSource` @return [String]

proposal_id[RW]

Corresponds to the JSON property `proposalId` @return [String]

seller_contacts[RW]

Optional Seller contact information for the deal (buyer-readonly) Corresponds to the JSON property `sellerContacts` @return [Array<Google::Apis::AdexchangebuyerV1_4::ContactInformation>]

shared_targetings[RW]

The shared targeting visible to buyers and sellers. Each shared targeting entity is AND'd together. (updatable) Corresponds to the JSON property `sharedTargetings` @return [Array<Google::Apis::AdexchangebuyerV1_4::SharedTargeting>]

syndication_product[RW]

The syndication product associated with the deal. (readonly, except on create) Corresponds to the JSON property `syndicationProduct` @return [String]

terms[RW]

The negotiable terms of the deal. (updatable) Corresponds to the JSON property `terms` @return [Google::Apis::AdexchangebuyerV1_4::DealTerms]

web_property_code[RW]

Corresponds to the JSON property `webPropertyCode` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/adexchangebuyer_v1_4/classes.rb, line 1710
def update!(**args)
  @buyer_private_data = args[:buyer_private_data] if args.key?(:buyer_private_data)
  @creation_time_ms = args[:creation_time_ms] if args.key?(:creation_time_ms)
  @creative_pre_approval_policy = args[:creative_pre_approval_policy] if args.key?(:creative_pre_approval_policy)
  @creative_safe_frame_compatibility = args[:creative_safe_frame_compatibility] if args.key?(:creative_safe_frame_compatibility)
  @deal_id = args[:deal_id] if args.key?(:deal_id)
  @deal_serving_metadata = args[:deal_serving_metadata] if args.key?(:deal_serving_metadata)
  @delivery_control = args[:delivery_control] if args.key?(:delivery_control)
  @external_deal_id = args[:external_deal_id] if args.key?(:external_deal_id)
  @flight_end_time_ms = args[:flight_end_time_ms] if args.key?(:flight_end_time_ms)
  @flight_start_time_ms = args[:flight_start_time_ms] if args.key?(:flight_start_time_ms)
  @inventory_description = args[:inventory_description] if args.key?(:inventory_description)
  @kind = args[:kind] if args.key?(:kind)
  @last_update_time_ms = args[:last_update_time_ms] if args.key?(:last_update_time_ms)
  @name = args[:name] if args.key?(:name)
  @product_id = args[:product_id] if args.key?(:product_id)
  @product_revision_number = args[:product_revision_number] if args.key?(:product_revision_number)
  @programmatic_creative_source = args[:programmatic_creative_source] if args.key?(:programmatic_creative_source)
  @proposal_id = args[:proposal_id] if args.key?(:proposal_id)
  @seller_contacts = args[:seller_contacts] if args.key?(:seller_contacts)
  @shared_targetings = args[:shared_targetings] if args.key?(:shared_targetings)
  @syndication_product = args[:syndication_product] if args.key?(:syndication_product)
  @terms = args[:terms] if args.key?(:terms)
  @web_property_code = args[:web_property_code] if args.key?(:web_property_code)
end