blob: 110927a98d5a68d166138f3d78dba8e9658ecd05 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="adexchangebuyer2_v2beta1.html">Ad Exchange Buyer API II</a> . <a href="adexchangebuyer2_v2beta1.accounts.html">accounts</a> . <a href="adexchangebuyer2_v2beta1.accounts.proposals.html">proposals</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#accept">accept(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070079<p class="firstline">Mark the proposal as accepted at the given revision number. If the number does not match the server's revision number an `ABORTED` error message will be returned. This call updates the proposal_state from `PROPOSED` to `BUYER_ACCEPTED`, or from `SELLER_ACCEPTED` to `FINALIZED`.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070080<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#addNote">addNote(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Create a new note and attach it to the proposal. The note is assigned a unique ID by the server. The proposal revision number will not increase when associated with a new note.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
84 <code><a href="#cancelNegotiation">cancelNegotiation(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Cancel an ongoing negotiation on a proposal. This does not cancel or end serving for the deals if the proposal has been finalized, but only cancels a negotiation unilaterally.</p>
86<p class="toc_element">
87 <code><a href="#close">close()</a></code></p>
88<p class="firstline">Close httplib2 connections.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="toc_element">
90 <code><a href="#completeSetup">completeSetup(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Update the given proposal to indicate that setup has been completed. This method is called by the buyer when the line items have been created on their end for a finalized proposal and all the required creatives have been uploaded using the creatives API. This call updates the `is_setup_completed` bit on the proposal and also notifies the seller. The server will advance the revision number of the most recent proposal.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#create">create(accountId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Create the given proposal. Each created proposal and any deals it contains are assigned a unique ID by the server.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="toc_element">
96 <code><a href="#get">get(accountId, proposalId, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097<p class="firstline">Gets a proposal given its ID. The proposal is returned at its head revision.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070099 <code><a href="#list">list(accountId, pageToken=None, pageSize=None, filter=None, filterSyntax=None, x__xgafv=None)</a></code></p>
100<p class="firstline">List proposals. A filter expression (PQL query) may be specified to filter the results. To retrieve all finalized proposals, regardless if a proposal is being renegotiated, see the FinalizedProposals resource. Note that Bidder/ChildSeat relationships differ from the usual behavior. A Bidder account can only see its child seats' proposals by specifying the ChildSeat's accountId in the request path.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101<p class="toc_element">
102 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
103<p class="firstline">Retrieves the next page of results.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#pause">pause(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106<p class="firstline">Update the given proposal to pause serving. This method will set the `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to true for all deals in the proposal. It is a no-op to pause an already-paused proposal. It is an error to call PauseProposal for a proposal that is not finalized or renegotiating.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107<p class="toc_element">
108 <code><a href="#resume">resume(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109<p class="firstline">Update the given proposal to resume serving. This method will set the `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to false for all deals in the proposal. Note that if the `has_seller_paused` bit is also set, serving will not resume until the seller also resumes. It is a no-op to resume an already-running proposal. It is an error to call ResumeProposal for a proposal that is not finalized or renegotiating.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code><a href="#update">update(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112<p class="firstline">Update the given proposal at the client known revision number. If the server revision has advanced since the passed-in `proposal.proposal_revision`, an `ABORTED` error message will be returned. Only the buyer-modifiable fields of the proposal will be updated. Note that the deals in the proposal will be updated to match the passed-in copy. If a passed-in deal does not have a `deal_id`, the server will assign a new unique ID and create the deal. If passed-in deal has a `deal_id`, it will be updated to match the passed-in copy. Any existing deals not present in the passed-in proposal will be deleted. It is an error to pass in a deal with a `deal_id` not present at head.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<h3>Method Details</h3>
114<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 <code class="details" id="accept">accept(accountId, proposalId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700116 <pre>Mark the proposal as accepted at the given revision number. If the number does not match the server&#x27;s revision number an `ABORTED` error message will be returned. This call updates the proposal_state from `PROPOSED` to `BUYER_ACCEPTED`, or from `SELLER_ACCEPTED` to `FINALIZED`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117
118Args:
119 accountId: string, Account ID of the buyer. (required)
120 proposalId: string, The ID of the proposal to accept. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122 The object takes the form of:
123
124{ # Request to accept a proposal.
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &quot;proposalRevision&quot;: &quot;A String&quot;, # The last known client revision number of the proposal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126 }
127
128 x__xgafv: string, V1 error format.
129 Allowed values
130 1 - v1 error format
131 2 - v2 error format
132
133Returns:
134 An object of the form:
135
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700136 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700137 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
138 { # A proposal may be associated to several notes.
139 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
140 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
141 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
142 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
143 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
144 },
145 ],
146 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
147 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
148 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the 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.
149 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
150 { # Contains information on how a buyer or seller can be reached.
151 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
152 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
153 },
154 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700155 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
156 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
157 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700158 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
159 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
160 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
161 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700162 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700163 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
164 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700165 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700166 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
167 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700168 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
169 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700170 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional 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 (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700171 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700172 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
173 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
174 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
175 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
176 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
177 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
178 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
179 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
180 &quot;A String&quot;,
181 ],
182 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
183 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700184 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700185 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
186 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
187 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
188 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
189 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700190 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700191 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700192 },
193 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700194 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700195 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
196 },
197 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
198 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
199 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
200 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
201 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
202 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
203 },
204 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
205 },
206 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
207 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
208 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
209 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
210 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
211 &quot;A String&quot;,
212 ],
213 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
214 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700215 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700216 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
217 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
218 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
219 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
220 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700221 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700222 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700223 },
224 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700225 ],
226 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700227 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
228 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
229 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
230 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
231 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
232 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
233 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
234 &quot;A String&quot;,
235 ],
236 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
237 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
238 },
239 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
240 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
241 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
242 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
243 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
244 },
245 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
246 },
247 },
248 ],
249 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
250 },
251 },
252 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
253 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
254 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
255 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
256 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
257 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
258 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
259 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
260 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
261 },
262 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700263 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700264 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
265 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
266 { # Represents size of a single ad slot, or a creative.
267 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
268 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
269 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
270 },
271 ],
272 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
273 { # Represents size of a single ad slot, or a creative.
274 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
275 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
276 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
277 },
278 ],
279 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700280 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
281 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700282 &quot;A String&quot;,
283 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700284 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700285 &quot;A String&quot;,
286 ],
287 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700288 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
289 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
290 &quot;A String&quot;,
291 ],
292 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
293 &quot;A String&quot;,
294 ],
295 },
296 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
297 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
298 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
299 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
300 &quot;A String&quot;,
301 ],
302 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
303 &quot;A String&quot;,
304 ],
305 },
306 },
307 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
308 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
309 &quot;A String&quot;,
310 ],
311 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
312 &quot;A String&quot;,
313 ],
314 },
315 },
316 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
317 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
318 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
319 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
320 &quot;A String&quot;,
321 ],
322 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
323 &quot;A String&quot;,
324 ],
325 },
326 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
327 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
328 &quot;A String&quot;,
329 ],
330 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
331 &quot;A String&quot;,
332 ],
333 },
334 },
335 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
336 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
337 &quot;A String&quot;,
338 ],
339 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
340 &quot;A String&quot;,
341 ],
342 },
343 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
344 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
345 &quot;A String&quot;,
346 ],
347 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
348 &quot;A String&quot;,
349 ],
350 },
351 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700352 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700353 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
354 { # Contains information on how a buyer or seller can be reached.
355 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
356 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
357 },
358 ],
359 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700360 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700361 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700362 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
363 &quot;creativeSpecifications&quot;: [
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700364 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700365 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
366 { # Represents size of a single ad slot, or a creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700367 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
368 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700369 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700370 },
371 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700372 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
373 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
374 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
375 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
376 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700377 },
378 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700379 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700380 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
381 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
382 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
383 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
384 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
385 { # A polymorphic targeting value used as part of Shared Targeting.
386 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
387 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
388 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
389 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
390 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
391 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
392 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
393 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
394 },
395 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
396 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
397 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
398 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
399 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
400 },
401 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
402 },
403 ],
404 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
405 },
406 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
407 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
408 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
409 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
410 &quot;width&quot;: 42, # The width of the creative
411 &quot;height&quot;: 42, # The height of the creative.
412 },
413 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
414 &quot;A String&quot;,
415 ],
416 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
417 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
418 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
419 &quot;width&quot;: 42, # The width of the creative
420 &quot;height&quot;: 42, # The height of the creative.
421 },
422 ],
423 },
424 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
425 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
426 },
427 ],
428 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
429 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
430 { # A polymorphic targeting value used as part of Shared Targeting.
431 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
432 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
433 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
434 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
435 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
436 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
437 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
438 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
439 },
440 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
441 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
442 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
443 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
444 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
445 },
446 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
447 },
448 ],
449 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
450 },
451 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
452 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
453 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
454 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
455 &quot;width&quot;: 42, # The width of the creative
456 &quot;height&quot;: 42, # The height of the creative.
457 },
458 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
459 &quot;A String&quot;,
460 ],
461 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
462 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
463 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
464 &quot;width&quot;: 42, # The width of the creative
465 &quot;height&quot;: 42, # The height of the creative.
466 },
467 ],
468 },
469 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
470 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
471 },
472 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700473 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700474 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700475 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700476 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
477 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
478 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. 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.
479 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
480 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
481 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
482 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700483 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700484 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # 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.
485 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
486 { # Frequency cap.
487 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
488 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
489 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
490 },
491 ],
492 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
493 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
494 },
495 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
496 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700497 },
498 ],
499 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700500 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
501 { # Contains information on how a buyer or seller can be reached.
502 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
503 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
504 },
505 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700506 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
507 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
508 },
509 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
510 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
511 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700512 }</pre>
513</div>
514
515<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700516 <code class="details" id="addNote">addNote(accountId, proposalId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700517 <pre>Create a new note and attach it to the proposal. The note is assigned a unique ID by the server. The proposal revision number will not increase when associated with a new note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700518
519Args:
520 accountId: string, Account ID of the buyer. (required)
521 proposalId: string, The ID of the proposal to attach the note to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700522 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700523 The object takes the form of:
524
525{ # Request message for adding a note to a given proposal.
Bu Sun Kim65020912020-05-20 12:08:20 -0700526 &quot;note&quot;: { # A proposal may be associated to several notes. # Details of the note to add.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700527 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700528 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700529 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700530 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700531 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700532 },
533 }
534
535 x__xgafv: string, V1 error format.
536 Allowed values
537 1 - v1 error format
538 2 - v2 error format
539
540Returns:
541 An object of the form:
542
543 { # A proposal may be associated to several notes.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700544 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700545 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700546 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700547 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700548 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700549 }</pre>
550</div>
551
552<div class="method">
553 <code class="details" id="cancelNegotiation">cancelNegotiation(accountId, proposalId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700554 <pre>Cancel an ongoing negotiation on a proposal. This does not cancel or end serving for the deals if the proposal has been finalized, but only cancels a negotiation unilaterally.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700555
556Args:
557 accountId: string, Account ID of the buyer. (required)
558 proposalId: string, The ID of the proposal to cancel negotiation for. (required)
559 body: object, The request body.
560 The object takes the form of:
561
562{ # Request to cancel an ongoing negotiation.
563 }
564
565 x__xgafv: string, V1 error format.
566 Allowed values
567 1 - v1 error format
568 2 - v2 error format
569
570Returns:
571 An object of the form:
572
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700573 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700574 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
575 { # A proposal may be associated to several notes.
576 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
577 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
578 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
579 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
580 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
581 },
582 ],
583 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
584 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
585 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the 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.
586 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
587 { # Contains information on how a buyer or seller can be reached.
588 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
589 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
590 },
591 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700592 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
593 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
594 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700595 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
596 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
597 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
598 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700599 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700600 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
601 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700602 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700603 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
604 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700605 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
606 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700607 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional 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 (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700608 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700609 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
610 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
611 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
612 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
613 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
614 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
615 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
616 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
617 &quot;A String&quot;,
618 ],
619 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
620 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700621 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700622 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
623 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
624 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
625 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
626 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700627 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700628 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700629 },
630 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700631 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700632 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
633 },
634 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
635 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
636 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
637 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
638 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
639 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
640 },
641 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
642 },
643 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
644 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
645 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
646 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
647 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
648 &quot;A String&quot;,
649 ],
650 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
651 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700652 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700653 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
654 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
655 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
656 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
657 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700658 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700659 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700660 },
661 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700662 ],
663 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700664 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
665 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
666 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
667 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
668 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
669 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
670 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
671 &quot;A String&quot;,
672 ],
673 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
674 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
675 },
676 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
677 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
678 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
679 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
680 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
681 },
682 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
683 },
684 },
685 ],
686 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
687 },
688 },
689 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
690 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
691 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
692 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
693 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
694 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
695 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
696 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
697 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
698 },
699 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700700 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700701 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
702 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
703 { # Represents size of a single ad slot, or a creative.
704 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
705 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
706 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
707 },
708 ],
709 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
710 { # Represents size of a single ad slot, or a creative.
711 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
712 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
713 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
714 },
715 ],
716 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700717 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
718 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700719 &quot;A String&quot;,
720 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700721 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700722 &quot;A String&quot;,
723 ],
724 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700725 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
726 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
727 &quot;A String&quot;,
728 ],
729 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
730 &quot;A String&quot;,
731 ],
732 },
733 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
734 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
735 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
736 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
737 &quot;A String&quot;,
738 ],
739 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
740 &quot;A String&quot;,
741 ],
742 },
743 },
744 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
745 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
746 &quot;A String&quot;,
747 ],
748 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
749 &quot;A String&quot;,
750 ],
751 },
752 },
753 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
754 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
755 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
756 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
757 &quot;A String&quot;,
758 ],
759 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
760 &quot;A String&quot;,
761 ],
762 },
763 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
764 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
765 &quot;A String&quot;,
766 ],
767 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
768 &quot;A String&quot;,
769 ],
770 },
771 },
772 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
773 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
774 &quot;A String&quot;,
775 ],
776 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
777 &quot;A String&quot;,
778 ],
779 },
780 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
781 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
782 &quot;A String&quot;,
783 ],
784 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
785 &quot;A String&quot;,
786 ],
787 },
788 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700789 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700790 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
791 { # Contains information on how a buyer or seller can be reached.
792 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
793 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
794 },
795 ],
796 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700797 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700798 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700799 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
800 &quot;creativeSpecifications&quot;: [
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700801 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700802 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
803 { # Represents size of a single ad slot, or a creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700804 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
805 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700806 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700807 },
808 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700809 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
810 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
811 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
812 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
813 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700814 },
815 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700816 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700817 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
818 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
819 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
820 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
821 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
822 { # A polymorphic targeting value used as part of Shared Targeting.
823 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
824 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
825 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
826 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
827 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
828 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
829 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
830 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
831 },
832 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
833 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
834 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
835 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
836 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
837 },
838 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
839 },
840 ],
841 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
842 },
843 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
844 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
845 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
846 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
847 &quot;width&quot;: 42, # The width of the creative
848 &quot;height&quot;: 42, # The height of the creative.
849 },
850 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
851 &quot;A String&quot;,
852 ],
853 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
854 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
855 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
856 &quot;width&quot;: 42, # The width of the creative
857 &quot;height&quot;: 42, # The height of the creative.
858 },
859 ],
860 },
861 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
862 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
863 },
864 ],
865 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
866 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
867 { # A polymorphic targeting value used as part of Shared Targeting.
868 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
869 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
870 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
871 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
872 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
873 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
874 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
875 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
876 },
877 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
878 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
879 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
880 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
881 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
882 },
883 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
884 },
885 ],
886 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
887 },
888 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
889 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
890 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
891 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
892 &quot;width&quot;: 42, # The width of the creative
893 &quot;height&quot;: 42, # The height of the creative.
894 },
895 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
896 &quot;A String&quot;,
897 ],
898 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
899 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
900 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
901 &quot;width&quot;: 42, # The width of the creative
902 &quot;height&quot;: 42, # The height of the creative.
903 },
904 ],
905 },
906 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
907 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
908 },
909 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700910 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700911 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700912 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700913 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
914 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
915 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. 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.
916 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
917 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
918 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
919 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700920 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700921 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # 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.
922 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
923 { # Frequency cap.
924 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
925 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
926 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
927 },
928 ],
929 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
930 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
931 },
932 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
933 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700934 },
935 ],
936 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700937 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
938 { # Contains information on how a buyer or seller can be reached.
939 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
940 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
941 },
942 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700943 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
944 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
945 },
946 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
947 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
948 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700949 }</pre>
950</div>
951
952<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700953 <code class="details" id="close">close()</code>
954 <pre>Close httplib2 connections.</pre>
955</div>
956
957<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700958 <code class="details" id="completeSetup">completeSetup(accountId, proposalId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700959 <pre>Update the given proposal to indicate that setup has been completed. This method is called by the buyer when the line items have been created on their end for a finalized proposal and all the required creatives have been uploaded using the creatives API. This call updates the `is_setup_completed` bit on the proposal and also notifies the seller. The server will advance the revision number of the most recent proposal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700960
961Args:
962 accountId: string, Account ID of the buyer. (required)
963 proposalId: string, The ID of the proposal to mark as setup completed. (required)
964 body: object, The request body.
965 The object takes the form of:
966
Bu Sun Kim65020912020-05-20 12:08:20 -0700967{ # Request message for indicating that the proposal&#x27;s setup step is complete.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700968 }
969
970 x__xgafv: string, V1 error format.
971 Allowed values
972 1 - v1 error format
973 2 - v2 error format
974
975Returns:
976 An object of the form:
977
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700978 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700979 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
980 { # A proposal may be associated to several notes.
981 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
982 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
983 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
984 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
985 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
986 },
987 ],
988 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
989 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
990 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the 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.
991 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
992 { # Contains information on how a buyer or seller can be reached.
993 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
994 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
995 },
996 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700997 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
998 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
999 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001000 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1001 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
1002 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
1003 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001004 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001005 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
1006 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001007 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001008 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
1009 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001010 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
1011 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001012 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional 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 (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001013 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001014 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
1015 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
1016 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
1017 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
1018 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
1019 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
1020 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
1021 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
1022 &quot;A String&quot;,
1023 ],
1024 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
1025 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001026 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001027 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1028 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1029 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1030 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1031 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001032 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001033 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001034 },
1035 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001036 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001037 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
1038 },
1039 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
1040 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
1041 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1042 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1043 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1044 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1045 },
1046 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1047 },
1048 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
1049 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
1050 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1051 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
1052 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
1053 &quot;A String&quot;,
1054 ],
1055 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
1056 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001057 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001058 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1059 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1060 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1061 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1062 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001063 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001064 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001065 },
1066 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001067 ],
1068 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001069 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
1070 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
1071 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
1072 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
1073 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1074 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
1075 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
1076 &quot;A String&quot;,
1077 ],
1078 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
1079 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1080 },
1081 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1082 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1083 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1084 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1085 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1086 },
1087 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1088 },
1089 },
1090 ],
1091 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
1092 },
1093 },
1094 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
1095 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
1096 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
1097 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
1098 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
1099 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
1100 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
1101 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
1102 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
1103 },
1104 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001105 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001106 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
1107 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
1108 { # Represents size of a single ad slot, or a creative.
1109 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1110 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001111 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001112 },
1113 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001114 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
1115 { # Represents size of a single ad slot, or a creative.
1116 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1117 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1118 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001119 },
1120 ],
1121 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001122 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
1123 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001124 &quot;A String&quot;,
1125 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001126 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001127 &quot;A String&quot;,
1128 ],
1129 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001130 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
1131 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1132 &quot;A String&quot;,
1133 ],
1134 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1135 &quot;A String&quot;,
1136 ],
1137 },
1138 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
1139 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
1140 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
1141 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
1142 &quot;A String&quot;,
1143 ],
1144 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
1145 &quot;A String&quot;,
1146 ],
1147 },
1148 },
1149 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
1150 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
1151 &quot;A String&quot;,
1152 ],
1153 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
1154 &quot;A String&quot;,
1155 ],
1156 },
1157 },
1158 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
1159 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
1160 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
1161 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1162 &quot;A String&quot;,
1163 ],
1164 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1165 &quot;A String&quot;,
1166 ],
1167 },
1168 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
1169 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1170 &quot;A String&quot;,
1171 ],
1172 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1173 &quot;A String&quot;,
1174 ],
1175 },
1176 },
1177 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
1178 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1179 &quot;A String&quot;,
1180 ],
1181 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1182 &quot;A String&quot;,
1183 ],
1184 },
1185 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
1186 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1187 &quot;A String&quot;,
1188 ],
1189 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1190 &quot;A String&quot;,
1191 ],
1192 },
1193 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001194 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001195 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
1196 { # Contains information on how a buyer or seller can be reached.
1197 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1198 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1199 },
1200 ],
1201 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001202 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001203 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001204 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
1205 &quot;creativeSpecifications&quot;: [
1206 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
1207 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
1208 { # Represents size of a single ad slot, or a creative.
1209 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1210 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1211 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1212 },
1213 ],
1214 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
1215 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1216 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1217 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1218 },
1219 },
1220 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001221 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001222 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
1223 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
1224 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
1225 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
1226 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
1227 { # A polymorphic targeting value used as part of Shared Targeting.
1228 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
1229 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1230 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
1231 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
1232 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1233 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1234 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1235 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1236 },
1237 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
1238 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1239 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1240 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1241 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1242 },
1243 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1244 },
1245 ],
1246 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1247 },
1248 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1249 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
1250 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1251 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
1252 &quot;width&quot;: 42, # The width of the creative
1253 &quot;height&quot;: 42, # The height of the creative.
1254 },
1255 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
1256 &quot;A String&quot;,
1257 ],
1258 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
1259 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
1260 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1261 &quot;width&quot;: 42, # The width of the creative
1262 &quot;height&quot;: 42, # The height of the creative.
1263 },
1264 ],
1265 },
1266 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1267 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1268 },
1269 ],
1270 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
1271 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
1272 { # A polymorphic targeting value used as part of Shared Targeting.
1273 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
1274 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1275 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
1276 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
1277 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1278 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1279 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1280 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1281 },
1282 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
1283 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1284 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1285 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1286 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1287 },
1288 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1289 },
1290 ],
1291 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1292 },
1293 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1294 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
1295 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1296 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
1297 &quot;width&quot;: 42, # The width of the creative
1298 &quot;height&quot;: 42, # The height of the creative.
1299 },
1300 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
1301 &quot;A String&quot;,
1302 ],
1303 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
1304 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
1305 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1306 &quot;width&quot;: 42, # The width of the creative
1307 &quot;height&quot;: 42, # The height of the creative.
1308 },
1309 ],
1310 },
1311 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1312 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1313 },
1314 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001315 },
1316 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001317 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001318 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1319 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
1320 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. 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.
1321 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1322 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1323 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
1324 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001325 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001326 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # 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.
1327 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
1328 { # Frequency cap.
1329 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
1330 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
1331 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
1332 },
1333 ],
1334 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
1335 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
1336 },
1337 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
1338 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001339 },
1340 ],
1341 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001342 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
1343 { # Contains information on how a buyer or seller can be reached.
1344 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1345 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1346 },
1347 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001348 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1349 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1350 },
1351 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
1352 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1353 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001354 }</pre>
1355</div>
1356
1357<div class="method">
1358 <code class="details" id="create">create(accountId, body=None, x__xgafv=None)</code>
1359 <pre>Create the given proposal. Each created proposal and any deals it contains are assigned a unique ID by the server.
1360
1361Args:
1362 accountId: string, Account ID of the buyer. (required)
1363 body: object, The request body.
1364 The object takes the form of:
1365
1366{ # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001367 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
1368 { # A proposal may be associated to several notes.
1369 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
1370 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
1371 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
1372 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1373 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
1374 },
1375 ],
1376 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
1377 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
1378 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the 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.
1379 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
1380 { # Contains information on how a buyer or seller can be reached.
1381 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1382 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1383 },
1384 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001385 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
1386 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
1387 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001388 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1389 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
1390 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
1391 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001392 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001393 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
1394 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001395 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001396 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
1397 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001398 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
1399 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001400 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional 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 (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001401 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001402 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
1403 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
1404 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
1405 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
1406 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
1407 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
1408 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
1409 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
1410 &quot;A String&quot;,
1411 ],
1412 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
1413 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001414 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001415 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1416 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1417 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1418 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1419 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001420 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001421 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001422 },
1423 },
1424 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001425 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
1426 },
1427 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
1428 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
1429 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1430 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1431 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1432 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1433 },
1434 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1435 },
1436 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
1437 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
1438 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1439 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
1440 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
1441 &quot;A String&quot;,
1442 ],
1443 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
1444 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001445 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001446 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1447 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1448 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1449 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1450 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001451 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001452 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001453 },
1454 },
1455 ],
1456 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001457 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
1458 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
1459 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
1460 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
1461 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1462 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
1463 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
1464 &quot;A String&quot;,
1465 ],
1466 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
1467 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1468 },
1469 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1470 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1471 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1472 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1473 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1474 },
1475 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1476 },
1477 },
1478 ],
1479 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
1480 },
1481 },
1482 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
1483 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
1484 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
1485 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
1486 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
1487 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
1488 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
1489 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
1490 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
1491 },
1492 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001493 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001494 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
1495 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
1496 { # Represents size of a single ad slot, or a creative.
1497 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1498 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1499 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1500 },
1501 ],
1502 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
1503 { # Represents size of a single ad slot, or a creative.
1504 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1505 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1506 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1507 },
1508 ],
1509 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001510 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
1511 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001512 &quot;A String&quot;,
1513 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001514 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001515 &quot;A String&quot;,
1516 ],
1517 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001518 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
1519 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1520 &quot;A String&quot;,
1521 ],
1522 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1523 &quot;A String&quot;,
1524 ],
1525 },
1526 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
1527 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
1528 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
1529 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
1530 &quot;A String&quot;,
1531 ],
1532 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
1533 &quot;A String&quot;,
1534 ],
1535 },
1536 },
1537 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
1538 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
1539 &quot;A String&quot;,
1540 ],
1541 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
1542 &quot;A String&quot;,
1543 ],
1544 },
1545 },
1546 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
1547 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
1548 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
1549 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1550 &quot;A String&quot;,
1551 ],
1552 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1553 &quot;A String&quot;,
1554 ],
1555 },
1556 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
1557 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1558 &quot;A String&quot;,
1559 ],
1560 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1561 &quot;A String&quot;,
1562 ],
1563 },
1564 },
1565 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
1566 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1567 &quot;A String&quot;,
1568 ],
1569 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1570 &quot;A String&quot;,
1571 ],
1572 },
1573 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
1574 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1575 &quot;A String&quot;,
1576 ],
1577 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1578 &quot;A String&quot;,
1579 ],
1580 },
1581 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001582 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001583 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
1584 { # Contains information on how a buyer or seller can be reached.
1585 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1586 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1587 },
1588 ],
1589 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001590 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001591 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001592 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
1593 &quot;creativeSpecifications&quot;: [
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001594 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001595 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
1596 { # Represents size of a single ad slot, or a creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001597 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1598 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001599 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001600 },
1601 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001602 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
1603 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1604 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1605 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1606 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001607 },
1608 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001609 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001610 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
1611 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
1612 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
1613 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
1614 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
1615 { # A polymorphic targeting value used as part of Shared Targeting.
1616 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
1617 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1618 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
1619 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
1620 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1621 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1622 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1623 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1624 },
1625 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
1626 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1627 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1628 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1629 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1630 },
1631 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1632 },
1633 ],
1634 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1635 },
1636 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1637 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
1638 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1639 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
1640 &quot;width&quot;: 42, # The width of the creative
1641 &quot;height&quot;: 42, # The height of the creative.
1642 },
1643 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
1644 &quot;A String&quot;,
1645 ],
1646 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
1647 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
1648 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1649 &quot;width&quot;: 42, # The width of the creative
1650 &quot;height&quot;: 42, # The height of the creative.
1651 },
1652 ],
1653 },
1654 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1655 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1656 },
1657 ],
1658 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
1659 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
1660 { # A polymorphic targeting value used as part of Shared Targeting.
1661 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
1662 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1663 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
1664 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
1665 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1666 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1667 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1668 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1669 },
1670 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
1671 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1672 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1673 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1674 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1675 },
1676 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1677 },
1678 ],
1679 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1680 },
1681 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1682 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
1683 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1684 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
1685 &quot;width&quot;: 42, # The width of the creative
1686 &quot;height&quot;: 42, # The height of the creative.
1687 },
1688 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
1689 &quot;A String&quot;,
1690 ],
1691 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
1692 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
1693 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1694 &quot;width&quot;: 42, # The width of the creative
1695 &quot;height&quot;: 42, # The height of the creative.
1696 },
1697 ],
1698 },
1699 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1700 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1701 },
1702 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001703 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001704 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001705 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001706 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1707 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
1708 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. 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.
1709 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1710 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1711 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
1712 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001713 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001714 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # 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.
1715 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
1716 { # Frequency cap.
1717 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
1718 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
1719 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
1720 },
1721 ],
1722 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
1723 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
1724 },
1725 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
1726 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001727 },
1728 ],
1729 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001730 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
1731 { # Contains information on how a buyer or seller can be reached.
1732 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1733 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1734 },
1735 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001736 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1737 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1738 },
1739 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
1740 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1741 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001742}
1743
1744 x__xgafv: string, V1 error format.
1745 Allowed values
1746 1 - v1 error format
1747 2 - v2 error format
1748
1749Returns:
1750 An object of the form:
1751
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001752 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001753 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
1754 { # A proposal may be associated to several notes.
1755 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
1756 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
1757 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
1758 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1759 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
1760 },
1761 ],
1762 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
1763 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
1764 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the 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.
1765 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
1766 { # Contains information on how a buyer or seller can be reached.
1767 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1768 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1769 },
1770 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001771 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
1772 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
1773 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001774 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1775 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
1776 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
1777 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001778 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001779 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
1780 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001781 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001782 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
1783 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001784 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
1785 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001786 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional 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 (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001787 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001788 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
1789 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
1790 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
1791 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
1792 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
1793 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
1794 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
1795 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
1796 &quot;A String&quot;,
1797 ],
1798 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
1799 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001800 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001801 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1802 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1803 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1804 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1805 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001806 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001807 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001808 },
1809 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001810 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001811 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
1812 },
1813 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
1814 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
1815 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1816 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1817 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1818 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1819 },
1820 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1821 },
1822 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
1823 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
1824 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1825 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
1826 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
1827 &quot;A String&quot;,
1828 ],
1829 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
1830 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001831 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001832 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1833 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1834 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1835 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1836 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001837 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001838 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001839 },
1840 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001841 ],
1842 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001843 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
1844 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
1845 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
1846 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
1847 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1848 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
1849 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
1850 &quot;A String&quot;,
1851 ],
1852 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
1853 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1854 },
1855 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1856 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1857 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1858 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1859 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1860 },
1861 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1862 },
1863 },
1864 ],
1865 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
1866 },
1867 },
1868 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
1869 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
1870 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
1871 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
1872 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
1873 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
1874 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
1875 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
1876 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
1877 },
1878 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001879 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001880 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
1881 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
1882 { # Represents size of a single ad slot, or a creative.
1883 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1884 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1885 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1886 },
1887 ],
1888 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
1889 { # Represents size of a single ad slot, or a creative.
1890 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1891 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1892 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1893 },
1894 ],
1895 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001896 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
1897 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001898 &quot;A String&quot;,
1899 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001900 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001901 &quot;A String&quot;,
1902 ],
1903 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001904 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
1905 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1906 &quot;A String&quot;,
1907 ],
1908 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1909 &quot;A String&quot;,
1910 ],
1911 },
1912 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
1913 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
1914 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
1915 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
1916 &quot;A String&quot;,
1917 ],
1918 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
1919 &quot;A String&quot;,
1920 ],
1921 },
1922 },
1923 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
1924 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
1925 &quot;A String&quot;,
1926 ],
1927 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
1928 &quot;A String&quot;,
1929 ],
1930 },
1931 },
1932 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
1933 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
1934 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
1935 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1936 &quot;A String&quot;,
1937 ],
1938 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1939 &quot;A String&quot;,
1940 ],
1941 },
1942 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
1943 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1944 &quot;A String&quot;,
1945 ],
1946 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1947 &quot;A String&quot;,
1948 ],
1949 },
1950 },
1951 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
1952 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1953 &quot;A String&quot;,
1954 ],
1955 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1956 &quot;A String&quot;,
1957 ],
1958 },
1959 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
1960 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1961 &quot;A String&quot;,
1962 ],
1963 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1964 &quot;A String&quot;,
1965 ],
1966 },
1967 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001968 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001969 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
1970 { # Contains information on how a buyer or seller can be reached.
1971 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1972 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1973 },
1974 ],
1975 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001976 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001977 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001978 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
1979 &quot;creativeSpecifications&quot;: [
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001980 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001981 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
1982 { # Represents size of a single ad slot, or a creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001983 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1984 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001985 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001986 },
1987 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001988 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
1989 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1990 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1991 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1992 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001993 },
1994 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001995 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001996 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
1997 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
1998 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
1999 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
2000 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
2001 { # A polymorphic targeting value used as part of Shared Targeting.
2002 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
2003 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2004 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2005 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
2006 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2007 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2008 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2009 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2010 },
2011 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
2012 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2013 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2014 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2015 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2016 },
2017 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2018 },
2019 ],
2020 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2021 },
2022 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2023 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
2024 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2025 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
2026 &quot;width&quot;: 42, # The width of the creative
2027 &quot;height&quot;: 42, # The height of the creative.
2028 },
2029 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
2030 &quot;A String&quot;,
2031 ],
2032 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
2033 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
2034 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2035 &quot;width&quot;: 42, # The width of the creative
2036 &quot;height&quot;: 42, # The height of the creative.
2037 },
2038 ],
2039 },
2040 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2041 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2042 },
2043 ],
2044 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
2045 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
2046 { # A polymorphic targeting value used as part of Shared Targeting.
2047 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
2048 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2049 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2050 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
2051 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2052 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2053 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2054 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2055 },
2056 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
2057 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2058 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2059 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2060 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2061 },
2062 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2063 },
2064 ],
2065 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2066 },
2067 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2068 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
2069 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2070 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
2071 &quot;width&quot;: 42, # The width of the creative
2072 &quot;height&quot;: 42, # The height of the creative.
2073 },
2074 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
2075 &quot;A String&quot;,
2076 ],
2077 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
2078 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
2079 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2080 &quot;width&quot;: 42, # The width of the creative
2081 &quot;height&quot;: 42, # The height of the creative.
2082 },
2083 ],
2084 },
2085 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2086 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2087 },
2088 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002089 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002090 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002091 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002092 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2093 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
2094 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. 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.
2095 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2096 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2097 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
2098 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002099 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002100 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # 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.
2101 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
2102 { # Frequency cap.
2103 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
2104 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
2105 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
2106 },
2107 ],
2108 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
2109 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
2110 },
2111 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
2112 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002113 },
2114 ],
2115 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002116 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
2117 { # Contains information on how a buyer or seller can be reached.
2118 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2119 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2120 },
2121 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002122 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2123 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2124 },
2125 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
2126 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2127 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002128 }</pre>
2129</div>
2130
2131<div class="method">
2132 <code class="details" id="get">get(accountId, proposalId, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002133 <pre>Gets a proposal given its ID. The proposal is returned at its head revision.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002134
2135Args:
2136 accountId: string, Account ID of the buyer. (required)
2137 proposalId: string, The unique ID of the proposal (required)
2138 x__xgafv: string, V1 error format.
2139 Allowed values
2140 1 - v1 error format
2141 2 - v2 error format
2142
2143Returns:
2144 An object of the form:
2145
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002146 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002147 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
2148 { # A proposal may be associated to several notes.
2149 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
2150 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
2151 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
2152 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2153 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
2154 },
2155 ],
2156 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
2157 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
2158 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the 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.
2159 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
2160 { # Contains information on how a buyer or seller can be reached.
2161 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2162 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2163 },
2164 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002165 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
2166 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
2167 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002168 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2169 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
2170 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
2171 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002172 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002173 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
2174 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002175 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002176 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
2177 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002178 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
2179 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002180 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional 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 (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002181 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002182 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
2183 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
2184 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
2185 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
2186 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
2187 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
2188 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
2189 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
2190 &quot;A String&quot;,
2191 ],
2192 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
2193 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002194 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002195 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2196 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2197 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2198 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2199 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002200 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002201 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002202 },
2203 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002204 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002205 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
2206 },
2207 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
2208 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
2209 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2210 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2211 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2212 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2213 },
2214 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2215 },
2216 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
2217 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
2218 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2219 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
2220 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
2221 &quot;A String&quot;,
2222 ],
2223 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
2224 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002225 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002226 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2227 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2228 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2229 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2230 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002231 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002232 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002233 },
2234 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002235 ],
2236 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002237 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
2238 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
2239 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
2240 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
2241 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2242 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
2243 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
2244 &quot;A String&quot;,
2245 ],
2246 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
2247 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2248 },
2249 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2250 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2251 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2252 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2253 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2254 },
2255 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2256 },
2257 },
2258 ],
2259 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
2260 },
2261 },
2262 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
2263 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
2264 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
2265 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
2266 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
2267 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
2268 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
2269 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
2270 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
2271 },
2272 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002273 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002274 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
2275 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
2276 { # Represents size of a single ad slot, or a creative.
2277 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2278 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2279 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2280 },
2281 ],
2282 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
2283 { # Represents size of a single ad slot, or a creative.
2284 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2285 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2286 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2287 },
2288 ],
2289 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002290 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
2291 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002292 &quot;A String&quot;,
2293 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002294 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002295 &quot;A String&quot;,
2296 ],
2297 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002298 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
2299 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2300 &quot;A String&quot;,
2301 ],
2302 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2303 &quot;A String&quot;,
2304 ],
2305 },
2306 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
2307 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
2308 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
2309 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
2310 &quot;A String&quot;,
2311 ],
2312 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
2313 &quot;A String&quot;,
2314 ],
2315 },
2316 },
2317 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
2318 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
2319 &quot;A String&quot;,
2320 ],
2321 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
2322 &quot;A String&quot;,
2323 ],
2324 },
2325 },
2326 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
2327 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
2328 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
2329 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2330 &quot;A String&quot;,
2331 ],
2332 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2333 &quot;A String&quot;,
2334 ],
2335 },
2336 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
2337 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2338 &quot;A String&quot;,
2339 ],
2340 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2341 &quot;A String&quot;,
2342 ],
2343 },
2344 },
2345 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
2346 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2347 &quot;A String&quot;,
2348 ],
2349 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2350 &quot;A String&quot;,
2351 ],
2352 },
2353 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
2354 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2355 &quot;A String&quot;,
2356 ],
2357 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2358 &quot;A String&quot;,
2359 ],
2360 },
2361 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002362 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002363 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
2364 { # Contains information on how a buyer or seller can be reached.
2365 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2366 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2367 },
2368 ],
2369 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002370 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002371 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002372 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
2373 &quot;creativeSpecifications&quot;: [
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002374 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002375 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
2376 { # Represents size of a single ad slot, or a creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002377 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2378 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002379 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002380 },
2381 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002382 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
2383 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2384 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2385 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2386 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002387 },
2388 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002389 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002390 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
2391 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
2392 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
2393 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
2394 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
2395 { # A polymorphic targeting value used as part of Shared Targeting.
2396 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
2397 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2398 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2399 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
2400 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2401 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2402 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2403 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2404 },
2405 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
2406 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2407 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2408 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2409 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2410 },
2411 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2412 },
2413 ],
2414 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2415 },
2416 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2417 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
2418 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2419 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
2420 &quot;width&quot;: 42, # The width of the creative
2421 &quot;height&quot;: 42, # The height of the creative.
2422 },
2423 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
2424 &quot;A String&quot;,
2425 ],
2426 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
2427 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
2428 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2429 &quot;width&quot;: 42, # The width of the creative
2430 &quot;height&quot;: 42, # The height of the creative.
2431 },
2432 ],
2433 },
2434 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2435 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2436 },
2437 ],
2438 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
2439 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
2440 { # A polymorphic targeting value used as part of Shared Targeting.
2441 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
2442 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2443 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2444 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
2445 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2446 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2447 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2448 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2449 },
2450 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
2451 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2452 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2453 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2454 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2455 },
2456 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2457 },
2458 ],
2459 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2460 },
2461 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2462 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
2463 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2464 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
2465 &quot;width&quot;: 42, # The width of the creative
2466 &quot;height&quot;: 42, # The height of the creative.
2467 },
2468 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
2469 &quot;A String&quot;,
2470 ],
2471 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
2472 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
2473 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2474 &quot;width&quot;: 42, # The width of the creative
2475 &quot;height&quot;: 42, # The height of the creative.
2476 },
2477 ],
2478 },
2479 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2480 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2481 },
2482 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002483 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002484 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002485 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002486 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2487 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
2488 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. 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.
2489 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2490 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2491 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
2492 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002493 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002494 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # 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.
2495 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
2496 { # Frequency cap.
2497 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
2498 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
2499 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
2500 },
2501 ],
2502 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
2503 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
2504 },
2505 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
2506 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002507 },
2508 ],
2509 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002510 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
2511 { # Contains information on how a buyer or seller can be reached.
2512 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2513 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2514 },
2515 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002516 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2517 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2518 },
2519 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
2520 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2521 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002522 }</pre>
2523</div>
2524
2525<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002526 <code class="details" id="list">list(accountId, pageToken=None, pageSize=None, filter=None, filterSyntax=None, x__xgafv=None)</code>
2527 <pre>List proposals. A filter expression (PQL query) may be specified to filter the results. To retrieve all finalized proposals, regardless if a proposal is being renegotiated, see the FinalizedProposals resource. Note that Bidder/ChildSeat relationships differ from the usual behavior. A Bidder account can only see its child seats&#x27; proposals by specifying the ChildSeat&#x27;s accountId in the request path.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002528
2529Args:
2530 accountId: string, Account ID of the buyer. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002531 pageToken: string, The page token as returned from ListProposalsResponse.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002532 pageSize: integer, Requested page size. The server may return fewer results than requested. If unspecified, the server will pick an appropriate default.
2533 filter: string, An optional PQL filter query used to query for proposals. Nested repeated fields, such as proposal.deals.targetingCriterion, cannot be filtered.
2534 filterSyntax: string, Syntax the filter is written in. Current implementation defaults to PQL but in the future it will be LIST_FILTER.
2535 Allowed values
2536 FILTER_SYNTAX_UNSPECIFIED - A placeholder for an undefined filter syntax.
2537 PQL - PQL query syntax. Visit https://developers.google.com/ad-manager/api/pqlreference for PQL documentation and examples.
2538 LIST_FILTER - API list filtering syntax. Read about syntax and usage at https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.
Bu Sun Kim65020912020-05-20 12:08:20 -07002539 x__xgafv: string, V1 error format.
2540 Allowed values
2541 1 - v1 error format
2542 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002543
2544Returns:
2545 An object of the form:
2546
2547 { # Response message for listing proposals.
Bu Sun Kim65020912020-05-20 12:08:20 -07002548 &quot;proposals&quot;: [ # The list of proposals.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002549 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002550 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
2551 { # A proposal may be associated to several notes.
2552 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
2553 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
2554 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
2555 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2556 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
2557 },
2558 ],
2559 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
2560 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
2561 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the 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.
2562 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
2563 { # Contains information on how a buyer or seller can be reached.
2564 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2565 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2566 },
2567 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002568 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
2569 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
2570 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002571 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2572 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
2573 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
2574 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002575 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002576 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
2577 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002578 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002579 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
2580 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002581 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
2582 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002583 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional 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 (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002584 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002585 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
2586 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
2587 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
2588 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
2589 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
2590 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
2591 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
2592 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
2593 &quot;A String&quot;,
2594 ],
2595 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
2596 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002597 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002598 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2599 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2600 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2601 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2602 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002603 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002604 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002605 },
2606 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002607 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002608 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
2609 },
2610 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
2611 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
2612 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2613 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2614 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2615 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2616 },
2617 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2618 },
2619 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
2620 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
2621 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2622 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
2623 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
2624 &quot;A String&quot;,
2625 ],
2626 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
2627 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002628 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002629 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2630 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2631 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2632 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2633 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002634 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002635 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002636 },
2637 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002638 ],
2639 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002640 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
2641 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
2642 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
2643 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
2644 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2645 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
2646 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
2647 &quot;A String&quot;,
2648 ],
2649 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
2650 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2651 },
2652 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2653 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2654 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2655 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2656 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2657 },
2658 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2659 },
2660 },
2661 ],
2662 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
2663 },
2664 },
2665 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
2666 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
2667 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
2668 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
2669 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
2670 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
2671 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
2672 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
2673 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
2674 },
2675 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002676 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002677 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
2678 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
2679 { # Represents size of a single ad slot, or a creative.
2680 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2681 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2682 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2683 },
2684 ],
2685 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
2686 { # Represents size of a single ad slot, or a creative.
2687 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2688 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2689 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2690 },
2691 ],
2692 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002693 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
2694 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002695 &quot;A String&quot;,
2696 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002697 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002698 &quot;A String&quot;,
2699 ],
2700 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002701 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
2702 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2703 &quot;A String&quot;,
2704 ],
2705 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2706 &quot;A String&quot;,
2707 ],
2708 },
2709 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
2710 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
2711 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
2712 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
2713 &quot;A String&quot;,
2714 ],
2715 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
2716 &quot;A String&quot;,
2717 ],
2718 },
2719 },
2720 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
2721 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
2722 &quot;A String&quot;,
2723 ],
2724 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
2725 &quot;A String&quot;,
2726 ],
2727 },
2728 },
2729 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
2730 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
2731 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
2732 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2733 &quot;A String&quot;,
2734 ],
2735 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2736 &quot;A String&quot;,
2737 ],
2738 },
2739 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
2740 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2741 &quot;A String&quot;,
2742 ],
2743 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2744 &quot;A String&quot;,
2745 ],
2746 },
2747 },
2748 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
2749 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2750 &quot;A String&quot;,
2751 ],
2752 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2753 &quot;A String&quot;,
2754 ],
2755 },
2756 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
2757 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2758 &quot;A String&quot;,
2759 ],
2760 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2761 &quot;A String&quot;,
2762 ],
2763 },
2764 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002765 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002766 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
2767 { # Contains information on how a buyer or seller can be reached.
2768 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2769 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2770 },
2771 ],
2772 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002773 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002774 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002775 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
2776 &quot;creativeSpecifications&quot;: [
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002777 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002778 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
2779 { # Represents size of a single ad slot, or a creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002780 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2781 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002782 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002783 },
2784 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002785 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
2786 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2787 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2788 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2789 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002790 },
2791 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002792 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002793 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
2794 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
2795 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
2796 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
2797 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
2798 { # A polymorphic targeting value used as part of Shared Targeting.
2799 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
2800 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2801 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2802 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
2803 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2804 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2805 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2806 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2807 },
2808 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
2809 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2810 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2811 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2812 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2813 },
2814 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2815 },
2816 ],
2817 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2818 },
2819 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2820 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
2821 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2822 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
2823 &quot;width&quot;: 42, # The width of the creative
2824 &quot;height&quot;: 42, # The height of the creative.
2825 },
2826 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
2827 &quot;A String&quot;,
2828 ],
2829 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
2830 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
2831 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2832 &quot;width&quot;: 42, # The width of the creative
2833 &quot;height&quot;: 42, # The height of the creative.
2834 },
2835 ],
2836 },
2837 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2838 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2839 },
2840 ],
2841 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
2842 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
2843 { # A polymorphic targeting value used as part of Shared Targeting.
2844 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
2845 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2846 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2847 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
2848 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2849 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2850 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2851 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2852 },
2853 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
2854 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2855 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2856 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2857 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2858 },
2859 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2860 },
2861 ],
2862 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2863 },
2864 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2865 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
2866 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2867 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
2868 &quot;width&quot;: 42, # The width of the creative
2869 &quot;height&quot;: 42, # The height of the creative.
2870 },
2871 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
2872 &quot;A String&quot;,
2873 ],
2874 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
2875 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
2876 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2877 &quot;width&quot;: 42, # The width of the creative
2878 &quot;height&quot;: 42, # The height of the creative.
2879 },
2880 ],
2881 },
2882 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2883 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2884 },
2885 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002886 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002887 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002888 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002889 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2890 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
2891 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. 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.
2892 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2893 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2894 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
2895 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002896 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002897 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # 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.
2898 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
2899 { # Frequency cap.
2900 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
2901 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
2902 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
2903 },
2904 ],
2905 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
2906 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
2907 },
2908 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
2909 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002910 },
2911 ],
2912 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002913 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
2914 { # Contains information on how a buyer or seller can be reached.
2915 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2916 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2917 },
2918 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002919 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2920 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2921 },
2922 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
2923 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2924 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002925 },
2926 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002927 &quot;nextPageToken&quot;: &quot;A String&quot;, # Continuation token for fetching the next page of results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002928 }</pre>
2929</div>
2930
2931<div class="method">
2932 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2933 <pre>Retrieves the next page of results.
2934
2935Args:
2936 previous_request: The request for the previous page. (required)
2937 previous_response: The response from the request for the previous page. (required)
2938
2939Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002940 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002941 page. Returns None if there are no more items in the collection.
2942 </pre>
2943</div>
2944
2945<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002946 <code class="details" id="pause">pause(accountId, proposalId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002947 <pre>Update the given proposal to pause serving. This method will set the `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to true for all deals in the proposal. It is a no-op to pause an already-paused proposal. It is an error to call PauseProposal for a proposal that is not finalized or renegotiating.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002948
2949Args:
2950 accountId: string, Account ID of the buyer. (required)
2951 proposalId: string, The ID of the proposal to pause. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002952 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002953 The object takes the form of:
2954
2955{ # Request message to pause serving for an already-finalized proposal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002956 &quot;reason&quot;: &quot;A String&quot;, # The reason why the proposal is being paused. This human readable message will be displayed in the seller&#x27;s UI. (Max length: 1000 unicode code units.)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002957 }
2958
2959 x__xgafv: string, V1 error format.
2960 Allowed values
2961 1 - v1 error format
2962 2 - v2 error format
2963
2964Returns:
2965 An object of the form:
2966
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002967 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002968 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
2969 { # A proposal may be associated to several notes.
2970 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
2971 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
2972 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
2973 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2974 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
2975 },
2976 ],
2977 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
2978 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
2979 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the 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.
2980 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
2981 { # Contains information on how a buyer or seller can be reached.
2982 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2983 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2984 },
2985 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002986 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
2987 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
2988 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002989 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2990 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
2991 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
2992 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002993 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002994 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
2995 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002996 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002997 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
2998 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002999 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
3000 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003001 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional 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 (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003002 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003003 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
3004 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
3005 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
3006 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
3007 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
3008 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
3009 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
3010 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
3011 &quot;A String&quot;,
3012 ],
3013 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
3014 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003015 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003016 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3017 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3018 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3019 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3020 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003021 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003022 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003023 },
3024 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003025 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003026 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
3027 },
3028 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
3029 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
3030 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3031 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3032 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3033 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3034 },
3035 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3036 },
3037 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
3038 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
3039 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3040 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
3041 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
3042 &quot;A String&quot;,
3043 ],
3044 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
3045 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003046 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003047 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3048 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3049 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3050 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3051 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003052 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003053 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003054 },
3055 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003056 ],
3057 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003058 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
3059 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
3060 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
3061 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
3062 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3063 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
3064 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
3065 &quot;A String&quot;,
3066 ],
3067 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
3068 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3069 },
3070 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3071 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3072 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3073 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3074 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3075 },
3076 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3077 },
3078 },
3079 ],
3080 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
3081 },
3082 },
3083 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
3084 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
3085 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
3086 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
3087 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
3088 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
3089 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
3090 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
3091 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
3092 },
3093 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003094 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003095 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
3096 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
3097 { # Represents size of a single ad slot, or a creative.
3098 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3099 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3100 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3101 },
3102 ],
3103 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
3104 { # Represents size of a single ad slot, or a creative.
3105 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3106 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3107 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3108 },
3109 ],
3110 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003111 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
3112 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003113 &quot;A String&quot;,
3114 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003115 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003116 &quot;A String&quot;,
3117 ],
3118 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003119 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
3120 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3121 &quot;A String&quot;,
3122 ],
3123 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3124 &quot;A String&quot;,
3125 ],
3126 },
3127 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
3128 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
3129 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
3130 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
3131 &quot;A String&quot;,
3132 ],
3133 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
3134 &quot;A String&quot;,
3135 ],
3136 },
3137 },
3138 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
3139 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
3140 &quot;A String&quot;,
3141 ],
3142 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
3143 &quot;A String&quot;,
3144 ],
3145 },
3146 },
3147 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
3148 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
3149 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
3150 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3151 &quot;A String&quot;,
3152 ],
3153 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3154 &quot;A String&quot;,
3155 ],
3156 },
3157 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
3158 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3159 &quot;A String&quot;,
3160 ],
3161 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3162 &quot;A String&quot;,
3163 ],
3164 },
3165 },
3166 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
3167 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3168 &quot;A String&quot;,
3169 ],
3170 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3171 &quot;A String&quot;,
3172 ],
3173 },
3174 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
3175 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3176 &quot;A String&quot;,
3177 ],
3178 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3179 &quot;A String&quot;,
3180 ],
3181 },
3182 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003183 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003184 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
3185 { # Contains information on how a buyer or seller can be reached.
3186 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3187 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3188 },
3189 ],
3190 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003191 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003192 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003193 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
3194 &quot;creativeSpecifications&quot;: [
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003195 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003196 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
3197 { # Represents size of a single ad slot, or a creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003198 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3199 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003200 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003201 },
3202 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003203 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
3204 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3205 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3206 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3207 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003208 },
3209 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003210 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003211 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
3212 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
3213 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
3214 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
3215 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
3216 { # A polymorphic targeting value used as part of Shared Targeting.
3217 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
3218 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3219 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3220 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
3221 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3222 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3223 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3224 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3225 },
3226 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
3227 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3228 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3229 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3230 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3231 },
3232 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3233 },
3234 ],
3235 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3236 },
3237 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3238 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
3239 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3240 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
3241 &quot;width&quot;: 42, # The width of the creative
3242 &quot;height&quot;: 42, # The height of the creative.
3243 },
3244 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
3245 &quot;A String&quot;,
3246 ],
3247 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
3248 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
3249 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3250 &quot;width&quot;: 42, # The width of the creative
3251 &quot;height&quot;: 42, # The height of the creative.
3252 },
3253 ],
3254 },
3255 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3256 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3257 },
3258 ],
3259 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
3260 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
3261 { # A polymorphic targeting value used as part of Shared Targeting.
3262 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
3263 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3264 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3265 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
3266 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3267 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3268 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3269 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3270 },
3271 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
3272 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3273 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3274 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3275 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3276 },
3277 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3278 },
3279 ],
3280 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3281 },
3282 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3283 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
3284 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3285 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
3286 &quot;width&quot;: 42, # The width of the creative
3287 &quot;height&quot;: 42, # The height of the creative.
3288 },
3289 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
3290 &quot;A String&quot;,
3291 ],
3292 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
3293 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
3294 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3295 &quot;width&quot;: 42, # The width of the creative
3296 &quot;height&quot;: 42, # The height of the creative.
3297 },
3298 ],
3299 },
3300 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3301 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3302 },
3303 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003304 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003305 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003306 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003307 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3308 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
3309 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. 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.
3310 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3311 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3312 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
3313 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003314 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003315 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # 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.
3316 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
3317 { # Frequency cap.
3318 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
3319 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
3320 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
3321 },
3322 ],
3323 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
3324 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
3325 },
3326 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
3327 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003328 },
3329 ],
3330 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003331 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
3332 { # Contains information on how a buyer or seller can be reached.
3333 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3334 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3335 },
3336 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003337 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3338 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3339 },
3340 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
3341 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3342 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003343 }</pre>
3344</div>
3345
3346<div class="method">
3347 <code class="details" id="resume">resume(accountId, proposalId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003348 <pre>Update the given proposal to resume serving. This method will set the `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to false for all deals in the proposal. Note that if the `has_seller_paused` bit is also set, serving will not resume until the seller also resumes. It is a no-op to resume an already-running proposal. It is an error to call ResumeProposal for a proposal that is not finalized or renegotiating.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003349
3350Args:
3351 accountId: string, Account ID of the buyer. (required)
3352 proposalId: string, The ID of the proposal to resume. (required)
3353 body: object, The request body.
3354 The object takes the form of:
3355
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003356{ # Request message to resume (unpause) serving for an already-finalized proposal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003357 }
3358
3359 x__xgafv: string, V1 error format.
3360 Allowed values
3361 1 - v1 error format
3362 2 - v2 error format
3363
3364Returns:
3365 An object of the form:
3366
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003367 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003368 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
3369 { # A proposal may be associated to several notes.
3370 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
3371 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
3372 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
3373 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3374 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
3375 },
3376 ],
3377 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
3378 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
3379 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the 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.
3380 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
3381 { # Contains information on how a buyer or seller can be reached.
3382 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3383 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3384 },
3385 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003386 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
3387 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
3388 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003389 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3390 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
3391 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
3392 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003393 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003394 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
3395 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003396 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003397 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
3398 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003399 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
3400 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003401 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional 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 (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003402 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003403 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
3404 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
3405 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
3406 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
3407 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
3408 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
3409 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
3410 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
3411 &quot;A String&quot;,
3412 ],
3413 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
3414 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003415 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003416 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3417 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3418 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3419 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3420 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003421 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003422 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003423 },
3424 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003425 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003426 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
3427 },
3428 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
3429 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
3430 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3431 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3432 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3433 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3434 },
3435 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3436 },
3437 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
3438 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
3439 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3440 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
3441 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
3442 &quot;A String&quot;,
3443 ],
3444 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
3445 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003446 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003447 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3448 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3449 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3450 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3451 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003452 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003453 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003454 },
3455 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003456 ],
3457 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003458 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
3459 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
3460 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
3461 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
3462 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3463 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
3464 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
3465 &quot;A String&quot;,
3466 ],
3467 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
3468 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3469 },
3470 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3471 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3472 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3473 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3474 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3475 },
3476 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3477 },
3478 },
3479 ],
3480 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
3481 },
3482 },
3483 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
3484 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
3485 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
3486 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
3487 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
3488 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
3489 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
3490 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
3491 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
3492 },
3493 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003494 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003495 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
3496 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
3497 { # Represents size of a single ad slot, or a creative.
3498 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3499 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003500 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003501 },
3502 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003503 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
3504 { # Represents size of a single ad slot, or a creative.
3505 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3506 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3507 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003508 },
3509 ],
3510 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003511 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
3512 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003513 &quot;A String&quot;,
3514 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003515 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003516 &quot;A String&quot;,
3517 ],
3518 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003519 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
3520 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3521 &quot;A String&quot;,
3522 ],
3523 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3524 &quot;A String&quot;,
3525 ],
3526 },
3527 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
3528 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
3529 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
3530 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
3531 &quot;A String&quot;,
3532 ],
3533 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
3534 &quot;A String&quot;,
3535 ],
3536 },
3537 },
3538 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
3539 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
3540 &quot;A String&quot;,
3541 ],
3542 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
3543 &quot;A String&quot;,
3544 ],
3545 },
3546 },
3547 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
3548 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
3549 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
3550 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3551 &quot;A String&quot;,
3552 ],
3553 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3554 &quot;A String&quot;,
3555 ],
3556 },
3557 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
3558 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3559 &quot;A String&quot;,
3560 ],
3561 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3562 &quot;A String&quot;,
3563 ],
3564 },
3565 },
3566 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
3567 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3568 &quot;A String&quot;,
3569 ],
3570 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3571 &quot;A String&quot;,
3572 ],
3573 },
3574 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
3575 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3576 &quot;A String&quot;,
3577 ],
3578 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3579 &quot;A String&quot;,
3580 ],
3581 },
3582 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003583 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003584 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
3585 { # Contains information on how a buyer or seller can be reached.
3586 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3587 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3588 },
3589 ],
3590 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003591 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003592 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003593 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
3594 &quot;creativeSpecifications&quot;: [
3595 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
3596 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
3597 { # Represents size of a single ad slot, or a creative.
3598 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3599 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3600 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3601 },
3602 ],
3603 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
3604 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3605 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3606 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3607 },
3608 },
3609 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003610 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003611 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
3612 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
3613 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
3614 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
3615 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
3616 { # A polymorphic targeting value used as part of Shared Targeting.
3617 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
3618 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3619 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3620 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
3621 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3622 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3623 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3624 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3625 },
3626 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
3627 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3628 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3629 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3630 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3631 },
3632 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3633 },
3634 ],
3635 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3636 },
3637 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3638 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
3639 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3640 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
3641 &quot;width&quot;: 42, # The width of the creative
3642 &quot;height&quot;: 42, # The height of the creative.
3643 },
3644 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
3645 &quot;A String&quot;,
3646 ],
3647 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
3648 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
3649 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3650 &quot;width&quot;: 42, # The width of the creative
3651 &quot;height&quot;: 42, # The height of the creative.
3652 },
3653 ],
3654 },
3655 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3656 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3657 },
3658 ],
3659 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
3660 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
3661 { # A polymorphic targeting value used as part of Shared Targeting.
3662 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
3663 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3664 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3665 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
3666 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3667 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3668 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3669 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3670 },
3671 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
3672 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3673 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3674 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3675 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3676 },
3677 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3678 },
3679 ],
3680 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3681 },
3682 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3683 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
3684 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3685 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
3686 &quot;width&quot;: 42, # The width of the creative
3687 &quot;height&quot;: 42, # The height of the creative.
3688 },
3689 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
3690 &quot;A String&quot;,
3691 ],
3692 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
3693 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
3694 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3695 &quot;width&quot;: 42, # The width of the creative
3696 &quot;height&quot;: 42, # The height of the creative.
3697 },
3698 ],
3699 },
3700 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3701 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3702 },
3703 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003704 },
3705 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003706 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003707 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3708 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
3709 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. 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.
3710 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3711 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3712 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
3713 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003714 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003715 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # 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.
3716 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
3717 { # Frequency cap.
3718 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
3719 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
3720 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
3721 },
3722 ],
3723 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
3724 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
3725 },
3726 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
3727 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003728 },
3729 ],
3730 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003731 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
3732 { # Contains information on how a buyer or seller can be reached.
3733 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3734 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3735 },
3736 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003737 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3738 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3739 },
3740 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
3741 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3742 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003743 }</pre>
3744</div>
3745
3746<div class="method">
3747 <code class="details" id="update">update(accountId, proposalId, body=None, x__xgafv=None)</code>
3748 <pre>Update the given proposal at the client known revision number. If the server revision has advanced since the passed-in `proposal.proposal_revision`, an `ABORTED` error message will be returned. Only the buyer-modifiable fields of the proposal will be updated. Note that the deals in the proposal will be updated to match the passed-in copy. If a passed-in deal does not have a `deal_id`, the server will assign a new unique ID and create the deal. If passed-in deal has a `deal_id`, it will be updated to match the passed-in copy. Any existing deals not present in the passed-in proposal will be deleted. It is an error to pass in a deal with a `deal_id` not present at head.
3749
3750Args:
3751 accountId: string, Account ID of the buyer. (required)
3752 proposalId: string, The unique ID of the proposal. (required)
3753 body: object, The request body.
3754 The object takes the form of:
3755
3756{ # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003757 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
3758 { # A proposal may be associated to several notes.
3759 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
3760 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
3761 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
3762 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3763 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
3764 },
3765 ],
3766 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
3767 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
3768 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the 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.
3769 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
3770 { # Contains information on how a buyer or seller can be reached.
3771 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3772 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3773 },
3774 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003775 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
3776 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
3777 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003778 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3779 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
3780 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
3781 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003782 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003783 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
3784 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003785 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003786 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
3787 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003788 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
3789 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003790 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional 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 (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003791 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003792 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
3793 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
3794 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
3795 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
3796 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
3797 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
3798 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
3799 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
3800 &quot;A String&quot;,
3801 ],
3802 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
3803 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003804 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003805 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3806 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3807 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3808 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3809 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003810 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003811 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003812 },
3813 },
3814 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003815 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
3816 },
3817 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
3818 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
3819 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3820 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3821 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3822 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3823 },
3824 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3825 },
3826 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
3827 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
3828 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3829 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
3830 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
3831 &quot;A String&quot;,
3832 ],
3833 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
3834 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003835 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003836 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3837 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3838 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3839 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3840 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003841 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003842 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003843 },
3844 },
3845 ],
3846 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003847 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
3848 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
3849 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
3850 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
3851 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3852 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
3853 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
3854 &quot;A String&quot;,
3855 ],
3856 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
3857 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3858 },
3859 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3860 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3861 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3862 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3863 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3864 },
3865 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3866 },
3867 },
3868 ],
3869 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
3870 },
3871 },
3872 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
3873 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
3874 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
3875 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
3876 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
3877 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
3878 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
3879 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
3880 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
3881 },
3882 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003883 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003884 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
3885 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
3886 { # Represents size of a single ad slot, or a creative.
3887 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3888 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3889 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3890 },
3891 ],
3892 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
3893 { # Represents size of a single ad slot, or a creative.
3894 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3895 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3896 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3897 },
3898 ],
3899 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003900 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
3901 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003902 &quot;A String&quot;,
3903 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003904 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003905 &quot;A String&quot;,
3906 ],
3907 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003908 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
3909 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3910 &quot;A String&quot;,
3911 ],
3912 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3913 &quot;A String&quot;,
3914 ],
3915 },
3916 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
3917 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
3918 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
3919 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
3920 &quot;A String&quot;,
3921 ],
3922 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
3923 &quot;A String&quot;,
3924 ],
3925 },
3926 },
3927 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
3928 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
3929 &quot;A String&quot;,
3930 ],
3931 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
3932 &quot;A String&quot;,
3933 ],
3934 },
3935 },
3936 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
3937 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
3938 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
3939 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3940 &quot;A String&quot;,
3941 ],
3942 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3943 &quot;A String&quot;,
3944 ],
3945 },
3946 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
3947 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3948 &quot;A String&quot;,
3949 ],
3950 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3951 &quot;A String&quot;,
3952 ],
3953 },
3954 },
3955 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
3956 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3957 &quot;A String&quot;,
3958 ],
3959 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3960 &quot;A String&quot;,
3961 ],
3962 },
3963 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
3964 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3965 &quot;A String&quot;,
3966 ],
3967 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3968 &quot;A String&quot;,
3969 ],
3970 },
3971 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003972 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003973 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
3974 { # Contains information on how a buyer or seller can be reached.
3975 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3976 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3977 },
3978 ],
3979 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003980 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003981 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003982 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
3983 &quot;creativeSpecifications&quot;: [
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003984 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003985 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
3986 { # Represents size of a single ad slot, or a creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003987 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3988 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003989 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003990 },
3991 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003992 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
3993 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3994 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3995 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3996 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003997 },
3998 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003999 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004000 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
4001 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
4002 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
4003 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
4004 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
4005 { # A polymorphic targeting value used as part of Shared Targeting.
4006 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
4007 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4008 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
4009 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
4010 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4011 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4012 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
4013 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4014 },
4015 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
4016 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4017 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4018 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
4019 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4020 },
4021 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4022 },
4023 ],
4024 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4025 },
4026 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
4027 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
4028 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4029 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
4030 &quot;width&quot;: 42, # The width of the creative
4031 &quot;height&quot;: 42, # The height of the creative.
4032 },
4033 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
4034 &quot;A String&quot;,
4035 ],
4036 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
4037 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
4038 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
4039 &quot;width&quot;: 42, # The width of the creative
4040 &quot;height&quot;: 42, # The height of the creative.
4041 },
4042 ],
4043 },
4044 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4045 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4046 },
4047 ],
4048 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
4049 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
4050 { # A polymorphic targeting value used as part of Shared Targeting.
4051 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
4052 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4053 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
4054 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
4055 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4056 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4057 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
4058 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4059 },
4060 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
4061 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4062 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4063 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
4064 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4065 },
4066 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4067 },
4068 ],
4069 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4070 },
4071 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
4072 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
4073 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4074 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
4075 &quot;width&quot;: 42, # The width of the creative
4076 &quot;height&quot;: 42, # The height of the creative.
4077 },
4078 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
4079 &quot;A String&quot;,
4080 ],
4081 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
4082 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
4083 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
4084 &quot;width&quot;: 42, # The width of the creative
4085 &quot;height&quot;: 42, # The height of the creative.
4086 },
4087 ],
4088 },
4089 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4090 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4091 },
4092 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004093 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004094 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004095 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004096 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
4097 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
4098 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. 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.
4099 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
4100 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
4101 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
4102 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004103 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004104 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # 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.
4105 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
4106 { # Frequency cap.
4107 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
4108 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
4109 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
4110 },
4111 ],
4112 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
4113 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
4114 },
4115 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
4116 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004117 },
4118 ],
4119 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004120 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
4121 { # Contains information on how a buyer or seller can be reached.
4122 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4123 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4124 },
4125 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004126 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
4127 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4128 },
4129 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
4130 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4131 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004132}
4133
4134 x__xgafv: string, V1 error format.
4135 Allowed values
4136 1 - v1 error format
4137 2 - v2 error format
4138
4139Returns:
4140 An object of the form:
4141
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004142 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004143 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
4144 { # A proposal may be associated to several notes.
4145 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
4146 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
4147 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
4148 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
4149 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
4150 },
4151 ],
4152 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
4153 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
4154 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the 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.
4155 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
4156 { # Contains information on how a buyer or seller can be reached.
4157 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4158 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4159 },
4160 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004161 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
4162 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
4163 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004164 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
4165 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
4166 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
4167 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004168 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004169 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
4170 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004171 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004172 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
4173 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004174 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
4175 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004176 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional 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 (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004177 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004178 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
4179 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
4180 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
4181 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
4182 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
4183 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
4184 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
4185 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
4186 &quot;A String&quot;,
4187 ],
4188 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
4189 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004190 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004191 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4192 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4193 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4194 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4195 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004196 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004197 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004198 },
4199 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004200 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004201 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
4202 },
4203 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
4204 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
4205 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4206 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4207 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4208 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
4209 },
4210 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4211 },
4212 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
4213 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
4214 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
4215 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
4216 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
4217 &quot;A String&quot;,
4218 ],
4219 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
4220 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004221 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004222 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4223 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4224 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4225 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4226 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004227 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004228 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004229 },
4230 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004231 ],
4232 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004233 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
4234 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
4235 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
4236 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
4237 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
4238 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
4239 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
4240 &quot;A String&quot;,
4241 ],
4242 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
4243 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4244 },
4245 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4246 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4247 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4248 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4249 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
4250 },
4251 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4252 },
4253 },
4254 ],
4255 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
4256 },
4257 },
4258 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
4259 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
4260 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
4261 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
4262 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
4263 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
4264 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
4265 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
4266 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
4267 },
4268 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004269 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004270 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
4271 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
4272 { # Represents size of a single ad slot, or a creative.
4273 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
4274 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
4275 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4276 },
4277 ],
4278 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
4279 { # Represents size of a single ad slot, or a creative.
4280 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
4281 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
4282 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4283 },
4284 ],
4285 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004286 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
4287 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004288 &quot;A String&quot;,
4289 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004290 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004291 &quot;A String&quot;,
4292 ],
4293 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004294 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
4295 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4296 &quot;A String&quot;,
4297 ],
4298 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4299 &quot;A String&quot;,
4300 ],
4301 },
4302 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
4303 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
4304 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
4305 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
4306 &quot;A String&quot;,
4307 ],
4308 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
4309 &quot;A String&quot;,
4310 ],
4311 },
4312 },
4313 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
4314 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
4315 &quot;A String&quot;,
4316 ],
4317 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
4318 &quot;A String&quot;,
4319 ],
4320 },
4321 },
4322 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
4323 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
4324 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
4325 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4326 &quot;A String&quot;,
4327 ],
4328 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4329 &quot;A String&quot;,
4330 ],
4331 },
4332 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
4333 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4334 &quot;A String&quot;,
4335 ],
4336 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4337 &quot;A String&quot;,
4338 ],
4339 },
4340 },
4341 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
4342 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4343 &quot;A String&quot;,
4344 ],
4345 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4346 &quot;A String&quot;,
4347 ],
4348 },
4349 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
4350 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4351 &quot;A String&quot;,
4352 ],
4353 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4354 &quot;A String&quot;,
4355 ],
4356 },
4357 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004358 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004359 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
4360 { # Contains information on how a buyer or seller can be reached.
4361 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4362 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4363 },
4364 ],
4365 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004366 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004367 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004368 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
4369 &quot;creativeSpecifications&quot;: [
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004370 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004371 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
4372 { # Represents size of a single ad slot, or a creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004373 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
4374 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004375 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004376 },
4377 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004378 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
4379 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
4380 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
4381 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4382 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004383 },
4384 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004385 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004386 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
4387 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
4388 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
4389 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
4390 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
4391 { # A polymorphic targeting value used as part of Shared Targeting.
4392 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
4393 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4394 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
4395 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
4396 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4397 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4398 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
4399 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4400 },
4401 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
4402 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4403 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4404 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
4405 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4406 },
4407 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4408 },
4409 ],
4410 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4411 },
4412 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
4413 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
4414 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4415 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
4416 &quot;width&quot;: 42, # The width of the creative
4417 &quot;height&quot;: 42, # The height of the creative.
4418 },
4419 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
4420 &quot;A String&quot;,
4421 ],
4422 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
4423 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
4424 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
4425 &quot;width&quot;: 42, # The width of the creative
4426 &quot;height&quot;: 42, # The height of the creative.
4427 },
4428 ],
4429 },
4430 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4431 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4432 },
4433 ],
4434 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
4435 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
4436 { # A polymorphic targeting value used as part of Shared Targeting.
4437 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
4438 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4439 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
4440 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
4441 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4442 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4443 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
4444 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4445 },
4446 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
4447 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4448 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4449 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
4450 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4451 },
4452 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4453 },
4454 ],
4455 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4456 },
4457 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
4458 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
4459 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4460 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
4461 &quot;width&quot;: 42, # The width of the creative
4462 &quot;height&quot;: 42, # The height of the creative.
4463 },
4464 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
4465 &quot;A String&quot;,
4466 ],
4467 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
4468 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
4469 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
4470 &quot;width&quot;: 42, # The width of the creative
4471 &quot;height&quot;: 42, # The height of the creative.
4472 },
4473 ],
4474 },
4475 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4476 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4477 },
4478 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004479 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004480 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004481 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004482 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
4483 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
4484 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. 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.
4485 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
4486 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
4487 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
4488 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004489 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004490 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # 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.
4491 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
4492 { # Frequency cap.
4493 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
4494 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
4495 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
4496 },
4497 ],
4498 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
4499 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
4500 },
4501 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
4502 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004503 },
4504 ],
4505 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004506 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
4507 { # Contains information on how a buyer or seller can be reached.
4508 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4509 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4510 },
4511 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004512 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
4513 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4514 },
4515 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
4516 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4517 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004518 }</pre>
4519</div>
4520
4521</body></html>