Skip to main content

deals

Overview

Namedeals
TypeResource
Idgoogledevelopers.authorizedbuyersmarketplace.deals

Fields

NameDatatypeDescription
namestringImmutable. The unique identifier of the deal. Auto-generated by the server when a deal is created. Format: buyers/{accountId}/proposals/{proposalId}/deals/{dealId}
descriptionstringOutput only. Free text description for the deal terms.
flightStartTimestringProposed 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.
updateTimestringOutput only. The time when the deal was last updated.
sellerTimeZoneobjectRepresents a time zone from the IANA Time Zone Database.
creativeRequirementsobjectMessage captures data about the creatives in the deal.
estimatedGrossSpendobjectRepresents an amount of money with its currency type.
deliveryControlobjectMessage contains details about how the deal will be paced.
flightEndTimestringProposed 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.
targetingobjectTargeting 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.
billedBuyerstringOutput 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}
dealTypestringOutput only. Type of deal.
preferredDealTermsobjectPricing terms for Preferred Deals.
privateAuctionTermsobjectPricing terms for Private Auctions.
publisherProfilestringImmutable. Reference to the seller on the deal. Format: buyers/{buyerAccountId}/publisherProfiles/{publisherProfileId}
createTimestringOutput only. The time of the deal creation.
programmaticGuaranteedTermsobjectPricing terms for Programmatic Guaranteed Deals.
proposalRevisionstringOutput 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.
buyerstringOutput only. Refers to a buyer in The Realtime-bidding API. Format: buyers/{buyerAccountId}
clientstringOutput only. Refers to a Client. Format: buyers/{buyerAccountId}/clients/{clientAccountid}
displayNamestringOutput 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.

Methods

NameAccessible byRequired ParamsDescription
buyers_proposals_deals_getSELECTbuyersId, dealsId, proposalsIdGets a deal given its name. The deal is returned at its head revision.
buyers_proposals_deals_listSELECTbuyersId, proposalsIdLists all deals in a proposal. To retrieve only the finalized revision deals regardless if a deal is being renegotiated, see the FinalizedDeals resource.
buyers_proposals_deals_batchUpdateEXECbuyersId, proposalsIdBatch updates multiple deals in the same proposal.
buyers_proposals_deals_patchEXECbuyersId, dealsId, proposalsIdUpdates the given deal at the buyer known revision number. If the server revision has advanced since the passed-in proposal.proposal_revision an ABORTED error message will be returned. The revision number is incremented by the server whenever the proposal or its constituent deals are updated. Note: The revision number is kept at a proposal level. The buyer of the API is expected to keep track of the revision number after the last update operation and send it in as part of the next update request. This way, if there are further changes on the server (for example, seller making new updates), then the server can detect conflicts and reject the proposed changes.