class Google::Apis::AuthorizedbuyersmarketplaceV1::Deal

A deal represents a segment of inventory for displaying ads that contains the terms and targeting information that is used for serving as well as the deal stats and status. Note: A proposal may contain multiple deals.

Attributes

billed_buyer[RW]

Output only. When the client field is populated, this field refers to the buyer who creates and manages the client buyer and gets billed on behalf of the client buyer; when the buyer field is populated, this field is the same value as buyer. Format : ‘buyers/`buyerAccountId“ Corresponds to the JSON property `billedBuyer` @return [String]

buyer[RW]

Output only. Refers to a buyer in The Realtime-bidding API. Format: ‘buyers/` buyerAccountId“ Corresponds to the JSON property `buyer` @return [String]

client[RW]

Output only. Refers to a Client. Format: ‘buyers/`buyerAccountId`/clients/` clientAccountid“ Corresponds to the JSON property `client` @return [String]

create_time[RW]

Output only. The time of the deal creation. Corresponds to the JSON property ‘createTime` @return [String]

creative_requirements[RW]

Message captures data about the creatives in the deal. Corresponds to the JSON property ‘creativeRequirements` @return [Google::Apis::AuthorizedbuyersmarketplaceV1::CreativeRequirements]

deal_type[RW]

Output only. Type of deal. Corresponds to the JSON property ‘dealType` @return [String]

delivery_control[RW]

Message contains details about how the deal will be paced. Corresponds to the JSON property ‘deliveryControl` @return [Google::Apis::AuthorizedbuyersmarketplaceV1::DeliveryControl]

description[RW]

Output only. Free text description for the deal terms. Corresponds to the JSON property ‘description` @return [String]

display_name[RW]

Output only. The name of the deal. Maximum length of 255 unicode characters is allowed. Control characters are not allowed. Buyers cannot update this field. Note: Not to be confused with name, which is a unique identifier of the deal. Corresponds to the JSON property ‘displayName` @return [String]

estimated_gross_spend[RW]

Represents an amount of money with its currency type. Corresponds to the JSON property ‘estimatedGrossSpend` @return [Google::Apis::AuthorizedbuyersmarketplaceV1::Money]

flight_end_time[RW]

Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not necessary for Private Auction deals. Corresponds to the JSON property ‘flightEndTime` @return [String]

flight_start_time[RW]

Proposed flight start time of the deal. This will generally be stored in the granularity of one second since deal serving starts at seconds boundary. Any time specified with more granularity (for example, in milliseconds) will be truncated towards the start of time in seconds. Corresponds to the JSON property ‘flightStartTime` @return [String]

name[RW]

Immutable. The unique identifier of the deal. Auto-generated by the server when a deal is created. Format: buyers/‘accountId`/proposals/`proposalId`/ deals/`dealId` Corresponds to the JSON property `name` @return [String]

preferred_deal_terms[RW]

Pricing terms for Preferred Deals. Corresponds to the JSON property ‘preferredDealTerms` @return [Google::Apis::AuthorizedbuyersmarketplaceV1::PreferredDealTerms]

private_auction_terms[RW]

Pricing terms for Private Auctions. Corresponds to the JSON property ‘privateAuctionTerms` @return [Google::Apis::AuthorizedbuyersmarketplaceV1::PrivateAuctionTerms]

programmatic_guaranteed_terms[RW]

Pricing terms for Programmatic Guaranteed Deals. Corresponds to the JSON property ‘programmaticGuaranteedTerms` @return [Google::Apis::AuthorizedbuyersmarketplaceV1::ProgrammaticGuaranteedTerms]

proposal_revision[RW]

Output only. The revision number for the proposal and is the same value as proposal.proposal_revision. Each update to deal causes the proposal revision number to auto-increment. The buyer keeps track of the last revision number they know of and pass it in when making an update. If the head revision number on the server has since incremented, then an ABORTED error is returned during the update operation to let the buyer know that a subsequent update was made. Corresponds to the JSON property ‘proposalRevision` @return [Fixnum]

publisher_profile[RW]

Immutable. Reference to the seller on the deal. Format: ‘buyers/` buyerAccountId`/publisherProfiles/`publisherProfileId“ Corresponds to the JSON property `publisherProfile` @return [String]

seller_time_zone[RW]

Represents a time zone from the [IANA Time Zone Database](www.iana.org/ time-zones). Corresponds to the JSON property ‘sellerTimeZone` @return [Google::Apis::AuthorizedbuyersmarketplaceV1::TimeZone]

targeting[RW]

Targeting represents different criteria that can be used to target inventory. For example, they can choose to target inventory only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. Corresponds to the JSON property ‘targeting` @return [Google::Apis::AuthorizedbuyersmarketplaceV1::MarketplaceTargeting]

update_time[RW]

Output only. The time when the deal was last updated. Corresponds to the JSON property ‘updateTime` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb, line 684
def update!(**args)
  @billed_buyer = args[:billed_buyer] if args.key?(:billed_buyer)
  @buyer = args[:buyer] if args.key?(:buyer)
  @client = args[:client] if args.key?(:client)
  @create_time = args[:create_time] if args.key?(:create_time)
  @creative_requirements = args[:creative_requirements] if args.key?(:creative_requirements)
  @deal_type = args[:deal_type] if args.key?(:deal_type)
  @delivery_control = args[:delivery_control] if args.key?(:delivery_control)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @estimated_gross_spend = args[:estimated_gross_spend] if args.key?(:estimated_gross_spend)
  @flight_end_time = args[:flight_end_time] if args.key?(:flight_end_time)
  @flight_start_time = args[:flight_start_time] if args.key?(:flight_start_time)
  @name = args[:name] if args.key?(:name)
  @preferred_deal_terms = args[:preferred_deal_terms] if args.key?(:preferred_deal_terms)
  @private_auction_terms = args[:private_auction_terms] if args.key?(:private_auction_terms)
  @programmatic_guaranteed_terms = args[:programmatic_guaranteed_terms] if args.key?(:programmatic_guaranteed_terms)
  @proposal_revision = args[:proposal_revision] if args.key?(:proposal_revision)
  @publisher_profile = args[:publisher_profile] if args.key?(:publisher_profile)
  @seller_time_zone = args[:seller_time_zone] if args.key?(:seller_time_zone)
  @targeting = args[:targeting] if args.key?(:targeting)
  @update_time = args[:update_time] if args.key?(:update_time)
end