1<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">
78  <code><a href="#accept">accept(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
79<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`. Upon calling this endpoint, the buyer implicitly agrees to the terms and conditions optionally set within the proposal by the publisher.</p>
80<p class="toc_element">
81  <code><a href="#addNote">addNote(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
82<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>
83<p class="toc_element">
84  <code><a href="#cancelNegotiation">cancelNegotiation(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
85<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>
89<p class="toc_element">
90  <code><a href="#completeSetup">completeSetup(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
91<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>
92<p class="toc_element">
93  <code><a href="#create">create(accountId, body=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Create the given proposal. Each created proposal and any deals it contains are assigned a unique ID by the server.</p>
95<p class="toc_element">
96  <code><a href="#get">get(accountId, proposalId, x__xgafv=None)</a></code></p>
97<p class="firstline">Gets a proposal given its ID. The proposal is returned at its head revision.</p>
98<p class="toc_element">
99  <code><a href="#list">list(accountId, filter=None, filterSyntax=None, pageSize=None, pageToken=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>
101<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">
105  <code><a href="#pause">pause(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
106<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>
107<p class="toc_element">
108  <code><a href="#resume">resume(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
109<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>
110<p class="toc_element">
111  <code><a href="#update">update(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
112<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>
113<h3>Method Details</h3>
114<div class="method">
115    <code class="details" id="accept">accept(accountId, proposalId, body=None, x__xgafv=None)</code>
116  <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`. Upon calling this endpoint, the buyer implicitly agrees to the terms and conditions optionally set within the proposal by the publisher.
117
118Args:
119  accountId: string, Account ID of the buyer. (required)
120  proposalId: string, The ID of the proposal to accept. (required)
121  body: object, The request body.
122    The object takes the form of:
123
124{ # Request to accept a proposal.
125  &quot;proposalRevision&quot;: &quot;A String&quot;, # The last known client revision number of the proposal.
126}
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
136    { # 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&#x27;t update, create, or otherwise modify Private Auction deals through the API. Fields are updatable unless noted otherwise.
137  &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.
138    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
139  },
140  &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.
141    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
142  },
143  &quot;buyerContacts&quot;: [ # Contact information for the buyer.
144    { # Contains information on how a buyer or seller can be reached.
145      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
146      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
147    },
148  ],
149  &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
150    &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).
151  },
152  &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
153    { # 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.
154      &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.
155      &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.
156      &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
157        &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).
158      },
159      &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.
160      &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 since 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.
161      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
162      &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
163      &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.
164        &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
165        &quot;creativeSpecifications&quot;: [
166          { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
167            &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
168              { # Represents size of a single ad slot, or a creative.
169                &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`.
170                &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
171                &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`.
172              },
173            ],
174            &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
175              &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`.
176              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
177              &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`.
178            },
179          },
180        ],
181        &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
182      },
183      &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
184      &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
185      &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
186        &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.
187          &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
188          &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
189          &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
190          &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
191          &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
192        },
193      },
194      &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.
195        &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
196        &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
197        &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.
198          &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
199            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
200            &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.
201            &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.
202          },
203          &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
204        },
205        &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
206        &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
207          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
208            { # 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.
209              &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.
210                &quot;A String&quot;,
211              ],
212              &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).
213                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
214              },
215              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
216                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
217                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
218                  &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.
219                  &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.
220                },
221                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
222              },
223            },
224          ],
225          &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.
226          &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
227          &quot;impressionCap&quot;: &quot;A String&quot;, # The lifetime impression cap for CPM sponsorship deals. The deal will stop serving when the cap is reached.
228          &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
229          &quot;percentShareOfVoice&quot;: &quot;A String&quot;, # For sponsorship deals, this is the percentage of the seller&#x27;s eligible impressions that the deal will serve until the cap is reached.
230          &quot;reservationType&quot;: &quot;A String&quot;, # The reservation type for a Programmatic Guaranteed deal. This indicates whether the number of impressions is fixed, or a percent of available impressions. If not specified, the default reservation type is STANDARD.
231        },
232        &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.
233          &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
234          &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
235            { # 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.
236              &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.
237                &quot;A String&quot;,
238              ],
239              &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).
240                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
241              },
242              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
243                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
244                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
245                  &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.
246                  &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.
247                },
248                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
249              },
250            },
251          ],
252        },
253        &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. # The terms for non-guaranteed fixed price deals.
254          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
255            { # 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.
256              &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.
257                &quot;A String&quot;,
258              ],
259              &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).
260                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
261              },
262              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
263                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
264                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
265                  &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.
266                  &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.
267                },
268                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
269              },
270            },
271          ],
272        },
273        &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.
274      },
275      &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.
276        &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
277        &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
278        &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
279          { # Frequency cap.
280            &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
281            &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.
282            &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.
283          },
284        ],
285      },
286      &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
287      &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
288      &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.
289      &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
290      &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.
291      &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
292      &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
293        { # Contains information on how a buyer or seller can be reached.
294          &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
295          &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
296        },
297      ],
298      &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.
299      &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.
300        &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.
301          &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
302            &quot;A String&quot;,
303          ],
304          &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
305            &quot;A String&quot;,
306          ],
307        },
308        &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.
309          &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
310            { # Represents size of a single ad slot, or a creative.
311              &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`.
312              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
313              &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`.
314            },
315          ],
316          &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
317            { # Represents size of a single ad slot, or a creative.
318              &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`.
319              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
320              &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`.
321            },
322          ],
323        },
324        &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.
325          &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
326            &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.
327              &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
328                &quot;A String&quot;,
329              ],
330              &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
331                &quot;A String&quot;,
332              ],
333            },
334          },
335          &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.
336            &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
337              &quot;A String&quot;,
338            ],
339            &quot;targetedUrls&quot;: [ # A list of URLs to be included.
340              &quot;A String&quot;,
341            ],
342          },
343        },
344        &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
345          &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.
346            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
347              &quot;A String&quot;,
348            ],
349            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
350              &quot;A String&quot;,
351            ],
352          },
353          &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.
354            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
355              &quot;A String&quot;,
356            ],
357            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
358              &quot;A String&quot;,
359            ],
360          },
361          &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
362            &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.
363              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
364                &quot;A String&quot;,
365              ],
366              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
367                &quot;A String&quot;,
368              ],
369            },
370            &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.
371              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
372                &quot;A String&quot;,
373              ],
374              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
375                &quot;A String&quot;,
376              ],
377            },
378          },
379        },
380        &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
381          &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
382            &quot;A String&quot;,
383          ],
384          &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.
385            &quot;A String&quot;,
386          ],
387        },
388      },
389      &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
390        { # 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.
391          &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
392            { # A polymorphic targeting value used as part of Shared Targeting.
393              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
394                &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).
395                  &quot;A String&quot;,
396                ],
397                &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
398                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
399                    &quot;height&quot;: 42, # The height of the creative.
400                    &quot;width&quot;: 42, # The width of the creative
401                  },
402                ],
403                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
404                &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.
405                &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
406                  &quot;height&quot;: 42, # The height of the creative.
407                  &quot;width&quot;: 42, # The width of the creative
408                },
409                &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.
410              },
411              &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.
412                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
413                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
414                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
415                    &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.
416                      &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.
417                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
418                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
419                      &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.
420                    },
421                    &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.
422                      &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.
423                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
424                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
425                      &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.
426                    },
427                  },
428                ],
429                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
430              },
431              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
432              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
433            },
434          ],
435          &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
436            { # A polymorphic targeting value used as part of Shared Targeting.
437              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
438                &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).
439                  &quot;A String&quot;,
440                ],
441                &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
442                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
443                    &quot;height&quot;: 42, # The height of the creative.
444                    &quot;width&quot;: 42, # The width of the creative
445                  },
446                ],
447                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
448                &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.
449                &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
450                  &quot;height&quot;: 42, # The height of the creative.
451                  &quot;width&quot;: 42, # The width of the creative
452                },
453                &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.
454              },
455              &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.
456                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
457                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
458                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
459                    &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.
460                      &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.
461                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
462                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
463                      &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.
464                    },
465                    &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.
466                      &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.
467                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
468                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
469                      &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.
470                    },
471                  },
472                ],
473                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
474              },
475              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
476              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
477            },
478          ],
479          &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.
480        },
481      ],
482      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
483      &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
484    },
485  ],
486  &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
487  &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
488  &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
489  &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
490  &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
491    { # A proposal may be associated to several notes.
492      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
493      &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
494      &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.
495      &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
496      &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
497    },
498  ],
499  &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
500  &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
501  &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
502  &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.
503  &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
504  &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.
505    &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.
506    &quot;subAccountId&quot;: &quot;A String&quot;, # Output only. Ad manager network code for the seller.
507  },
508  &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
509    { # Contains information on how a buyer or seller can be reached.
510      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
511      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
512    },
513  ],
514  &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
515  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
516}</pre>
517</div>
518
519<div class="method">
520    <code class="details" id="addNote">addNote(accountId, proposalId, body=None, x__xgafv=None)</code>
521  <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.
522
523Args:
524  accountId: string, Account ID of the buyer. (required)
525  proposalId: string, The ID of the proposal to attach the note to. (required)
526  body: object, The request body.
527    The object takes the form of:
528
529{ # Request message for adding a note to a given proposal.
530  &quot;note&quot;: { # A proposal may be associated to several notes. # Details of the note to add.
531    &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
532    &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
533    &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.
534    &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
535    &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
536  },
537}
538
539  x__xgafv: string, V1 error format.
540    Allowed values
541      1 - v1 error format
542      2 - v2 error format
543
544Returns:
545  An object of the form:
546
547    { # A proposal may be associated to several notes.
548  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
549  &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
550  &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.
551  &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
552  &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
553}</pre>
554</div>
555
556<div class="method">
557    <code class="details" id="cancelNegotiation">cancelNegotiation(accountId, proposalId, body=None, x__xgafv=None)</code>
558  <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.
559
560Args:
561  accountId: string, Account ID of the buyer. (required)
562  proposalId: string, The ID of the proposal to cancel negotiation for. (required)
563  body: object, The request body.
564    The object takes the form of:
565
566{ # Request to cancel an ongoing negotiation.
567}
568
569  x__xgafv: string, V1 error format.
570    Allowed values
571      1 - v1 error format
572      2 - v2 error format
573
574Returns:
575  An object of the form:
576
577    { # 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&#x27;t update, create, or otherwise modify Private Auction deals through the API. Fields are updatable unless noted otherwise.
578  &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.
579    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
580  },
581  &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.
582    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
583  },
584  &quot;buyerContacts&quot;: [ # Contact information for the buyer.
585    { # Contains information on how a buyer or seller can be reached.
586      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
587      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
588    },
589  ],
590  &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
591    &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).
592  },
593  &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
594    { # 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.
595      &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.
596      &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.
597      &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
598        &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).
599      },
600      &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.
601      &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 since 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.
602      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
603      &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
604      &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.
605        &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
606        &quot;creativeSpecifications&quot;: [
607          { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
608            &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
609              { # Represents size of a single ad slot, or a creative.
610                &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`.
611                &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
612                &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`.
613              },
614            ],
615            &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
616              &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`.
617              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
618              &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`.
619            },
620          },
621        ],
622        &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
623      },
624      &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
625      &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
626      &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
627        &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.
628          &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
629          &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
630          &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
631          &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
632          &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
633        },
634      },
635      &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.
636        &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
637        &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
638        &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.
639          &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
640            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
641            &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.
642            &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.
643          },
644          &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
645        },
646        &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
647        &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
648          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
649            { # 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.
650              &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.
651                &quot;A String&quot;,
652              ],
653              &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).
654                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
655              },
656              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
657                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
658                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
659                  &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.
660                  &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.
661                },
662                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
663              },
664            },
665          ],
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;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
668          &quot;impressionCap&quot;: &quot;A String&quot;, # The lifetime impression cap for CPM sponsorship deals. The deal will stop serving when the cap is reached.
669          &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
670          &quot;percentShareOfVoice&quot;: &quot;A String&quot;, # For sponsorship deals, this is the percentage of the seller&#x27;s eligible impressions that the deal will serve until the cap is reached.
671          &quot;reservationType&quot;: &quot;A String&quot;, # The reservation type for a Programmatic Guaranteed deal. This indicates whether the number of impressions is fixed, or a percent of available impressions. If not specified, the default reservation type is STANDARD.
672        },
673        &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.
674          &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
675          &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
676            { # 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.
677              &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.
678                &quot;A String&quot;,
679              ],
680              &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).
681                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
682              },
683              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
684                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
685                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
686                  &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.
687                  &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.
688                },
689                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
690              },
691            },
692          ],
693        },
694        &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. # The terms for non-guaranteed fixed price deals.
695          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
696            { # 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.
697              &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.
698                &quot;A String&quot;,
699              ],
700              &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).
701                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
702              },
703              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
704                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
705                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
706                  &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.
707                  &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.
708                },
709                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
710              },
711            },
712          ],
713        },
714        &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.
715      },
716      &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.
717        &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
718        &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
719        &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
720          { # Frequency cap.
721            &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
722            &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.
723            &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.
724          },
725        ],
726      },
727      &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
728      &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
729      &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.
730      &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
731      &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.
732      &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
733      &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
734        { # Contains information on how a buyer or seller can be reached.
735          &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
736          &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
737        },
738      ],
739      &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.
740      &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.
741        &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.
742          &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
743            &quot;A String&quot;,
744          ],
745          &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
746            &quot;A String&quot;,
747          ],
748        },
749        &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.
750          &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
751            { # Represents size of a single ad slot, or a creative.
752              &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`.
753              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
754              &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`.
755            },
756          ],
757          &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
758            { # Represents size of a single ad slot, or a creative.
759              &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`.
760              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
761              &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`.
762            },
763          ],
764        },
765        &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.
766          &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
767            &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.
768              &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
769                &quot;A String&quot;,
770              ],
771              &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
772                &quot;A String&quot;,
773              ],
774            },
775          },
776          &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.
777            &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
778              &quot;A String&quot;,
779            ],
780            &quot;targetedUrls&quot;: [ # A list of URLs to be included.
781              &quot;A String&quot;,
782            ],
783          },
784        },
785        &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
786          &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.
787            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
788              &quot;A String&quot;,
789            ],
790            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
791              &quot;A String&quot;,
792            ],
793          },
794          &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.
795            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
796              &quot;A String&quot;,
797            ],
798            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
799              &quot;A String&quot;,
800            ],
801          },
802          &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
803            &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.
804              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
805                &quot;A String&quot;,
806              ],
807              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
808                &quot;A String&quot;,
809              ],
810            },
811            &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.
812              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
813                &quot;A String&quot;,
814              ],
815              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
816                &quot;A String&quot;,
817              ],
818            },
819          },
820        },
821        &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
822          &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
823            &quot;A String&quot;,
824          ],
825          &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.
826            &quot;A String&quot;,
827          ],
828        },
829      },
830      &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
831        { # 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.
832          &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
833            { # A polymorphic targeting value used as part of Shared Targeting.
834              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
835                &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).
836                  &quot;A String&quot;,
837                ],
838                &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
839                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
840                    &quot;height&quot;: 42, # The height of the creative.
841                    &quot;width&quot;: 42, # The width of the creative
842                  },
843                ],
844                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
845                &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.
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;height&quot;: 42, # The height of the creative.
848                  &quot;width&quot;: 42, # The width of the creative
849                },
850                &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.
851              },
852              &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.
853                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
854                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
855                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
856                    &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.
857                      &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.
858                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
859                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
860                      &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.
861                    },
862                    &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.
863                      &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.
864                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
865                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
866                      &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.
867                    },
868                  },
869                ],
870                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
871              },
872              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
873              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
874            },
875          ],
876          &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
877            { # A polymorphic targeting value used as part of Shared Targeting.
878              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
879                &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).
880                  &quot;A String&quot;,
881                ],
882                &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
883                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
884                    &quot;height&quot;: 42, # The height of the creative.
885                    &quot;width&quot;: 42, # The width of the creative
886                  },
887                ],
888                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
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;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
891                  &quot;height&quot;: 42, # The height of the creative.
892                  &quot;width&quot;: 42, # The width of the creative
893                },
894                &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.
895              },
896              &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.
897                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
898                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
899                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
900                    &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.
901                      &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.
902                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
903                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
904                      &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.
905                    },
906                    &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.
907                      &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.
908                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
909                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
910                      &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.
911                    },
912                  },
913                ],
914                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
915              },
916              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
917              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
918            },
919          ],
920          &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.
921        },
922      ],
923      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
924      &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
925    },
926  ],
927  &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
928  &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
929  &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
930  &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
931  &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
932    { # A proposal may be associated to several notes.
933      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
934      &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
935      &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.
936      &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
937      &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
938    },
939  ],
940  &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
941  &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
942  &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
943  &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.
944  &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
945  &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.
946    &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.
947    &quot;subAccountId&quot;: &quot;A String&quot;, # Output only. Ad manager network code for the seller.
948  },
949  &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
950    { # Contains information on how a buyer or seller can be reached.
951      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
952      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
953    },
954  ],
955  &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
956  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
957}</pre>
958</div>
959
960<div class="method">
961    <code class="details" id="close">close()</code>
962  <pre>Close httplib2 connections.</pre>
963</div>
964
965<div class="method">
966    <code class="details" id="completeSetup">completeSetup(accountId, proposalId, body=None, x__xgafv=None)</code>
967  <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.
968
969Args:
970  accountId: string, Account ID of the buyer. (required)
971  proposalId: string, The ID of the proposal to mark as setup completed. (required)
972  body: object, The request body.
973    The object takes the form of:
974
975{ # Request message for indicating that the proposal&#x27;s setup step is complete.
976}
977
978  x__xgafv: string, V1 error format.
979    Allowed values
980      1 - v1 error format
981      2 - v2 error format
982
983Returns:
984  An object of the form:
985
986    { # 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&#x27;t update, create, or otherwise modify Private Auction deals through the API. Fields are updatable unless noted otherwise.
987  &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.
988    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
989  },
990  &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.
991    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
992  },
993  &quot;buyerContacts&quot;: [ # Contact information for the buyer.
994    { # Contains information on how a buyer or seller can be reached.
995      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
996      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
997    },
998  ],
999  &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
1000    &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).
1001  },
1002  &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
1003    { # 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.
1004      &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.
1005      &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.
1006      &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
1007        &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).
1008      },
1009      &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.
1010      &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 since 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.
1011      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
1012      &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
1013      &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.
1014        &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
1015        &quot;creativeSpecifications&quot;: [
1016          { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
1017            &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
1018              { # Represents size of a single ad slot, or a creative.
1019                &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`.
1020                &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1021                &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`.
1022              },
1023            ],
1024            &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
1025              &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`.
1026              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1027              &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`.
1028            },
1029          },
1030        ],
1031        &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
1032      },
1033      &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
1034      &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
1035      &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
1036        &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.
1037          &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
1038          &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
1039          &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
1040          &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
1041          &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
1042        },
1043      },
1044      &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.
1045        &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
1046        &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
1047        &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.
1048          &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1049            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1050            &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.
1051            &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.
1052          },
1053          &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1054        },
1055        &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
1056        &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
1057          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1058            { # 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.
1059              &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.
1060                &quot;A String&quot;,
1061              ],
1062              &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).
1063                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1064              },
1065              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1066                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1067                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1068                  &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.
1069                  &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.
1070                },
1071                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1072              },
1073            },
1074          ],
1075          &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.
1076          &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
1077          &quot;impressionCap&quot;: &quot;A String&quot;, # The lifetime impression cap for CPM sponsorship deals. The deal will stop serving when the cap is reached.
1078          &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
1079          &quot;percentShareOfVoice&quot;: &quot;A String&quot;, # For sponsorship deals, this is the percentage of the seller&#x27;s eligible impressions that the deal will serve until the cap is reached.
1080          &quot;reservationType&quot;: &quot;A String&quot;, # The reservation type for a Programmatic Guaranteed deal. This indicates whether the number of impressions is fixed, or a percent of available impressions. If not specified, the default reservation type is STANDARD.
1081        },
1082        &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.
1083          &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
1084          &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
1085            { # 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.
1086              &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.
1087                &quot;A String&quot;,
1088              ],
1089              &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).
1090                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1091              },
1092              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1093                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1094                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1095                  &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.
1096                  &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.
1097                },
1098                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1099              },
1100            },
1101          ],
1102        },
1103        &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. # The terms for non-guaranteed fixed price deals.
1104          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1105            { # 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.
1106              &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.
1107                &quot;A String&quot;,
1108              ],
1109              &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).
1110                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1111              },
1112              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1113                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1114                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1115                  &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.
1116                  &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.
1117                },
1118                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1119              },
1120            },
1121          ],
1122        },
1123        &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.
1124      },
1125      &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.
1126        &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
1127        &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
1128        &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
1129          { # Frequency cap.
1130            &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
1131            &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.
1132            &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.
1133          },
1134        ],
1135      },
1136      &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
1137      &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
1138      &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.
1139      &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
1140      &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.
1141      &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
1142      &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
1143        { # Contains information on how a buyer or seller can be reached.
1144          &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1145          &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1146        },
1147      ],
1148      &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.
1149      &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.
1150        &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.
1151          &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1152            &quot;A String&quot;,
1153          ],
1154          &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1155            &quot;A String&quot;,
1156          ],
1157        },
1158        &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.
1159          &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
1160            { # Represents size of a single ad slot, or a creative.
1161              &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`.
1162              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1163              &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`.
1164            },
1165          ],
1166          &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
1167            { # Represents size of a single ad slot, or a creative.
1168              &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`.
1169              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1170              &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`.
1171            },
1172          ],
1173        },
1174        &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.
1175          &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
1176            &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.
1177              &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
1178                &quot;A String&quot;,
1179              ],
1180              &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
1181                &quot;A String&quot;,
1182              ],
1183            },
1184          },
1185          &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.
1186            &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
1187              &quot;A String&quot;,
1188            ],
1189            &quot;targetedUrls&quot;: [ # A list of URLs to be included.
1190              &quot;A String&quot;,
1191            ],
1192          },
1193        },
1194        &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
1195          &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.
1196            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1197              &quot;A String&quot;,
1198            ],
1199            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1200              &quot;A String&quot;,
1201            ],
1202          },
1203          &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.
1204            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1205              &quot;A String&quot;,
1206            ],
1207            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1208              &quot;A String&quot;,
1209            ],
1210          },
1211          &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
1212            &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.
1213              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1214                &quot;A String&quot;,
1215              ],
1216              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1217                &quot;A String&quot;,
1218              ],
1219            },
1220            &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.
1221              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1222                &quot;A String&quot;,
1223              ],
1224              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1225                &quot;A String&quot;,
1226              ],
1227            },
1228          },
1229        },
1230        &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
1231          &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
1232            &quot;A String&quot;,
1233          ],
1234          &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.
1235            &quot;A String&quot;,
1236          ],
1237        },
1238      },
1239      &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
1240        { # 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.
1241          &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
1242            { # A polymorphic targeting value used as part of Shared Targeting.
1243              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1244                &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).
1245                  &quot;A String&quot;,
1246                ],
1247                &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
1248                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1249                    &quot;height&quot;: 42, # The height of the creative.
1250                    &quot;width&quot;: 42, # The width of the creative
1251                  },
1252                ],
1253                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1254                &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.
1255                &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
1256                  &quot;height&quot;: 42, # The height of the creative.
1257                  &quot;width&quot;: 42, # The width of the creative
1258                },
1259                &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.
1260              },
1261              &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.
1262                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1263                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
1264                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1265                    &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.
1266                      &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.
1267                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1268                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1269                      &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.
1270                    },
1271                    &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.
1272                      &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.
1273                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1274                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1275                      &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.
1276                    },
1277                  },
1278                ],
1279                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1280              },
1281              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1282              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1283            },
1284          ],
1285          &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
1286            { # A polymorphic targeting value used as part of Shared Targeting.
1287              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1288                &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).
1289                  &quot;A String&quot;,
1290                ],
1291                &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
1292                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1293                    &quot;height&quot;: 42, # The height of the creative.
1294                    &quot;width&quot;: 42, # The width of the creative
1295                  },
1296                ],
1297                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1298                &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.
1299                &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
1300                  &quot;height&quot;: 42, # The height of the creative.
1301                  &quot;width&quot;: 42, # The width of the creative
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              },
1305              &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.
1306                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1307                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
1308                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1309                    &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.
1310                      &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.
1311                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1312                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1313                      &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.
1314                    },
1315                    &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.
1316                      &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.
1317                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1318                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1319                      &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.
1320                    },
1321                  },
1322                ],
1323                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1324              },
1325              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1326              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1327            },
1328          ],
1329          &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.
1330        },
1331      ],
1332      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
1333      &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
1334    },
1335  ],
1336  &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
1337  &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
1338  &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
1339  &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
1340  &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
1341    { # A proposal may be associated to several notes.
1342      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
1343      &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
1344      &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.
1345      &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
1346      &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
1347    },
1348  ],
1349  &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
1350  &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
1351  &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
1352  &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.
1353  &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
1354  &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.
1355    &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.
1356    &quot;subAccountId&quot;: &quot;A String&quot;, # Output only. Ad manager network code for the seller.
1357  },
1358  &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
1359    { # Contains information on how a buyer or seller can be reached.
1360      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1361      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1362    },
1363  ],
1364  &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
1365  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
1366}</pre>
1367</div>
1368
1369<div class="method">
1370    <code class="details" id="create">create(accountId, body=None, x__xgafv=None)</code>
1371  <pre>Create the given proposal. Each created proposal and any deals it contains are assigned a unique ID by the server.
1372
1373Args:
1374  accountId: string, Account ID of the buyer. (required)
1375  body: object, The request body.
1376    The object takes the form of:
1377
1378{ # 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&#x27;t update, create, or otherwise modify Private Auction deals through the API. Fields are updatable unless noted otherwise.
1379  &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.
1380    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1381  },
1382  &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.
1383    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1384  },
1385  &quot;buyerContacts&quot;: [ # Contact information for the buyer.
1386    { # Contains information on how a buyer or seller can be reached.
1387      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1388      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1389    },
1390  ],
1391  &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
1392    &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).
1393  },
1394  &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
1395    { # 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.
1396      &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.
1397      &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.
1398      &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
1399        &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).
1400      },
1401      &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.
1402      &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 since 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.
1403      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
1404      &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
1405      &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.
1406        &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
1407        &quot;creativeSpecifications&quot;: [
1408          { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
1409            &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
1410              { # Represents size of a single ad slot, or a creative.
1411                &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`.
1412                &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1413                &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`.
1414              },
1415            ],
1416            &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
1417              &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`.
1418              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1419              &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`.
1420            },
1421          },
1422        ],
1423        &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
1424      },
1425      &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
1426      &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
1427      &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
1428        &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.
1429          &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
1430          &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
1431          &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
1432          &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
1433          &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
1434        },
1435      },
1436      &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.
1437        &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
1438        &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
1439        &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.
1440          &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1441            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1442            &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.
1443            &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.
1444          },
1445          &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1446        },
1447        &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
1448        &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
1449          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1450            { # 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.
1451              &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.
1452                &quot;A String&quot;,
1453              ],
1454              &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).
1455                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1456              },
1457              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1458                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1459                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1460                  &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.
1461                  &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.
1462                },
1463                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1464              },
1465            },
1466          ],
1467          &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.
1468          &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
1469          &quot;impressionCap&quot;: &quot;A String&quot;, # The lifetime impression cap for CPM sponsorship deals. The deal will stop serving when the cap is reached.
1470          &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
1471          &quot;percentShareOfVoice&quot;: &quot;A String&quot;, # For sponsorship deals, this is the percentage of the seller&#x27;s eligible impressions that the deal will serve until the cap is reached.
1472          &quot;reservationType&quot;: &quot;A String&quot;, # The reservation type for a Programmatic Guaranteed deal. This indicates whether the number of impressions is fixed, or a percent of available impressions. If not specified, the default reservation type is STANDARD.
1473        },
1474        &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.
1475          &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
1476          &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
1477            { # 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.
1478              &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.
1479                &quot;A String&quot;,
1480              ],
1481              &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).
1482                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1483              },
1484              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1485                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1486                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1487                  &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.
1488                  &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.
1489                },
1490                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1491              },
1492            },
1493          ],
1494        },
1495        &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. # The terms for non-guaranteed fixed price deals.
1496          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1497            { # 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.
1498              &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.
1499                &quot;A String&quot;,
1500              ],
1501              &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).
1502                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1503              },
1504              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1505                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1506                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1507                  &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.
1508                  &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.
1509                },
1510                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1511              },
1512            },
1513          ],
1514        },
1515        &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.
1516      },
1517      &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.
1518        &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
1519        &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
1520        &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
1521          { # Frequency cap.
1522            &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
1523            &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.
1524            &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.
1525          },
1526        ],
1527      },
1528      &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
1529      &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
1530      &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.
1531      &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
1532      &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.
1533      &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
1534      &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
1535        { # Contains information on how a buyer or seller can be reached.
1536          &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1537          &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1538        },
1539      ],
1540      &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.
1541      &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.
1542        &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.
1543          &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1544            &quot;A String&quot;,
1545          ],
1546          &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1547            &quot;A String&quot;,
1548          ],
1549        },
1550        &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.
1551          &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
1552            { # Represents size of a single ad slot, or a creative.
1553              &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`.
1554              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1555              &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`.
1556            },
1557          ],
1558          &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
1559            { # Represents size of a single ad slot, or a creative.
1560              &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`.
1561              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1562              &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`.
1563            },
1564          ],
1565        },
1566        &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.
1567          &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
1568            &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.
1569              &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
1570                &quot;A String&quot;,
1571              ],
1572              &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
1573                &quot;A String&quot;,
1574              ],
1575            },
1576          },
1577          &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.
1578            &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
1579              &quot;A String&quot;,
1580            ],
1581            &quot;targetedUrls&quot;: [ # A list of URLs to be included.
1582              &quot;A String&quot;,
1583            ],
1584          },
1585        },
1586        &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
1587          &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.
1588            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1589              &quot;A String&quot;,
1590            ],
1591            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1592              &quot;A String&quot;,
1593            ],
1594          },
1595          &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.
1596            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1597              &quot;A String&quot;,
1598            ],
1599            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1600              &quot;A String&quot;,
1601            ],
1602          },
1603          &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
1604            &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.
1605              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1606                &quot;A String&quot;,
1607              ],
1608              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1609                &quot;A String&quot;,
1610              ],
1611            },
1612            &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.
1613              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1614                &quot;A String&quot;,
1615              ],
1616              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1617                &quot;A String&quot;,
1618              ],
1619            },
1620          },
1621        },
1622        &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
1623          &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
1624            &quot;A String&quot;,
1625          ],
1626          &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.
1627            &quot;A String&quot;,
1628          ],
1629        },
1630      },
1631      &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
1632        { # 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.
1633          &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
1634            { # A polymorphic targeting value used as part of Shared Targeting.
1635              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1636                &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).
1637                  &quot;A String&quot;,
1638                ],
1639                &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
1640                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1641                    &quot;height&quot;: 42, # The height of the creative.
1642                    &quot;width&quot;: 42, # The width of the creative
1643                  },
1644                ],
1645                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1646                &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.
1647                &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
1648                  &quot;height&quot;: 42, # The height of the creative.
1649                  &quot;width&quot;: 42, # The width of the creative
1650                },
1651                &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.
1652              },
1653              &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.
1654                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1655                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
1656                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1657                    &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.
1658                      &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.
1659                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1660                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1661                      &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.
1662                    },
1663                    &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.
1664                      &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.
1665                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
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                    },
1669                  },
1670                ],
1671                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1672              },
1673              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1674              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1675            },
1676          ],
1677          &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
1678            { # A polymorphic targeting value used as part of Shared Targeting.
1679              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1680                &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).
1681                  &quot;A String&quot;,
1682                ],
1683                &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
1684                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1685                    &quot;height&quot;: 42, # The height of the creative.
1686                    &quot;width&quot;: 42, # The width of the creative
1687                  },
1688                ],
1689                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1690                &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.
1691                &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
1692                  &quot;height&quot;: 42, # The height of the creative.
1693                  &quot;width&quot;: 42, # The width of the creative
1694                },
1695                &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.
1696              },
1697              &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.
1698                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1699                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
1700                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1701                    &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.
1702                      &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.
1703                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1704                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1705                      &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.
1706                    },
1707                    &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.
1708                      &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.
1709                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1710                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1711                      &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.
1712                    },
1713                  },
1714                ],
1715                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1716              },
1717              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1718              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1719            },
1720          ],
1721          &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.
1722        },
1723      ],
1724      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
1725      &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
1726    },
1727  ],
1728  &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
1729  &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
1730  &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
1731  &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
1732  &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
1733    { # A proposal may be associated to several notes.
1734      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
1735      &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
1736      &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.
1737      &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
1738      &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
1739    },
1740  ],
1741  &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
1742  &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
1743  &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
1744  &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.
1745  &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
1746  &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.
1747    &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.
1748    &quot;subAccountId&quot;: &quot;A String&quot;, # Output only. Ad manager network code for the seller.
1749  },
1750  &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
1751    { # Contains information on how a buyer or seller can be reached.
1752      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1753      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1754    },
1755  ],
1756  &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
1757  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
1758}
1759
1760  x__xgafv: string, V1 error format.
1761    Allowed values
1762      1 - v1 error format
1763      2 - v2 error format
1764
1765Returns:
1766  An object of the form:
1767
1768    { # 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&#x27;t update, create, or otherwise modify Private Auction deals through the API. Fields are updatable unless noted otherwise.
1769  &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.
1770    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1771  },
1772  &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.
1773    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1774  },
1775  &quot;buyerContacts&quot;: [ # Contact information for the buyer.
1776    { # Contains information on how a buyer or seller can be reached.
1777      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1778      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1779    },
1780  ],
1781  &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
1782    &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).
1783  },
1784  &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.
1786      &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.
1787      &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.
1788      &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
1789        &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).
1790      },
1791      &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.
1792      &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 since 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.
1793      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
1794      &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
1795      &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.
1796        &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
1797        &quot;creativeSpecifications&quot;: [
1798          { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
1799            &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
1800              { # Represents size of a single ad slot, or a creative.
1801                &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`.
1802                &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1803                &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`.
1804              },
1805            ],
1806            &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
1807              &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`.
1808              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1809              &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`.
1810            },
1811          },
1812        ],
1813        &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
1814      },
1815      &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
1816      &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
1817      &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
1818        &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.
1819          &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
1820          &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
1821          &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
1822          &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
1823          &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
1824        },
1825      },
1826      &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.
1827        &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
1828        &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
1829        &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.
1830          &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1831            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1832            &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.
1833            &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.
1834          },
1835          &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1836        },
1837        &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
1838        &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
1839          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1840            { # 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.
1841              &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.
1842                &quot;A String&quot;,
1843              ],
1844              &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).
1845                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1846              },
1847              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1848                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1849                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1850                  &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.
1851                  &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.
1852                },
1853                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1854              },
1855            },
1856          ],
1857          &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.
1858          &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
1859          &quot;impressionCap&quot;: &quot;A String&quot;, # The lifetime impression cap for CPM sponsorship deals. The deal will stop serving when the cap is reached.
1860          &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
1861          &quot;percentShareOfVoice&quot;: &quot;A String&quot;, # For sponsorship deals, this is the percentage of the seller&#x27;s eligible impressions that the deal will serve until the cap is reached.
1862          &quot;reservationType&quot;: &quot;A String&quot;, # The reservation type for a Programmatic Guaranteed deal. This indicates whether the number of impressions is fixed, or a percent of available impressions. If not specified, the default reservation type is STANDARD.
1863        },
1864        &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.
1865          &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
1866          &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
1867            { # 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.
1868              &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.
1869                &quot;A String&quot;,
1870              ],
1871              &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).
1872                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1873              },
1874              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1875                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1876                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1877                  &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.
1878                  &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.
1879                },
1880                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1881              },
1882            },
1883          ],
1884        },
1885        &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. # The terms for non-guaranteed fixed price deals.
1886          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1887            { # 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.
1888              &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.
1889                &quot;A String&quot;,
1890              ],
1891              &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).
1892                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1893              },
1894              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1895                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1896                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1897                  &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.
1898                  &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.
1899                },
1900                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1901              },
1902            },
1903          ],
1904        },
1905        &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.
1906      },
1907      &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.
1908        &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
1909        &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
1910        &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
1911          { # Frequency cap.
1912            &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
1913            &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.
1914            &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.
1915          },
1916        ],
1917      },
1918      &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
1919      &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
1920      &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.
1921      &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
1922      &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.
1923      &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
1924      &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
1925        { # Contains information on how a buyer or seller can be reached.
1926          &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1927          &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1928        },
1929      ],
1930      &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.
1931      &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.
1932        &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.
1933          &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1934            &quot;A String&quot;,
1935          ],
1936          &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1937            &quot;A String&quot;,
1938          ],
1939        },
1940        &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.
1941          &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
1942            { # Represents size of a single ad slot, or a creative.
1943              &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`.
1944              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1945              &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`.
1946            },
1947          ],
1948          &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
1949            { # Represents size of a single ad slot, or a creative.
1950              &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`.
1951              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1952              &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`.
1953            },
1954          ],
1955        },
1956        &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.
1957          &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
1958            &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.
1959              &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
1960                &quot;A String&quot;,
1961              ],
1962              &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
1963                &quot;A String&quot;,
1964              ],
1965            },
1966          },
1967          &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.
1968            &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
1969              &quot;A String&quot;,
1970            ],
1971            &quot;targetedUrls&quot;: [ # A list of URLs to be included.
1972              &quot;A String&quot;,
1973            ],
1974          },
1975        },
1976        &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
1977          &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.
1978            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1979              &quot;A String&quot;,
1980            ],
1981            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1982              &quot;A String&quot;,
1983            ],
1984          },
1985          &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.
1986            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1987              &quot;A String&quot;,
1988            ],
1989            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1990              &quot;A String&quot;,
1991            ],
1992          },
1993          &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
1994            &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.
1995              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1996                &quot;A String&quot;,
1997              ],
1998              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1999                &quot;A String&quot;,
2000              ],
2001            },
2002            &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.
2003              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2004                &quot;A String&quot;,
2005              ],
2006              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2007                &quot;A String&quot;,
2008              ],
2009            },
2010          },
2011        },
2012        &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
2013          &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
2014            &quot;A String&quot;,
2015          ],
2016          &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.
2017            &quot;A String&quot;,
2018          ],
2019        },
2020      },
2021      &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
2022        { # 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.
2023          &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
2024            { # A polymorphic targeting value used as part of Shared Targeting.
2025              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2026                &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).
2027                  &quot;A String&quot;,
2028                ],
2029                &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
2030                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2031                    &quot;height&quot;: 42, # The height of the creative.
2032                    &quot;width&quot;: 42, # The width of the creative
2033                  },
2034                ],
2035                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2036                &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.
2037                &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
2038                  &quot;height&quot;: 42, # The height of the creative.
2039                  &quot;width&quot;: 42, # The width of the creative
2040                },
2041                &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.
2042              },
2043              &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.
2044                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2045                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2046                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2047                    &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.
2048                      &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.
2049                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2050                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2051                      &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.
2052                    },
2053                    &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.
2054                      &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.
2055                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2056                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2057                      &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.
2058                    },
2059                  },
2060                ],
2061                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2062              },
2063              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2064              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2065            },
2066          ],
2067          &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
2068            { # A polymorphic targeting value used as part of Shared Targeting.
2069              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2070                &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).
2071                  &quot;A String&quot;,
2072                ],
2073                &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
2074                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2075                    &quot;height&quot;: 42, # The height of the creative.
2076                    &quot;width&quot;: 42, # The width of the creative
2077                  },
2078                ],
2079                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2080                &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.
2081                &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
2082                  &quot;height&quot;: 42, # The height of the creative.
2083                  &quot;width&quot;: 42, # The width of the creative
2084                },
2085                &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.
2086              },
2087              &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.
2088                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2089                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2090                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2091                    &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.
2092                      &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.
2093                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2094                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2095                      &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.
2096                    },
2097                    &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.
2098                      &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.
2099                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2100                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2101                      &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.
2102                    },
2103                  },
2104                ],
2105                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2106              },
2107              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2108              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2109            },
2110          ],
2111          &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.
2112        },
2113      ],
2114      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
2115      &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
2116    },
2117  ],
2118  &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
2119  &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
2120  &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
2121  &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
2122  &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
2123    { # A proposal may be associated to several notes.
2124      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
2125      &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
2126      &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.
2127      &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
2128      &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
2129    },
2130  ],
2131  &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
2132  &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
2133  &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
2134  &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.
2135  &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
2136  &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.
2137    &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.
2138    &quot;subAccountId&quot;: &quot;A String&quot;, # Output only. Ad manager network code for the seller.
2139  },
2140  &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
2141    { # Contains information on how a buyer or seller can be reached.
2142      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2143      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2144    },
2145  ],
2146  &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
2147  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
2148}</pre>
2149</div>
2150
2151<div class="method">
2152    <code class="details" id="get">get(accountId, proposalId, x__xgafv=None)</code>
2153  <pre>Gets a proposal given its ID. The proposal is returned at its head revision.
2154
2155Args:
2156  accountId: string, Account ID of the buyer. (required)
2157  proposalId: string, The unique ID of the proposal (required)
2158  x__xgafv: string, V1 error format.
2159    Allowed values
2160      1 - v1 error format
2161      2 - v2 error format
2162
2163Returns:
2164  An object of the form:
2165
2166    { # 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&#x27;t update, create, or otherwise modify Private Auction deals through the API. Fields are updatable unless noted otherwise.
2167  &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.
2168    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2169  },
2170  &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.
2171    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2172  },
2173  &quot;buyerContacts&quot;: [ # Contact information for the buyer.
2174    { # Contains information on how a buyer or seller can be reached.
2175      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2176      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2177    },
2178  ],
2179  &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
2180    &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).
2181  },
2182  &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
2183    { # 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.
2184      &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.
2185      &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.
2186      &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
2187        &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).
2188      },
2189      &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.
2190      &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 since 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.
2191      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
2192      &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
2193      &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.
2194        &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
2195        &quot;creativeSpecifications&quot;: [
2196          { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
2197            &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
2198              { # Represents size of a single ad slot, or a creative.
2199                &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`.
2200                &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2201                &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`.
2202              },
2203            ],
2204            &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
2205              &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`.
2206              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2207              &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`.
2208            },
2209          },
2210        ],
2211        &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
2212      },
2213      &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
2214      &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
2215      &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
2216        &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.
2217          &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
2218          &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
2219          &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
2220          &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
2221          &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
2222        },
2223      },
2224      &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.
2225        &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
2226        &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
2227        &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.
2228          &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2229            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2230            &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.
2231            &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.
2232          },
2233          &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2234        },
2235        &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
2236        &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
2237          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2238            { # 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.
2239              &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.
2240                &quot;A String&quot;,
2241              ],
2242              &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).
2243                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2244              },
2245              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2246                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2247                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2248                  &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.
2249                  &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.
2250                },
2251                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2252              },
2253            },
2254          ],
2255          &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.
2256          &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
2257          &quot;impressionCap&quot;: &quot;A String&quot;, # The lifetime impression cap for CPM sponsorship deals. The deal will stop serving when the cap is reached.
2258          &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
2259          &quot;percentShareOfVoice&quot;: &quot;A String&quot;, # For sponsorship deals, this is the percentage of the seller&#x27;s eligible impressions that the deal will serve until the cap is reached.
2260          &quot;reservationType&quot;: &quot;A String&quot;, # The reservation type for a Programmatic Guaranteed deal. This indicates whether the number of impressions is fixed, or a percent of available impressions. If not specified, the default reservation type is STANDARD.
2261        },
2262        &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.
2263          &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
2264          &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
2265            { # 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.
2266              &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.
2267                &quot;A String&quot;,
2268              ],
2269              &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).
2270                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2271              },
2272              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2273                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2274                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2275                  &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.
2276                  &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.
2277                },
2278                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2279              },
2280            },
2281          ],
2282        },
2283        &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. # The terms for non-guaranteed fixed price deals.
2284          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2285            { # 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.
2286              &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.
2287                &quot;A String&quot;,
2288              ],
2289              &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).
2290                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2291              },
2292              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2293                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2294                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2295                  &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.
2296                  &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.
2297                },
2298                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2299              },
2300            },
2301          ],
2302        },
2303        &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.
2304      },
2305      &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.
2306        &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
2307        &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
2308        &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
2309          { # Frequency cap.
2310            &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
2311            &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.
2312            &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.
2313          },
2314        ],
2315      },
2316      &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
2317      &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
2318      &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.
2319      &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
2320      &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.
2321      &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
2322      &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
2323        { # Contains information on how a buyer or seller can be reached.
2324          &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2325          &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2326        },
2327      ],
2328      &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.
2329      &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.
2330        &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.
2331          &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2332            &quot;A String&quot;,
2333          ],
2334          &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2335            &quot;A String&quot;,
2336          ],
2337        },
2338        &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.
2339          &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
2340            { # Represents size of a single ad slot, or a creative.
2341              &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`.
2342              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2343              &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`.
2344            },
2345          ],
2346          &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
2347            { # Represents size of a single ad slot, or a creative.
2348              &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`.
2349              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2350              &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`.
2351            },
2352          ],
2353        },
2354        &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.
2355          &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
2356            &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.
2357              &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
2358                &quot;A String&quot;,
2359              ],
2360              &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
2361                &quot;A String&quot;,
2362              ],
2363            },
2364          },
2365          &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.
2366            &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
2367              &quot;A String&quot;,
2368            ],
2369            &quot;targetedUrls&quot;: [ # A list of URLs to be included.
2370              &quot;A String&quot;,
2371            ],
2372          },
2373        },
2374        &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
2375          &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.
2376            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2377              &quot;A String&quot;,
2378            ],
2379            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2380              &quot;A String&quot;,
2381            ],
2382          },
2383          &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.
2384            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2385              &quot;A String&quot;,
2386            ],
2387            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2388              &quot;A String&quot;,
2389            ],
2390          },
2391          &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
2392            &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.
2393              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2394                &quot;A String&quot;,
2395              ],
2396              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2397                &quot;A String&quot;,
2398              ],
2399            },
2400            &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.
2401              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2402                &quot;A String&quot;,
2403              ],
2404              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2405                &quot;A String&quot;,
2406              ],
2407            },
2408          },
2409        },
2410        &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
2411          &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
2412            &quot;A String&quot;,
2413          ],
2414          &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.
2415            &quot;A String&quot;,
2416          ],
2417        },
2418      },
2419      &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
2420        { # 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.
2421          &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
2422            { # A polymorphic targeting value used as part of Shared Targeting.
2423              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2424                &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).
2425                  &quot;A String&quot;,
2426                ],
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;height&quot;: 42, # The height of the creative.
2430                    &quot;width&quot;: 42, # The width of the creative
2431                  },
2432                ],
2433                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2434                &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.
2435                &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
2436                  &quot;height&quot;: 42, # The height of the creative.
2437                  &quot;width&quot;: 42, # The width of the creative
2438                },
2439                &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.
2440              },
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;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2445                    &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.
2446                      &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.
2447                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2448                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2449                      &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.
2450                    },
2451                    &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.
2452                      &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.
2453                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2454                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2455                      &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.
2456                    },
2457                  },
2458                ],
2459                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2460              },
2461              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2462              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2463            },
2464          ],
2465          &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
2466            { # A polymorphic targeting value used as part of Shared Targeting.
2467              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
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;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
2472                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2473                    &quot;height&quot;: 42, # The height of the creative.
2474                    &quot;width&quot;: 42, # The width of the creative
2475                  },
2476                ],
2477                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2478                &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.
2479                &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
2480                  &quot;height&quot;: 42, # The height of the creative.
2481                  &quot;width&quot;: 42, # The width of the creative
2482                },
2483                &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.
2484              },
2485              &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.
2486                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2487                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2488                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2489                    &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.
2490                      &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.
2491                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2492                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2493                      &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.
2494                    },
2495                    &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.
2496                      &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.
2497                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2498                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2499                      &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.
2500                    },
2501                  },
2502                ],
2503                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2504              },
2505              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2506              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2507            },
2508          ],
2509          &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.
2510        },
2511      ],
2512      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
2513      &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
2514    },
2515  ],
2516  &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
2517  &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
2518  &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
2519  &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
2520  &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
2521    { # A proposal may be associated to several notes.
2522      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
2523      &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
2524      &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.
2525      &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
2526      &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
2527    },
2528  ],
2529  &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
2530  &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
2531  &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
2532  &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.
2533  &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
2534  &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.
2535    &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.
2536    &quot;subAccountId&quot;: &quot;A String&quot;, # Output only. Ad manager network code for the seller.
2537  },
2538  &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
2539    { # Contains information on how a buyer or seller can be reached.
2540      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2541      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2542    },
2543  ],
2544  &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
2545  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
2546}</pre>
2547</div>
2548
2549<div class="method">
2550    <code class="details" id="list">list(accountId, filter=None, filterSyntax=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
2551  <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.
2552
2553Args:
2554  accountId: string, Account ID of the buyer. (required)
2555  filter: string, An optional PQL filter query used to query for proposals. Nested repeated fields, such as proposal.deals.targetingCriterion, cannot be filtered.
2556  filterSyntax: string, Syntax the filter is written in. Current implementation defaults to PQL but in the future it will be LIST_FILTER.
2557    Allowed values
2558      FILTER_SYNTAX_UNSPECIFIED - A placeholder for an undefined filter syntax.
2559      PQL - PQL query syntax. Visit https://developers.google.com/ad-manager/api/pqlreference for PQL documentation and examples.
2560      LIST_FILTER - API list filtering syntax. Read about syntax and usage at https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.
2561  pageSize: integer, Requested page size. The server may return fewer results than requested. If unspecified, the server will pick an appropriate default.
2562  pageToken: string, The page token as returned from ListProposalsResponse.
2563  x__xgafv: string, V1 error format.
2564    Allowed values
2565      1 - v1 error format
2566      2 - v2 error format
2567
2568Returns:
2569  An object of the form:
2570
2571    { # Response message for listing proposals.
2572  &quot;nextPageToken&quot;: &quot;A String&quot;, # Continuation token for fetching the next page of results.
2573  &quot;proposals&quot;: [ # The list of proposals.
2574    { # 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&#x27;t update, create, or otherwise modify Private Auction deals through the API. Fields are updatable unless noted otherwise.
2575      &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.
2576        &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2577      },
2578      &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.
2579        &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2580      },
2581      &quot;buyerContacts&quot;: [ # Contact information for the buyer.
2582        { # Contains information on how a buyer or seller can be reached.
2583          &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2584          &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2585        },
2586      ],
2587      &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
2588        &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).
2589      },
2590      &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
2591        { # 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.
2592          &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.
2593          &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.
2594          &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
2595            &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).
2596          },
2597          &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.
2598          &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 since 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.
2599          &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
2600          &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
2601          &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.
2602            &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
2603            &quot;creativeSpecifications&quot;: [
2604              { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
2605                &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
2606                  { # Represents size of a single ad slot, or a creative.
2607                    &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`.
2608                    &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2609                    &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`.
2610                  },
2611                ],
2612                &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
2613                  &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`.
2614                  &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2615                  &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`.
2616                },
2617              },
2618            ],
2619            &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
2620          },
2621          &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
2622          &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
2623          &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
2624            &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.
2625              &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
2626              &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
2627              &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
2628              &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
2629              &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
2630            },
2631          },
2632          &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.
2633            &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
2634            &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
2635            &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.
2636              &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2637                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2638                &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.
2639                &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.
2640              },
2641              &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2642            },
2643            &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
2644            &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
2645              &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2646                { # 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.
2647                  &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.
2648                    &quot;A String&quot;,
2649                  ],
2650                  &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).
2651                    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2652                  },
2653                  &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2654                    &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2655                      &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2656                      &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.
2657                      &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.
2658                    },
2659                    &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2660                  },
2661                },
2662              ],
2663              &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.
2664              &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
2665              &quot;impressionCap&quot;: &quot;A String&quot;, # The lifetime impression cap for CPM sponsorship deals. The deal will stop serving when the cap is reached.
2666              &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
2667              &quot;percentShareOfVoice&quot;: &quot;A String&quot;, # For sponsorship deals, this is the percentage of the seller&#x27;s eligible impressions that the deal will serve until the cap is reached.
2668              &quot;reservationType&quot;: &quot;A String&quot;, # The reservation type for a Programmatic Guaranteed deal. This indicates whether the number of impressions is fixed, or a percent of available impressions. If not specified, the default reservation type is STANDARD.
2669            },
2670            &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.
2671              &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
2672              &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
2673                { # 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.
2674                  &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.
2675                    &quot;A String&quot;,
2676                  ],
2677                  &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).
2678                    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2679                  },
2680                  &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2681                    &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2682                      &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2683                      &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.
2684                      &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.
2685                    },
2686                    &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2687                  },
2688                },
2689              ],
2690            },
2691            &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. # The terms for non-guaranteed fixed price deals.
2692              &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2693                { # 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.
2694                  &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.
2695                    &quot;A String&quot;,
2696                  ],
2697                  &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).
2698                    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2699                  },
2700                  &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2701                    &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2702                      &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2703                      &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.
2704                      &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.
2705                    },
2706                    &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2707                  },
2708                },
2709              ],
2710            },
2711            &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.
2712          },
2713          &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.
2714            &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
2715            &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
2716            &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
2717              { # Frequency cap.
2718                &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
2719                &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.
2720                &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.
2721              },
2722            ],
2723          },
2724          &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
2725          &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
2726          &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.
2727          &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
2728          &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.
2729          &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
2730          &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
2731            { # Contains information on how a buyer or seller can be reached.
2732              &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2733              &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2734            },
2735          ],
2736          &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.
2737          &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.
2738            &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.
2739              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2740                &quot;A String&quot;,
2741              ],
2742              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2743                &quot;A String&quot;,
2744              ],
2745            },
2746            &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.
2747              &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
2748                { # Represents size of a single ad slot, or a creative.
2749                  &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`.
2750                  &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2751                  &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`.
2752                },
2753              ],
2754              &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
2755                { # Represents size of a single ad slot, or a creative.
2756                  &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`.
2757                  &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2758                  &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`.
2759                },
2760              ],
2761            },
2762            &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.
2763              &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
2764                &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.
2765                  &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
2766                    &quot;A String&quot;,
2767                  ],
2768                  &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
2769                    &quot;A String&quot;,
2770                  ],
2771                },
2772              },
2773              &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.
2774                &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
2775                  &quot;A String&quot;,
2776                ],
2777                &quot;targetedUrls&quot;: [ # A list of URLs to be included.
2778                  &quot;A String&quot;,
2779                ],
2780              },
2781            },
2782            &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
2783              &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.
2784                &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2785                  &quot;A String&quot;,
2786                ],
2787                &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2788                  &quot;A String&quot;,
2789                ],
2790              },
2791              &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.
2792                &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2793                  &quot;A String&quot;,
2794                ],
2795                &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2796                  &quot;A String&quot;,
2797                ],
2798              },
2799              &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
2800                &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.
2801                  &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2802                    &quot;A String&quot;,
2803                  ],
2804                  &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2805                    &quot;A String&quot;,
2806                  ],
2807                },
2808                &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.
2809                  &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2810                    &quot;A String&quot;,
2811                  ],
2812                  &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2813                    &quot;A String&quot;,
2814                  ],
2815                },
2816              },
2817            },
2818            &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
2819              &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
2820                &quot;A String&quot;,
2821              ],
2822              &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.
2823                &quot;A String&quot;,
2824              ],
2825            },
2826          },
2827          &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
2828            { # 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.
2829              &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
2830                { # A polymorphic targeting value used as part of Shared Targeting.
2831                  &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2832                    &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).
2833                      &quot;A String&quot;,
2834                    ],
2835                    &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
2836                      { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2837                        &quot;height&quot;: 42, # The height of the creative.
2838                        &quot;width&quot;: 42, # The width of the creative
2839                      },
2840                    ],
2841                    &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2842                    &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.
2843                    &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
2844                      &quot;height&quot;: 42, # The height of the creative.
2845                      &quot;width&quot;: 42, # The width of the creative
2846                    },
2847                    &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.
2848                  },
2849                  &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.
2850                    &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2851                      { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2852                        &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2853                        &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.
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;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2856                          &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2857                          &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.
2858                        },
2859                        &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.
2860                          &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.
2861                          &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2862                          &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2863                          &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.
2864                        },
2865                      },
2866                    ],
2867                    &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2868                  },
2869                  &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2870                  &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2871                },
2872              ],
2873              &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
2874                { # A polymorphic targeting value used as part of Shared Targeting.
2875                  &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2876                    &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).
2877                      &quot;A String&quot;,
2878                    ],
2879                    &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
2880                      { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2881                        &quot;height&quot;: 42, # The height of the creative.
2882                        &quot;width&quot;: 42, # The width of the creative
2883                      },
2884                    ],
2885                    &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2886                    &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.
2887                    &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
2888                      &quot;height&quot;: 42, # The height of the creative.
2889                      &quot;width&quot;: 42, # The width of the creative
2890                    },
2891                    &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.
2892                  },
2893                  &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.
2894                    &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2895                      { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2896                        &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2897                        &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.
2898                          &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.
2899                          &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2900                          &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2901                          &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.
2902                        },
2903                        &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.
2904                          &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.
2905                          &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2906                          &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2907                          &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.
2908                        },
2909                      },
2910                    ],
2911                    &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2912                  },
2913                  &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2914                  &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2915                },
2916              ],
2917              &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.
2918            },
2919          ],
2920          &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
2921          &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
2922        },
2923      ],
2924      &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
2925      &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
2926      &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
2927      &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
2928      &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
2929        { # A proposal may be associated to several notes.
2930          &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
2931          &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
2932          &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.
2933          &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
2934          &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
2935        },
2936      ],
2937      &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
2938      &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
2939      &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
2940      &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.
2941      &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
2942      &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.
2943        &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.
2944        &quot;subAccountId&quot;: &quot;A String&quot;, # Output only. Ad manager network code for the seller.
2945      },
2946      &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
2947        { # Contains information on how a buyer or seller can be reached.
2948          &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2949          &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2950        },
2951      ],
2952      &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
2953      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
2954    },
2955  ],
2956}</pre>
2957</div>
2958
2959<div class="method">
2960    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2961  <pre>Retrieves the next page of results.
2962
2963Args:
2964  previous_request: The request for the previous page. (required)
2965  previous_response: The response from the request for the previous page. (required)
2966
2967Returns:
2968  A request object that you can call &#x27;execute()&#x27; on to request the next
2969  page. Returns None if there are no more items in the collection.
2970    </pre>
2971</div>
2972
2973<div class="method">
2974    <code class="details" id="pause">pause(accountId, proposalId, body=None, x__xgafv=None)</code>
2975  <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.
2976
2977Args:
2978  accountId: string, Account ID of the buyer. (required)
2979  proposalId: string, The ID of the proposal to pause. (required)
2980  body: object, The request body.
2981    The object takes the form of:
2982
2983{ # Request message to pause serving for an already-finalized proposal.
2984  &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.)
2985}
2986
2987  x__xgafv: string, V1 error format.
2988    Allowed values
2989      1 - v1 error format
2990      2 - v2 error format
2991
2992Returns:
2993  An object of the form:
2994
2995    { # 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&#x27;t update, create, or otherwise modify Private Auction deals through the API. Fields are updatable unless noted otherwise.
2996  &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.
2997    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2998  },
2999  &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.
3000    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3001  },
3002  &quot;buyerContacts&quot;: [ # Contact information for the buyer.
3003    { # Contains information on how a buyer or seller can be reached.
3004      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3005      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3006    },
3007  ],
3008  &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
3009    &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).
3010  },
3011  &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
3012    { # 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.
3013      &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.
3014      &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.
3015      &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
3016        &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).
3017      },
3018      &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.
3019      &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 since 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.
3020      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
3021      &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
3022      &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.
3023        &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
3024        &quot;creativeSpecifications&quot;: [
3025          { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
3026            &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
3027              { # Represents size of a single ad slot, or a creative.
3028                &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`.
3029                &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3030                &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`.
3031              },
3032            ],
3033            &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
3034              &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`.
3035              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3036              &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`.
3037            },
3038          },
3039        ],
3040        &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
3041      },
3042      &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
3043      &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
3044      &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
3045        &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.
3046          &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
3047          &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
3048          &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
3049          &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
3050          &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
3051        },
3052      },
3053      &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.
3054        &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
3055        &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
3056        &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.
3057          &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3058            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3059            &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.
3060            &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.
3061          },
3062          &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3063        },
3064        &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
3065        &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
3066          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3067            { # 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.
3068              &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.
3069                &quot;A String&quot;,
3070              ],
3071              &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).
3072                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3073              },
3074              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3075                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3076                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3077                  &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.
3078                  &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.
3079                },
3080                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3081              },
3082            },
3083          ],
3084          &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.
3085          &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
3086          &quot;impressionCap&quot;: &quot;A String&quot;, # The lifetime impression cap for CPM sponsorship deals. The deal will stop serving when the cap is reached.
3087          &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
3088          &quot;percentShareOfVoice&quot;: &quot;A String&quot;, # For sponsorship deals, this is the percentage of the seller&#x27;s eligible impressions that the deal will serve until the cap is reached.
3089          &quot;reservationType&quot;: &quot;A String&quot;, # The reservation type for a Programmatic Guaranteed deal. This indicates whether the number of impressions is fixed, or a percent of available impressions. If not specified, the default reservation type is STANDARD.
3090        },
3091        &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.
3092          &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
3093          &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
3094            { # 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.
3095              &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.
3096                &quot;A String&quot;,
3097              ],
3098              &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).
3099                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3100              },
3101              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3102                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3103                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3104                  &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.
3105                  &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.
3106                },
3107                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3108              },
3109            },
3110          ],
3111        },
3112        &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. # The terms for non-guaranteed fixed price deals.
3113          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3114            { # 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.
3115              &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.
3116                &quot;A String&quot;,
3117              ],
3118              &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).
3119                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3120              },
3121              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3122                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3123                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3124                  &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.
3125                  &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.
3126                },
3127                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3128              },
3129            },
3130          ],
3131        },
3132        &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.
3133      },
3134      &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.
3135        &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
3136        &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
3137        &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
3138          { # Frequency cap.
3139            &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
3140            &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.
3141            &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.
3142          },
3143        ],
3144      },
3145      &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
3146      &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
3147      &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.
3148      &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
3149      &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.
3150      &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
3151      &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
3152        { # Contains information on how a buyer or seller can be reached.
3153          &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3154          &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3155        },
3156      ],
3157      &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.
3158      &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.
3159        &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.
3160          &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3161            &quot;A String&quot;,
3162          ],
3163          &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3164            &quot;A String&quot;,
3165          ],
3166        },
3167        &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.
3168          &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
3169            { # Represents size of a single ad slot, or a creative.
3170              &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`.
3171              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3172              &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`.
3173            },
3174          ],
3175          &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
3176            { # Represents size of a single ad slot, or a creative.
3177              &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`.
3178              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3179              &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`.
3180            },
3181          ],
3182        },
3183        &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.
3184          &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
3185            &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.
3186              &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
3187                &quot;A String&quot;,
3188              ],
3189              &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
3190                &quot;A String&quot;,
3191              ],
3192            },
3193          },
3194          &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.
3195            &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
3196              &quot;A String&quot;,
3197            ],
3198            &quot;targetedUrls&quot;: [ # A list of URLs to be included.
3199              &quot;A String&quot;,
3200            ],
3201          },
3202        },
3203        &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
3204          &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.
3205            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3206              &quot;A String&quot;,
3207            ],
3208            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3209              &quot;A String&quot;,
3210            ],
3211          },
3212          &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.
3213            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3214              &quot;A String&quot;,
3215            ],
3216            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3217              &quot;A String&quot;,
3218            ],
3219          },
3220          &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
3221            &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.
3222              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3223                &quot;A String&quot;,
3224              ],
3225              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3226                &quot;A String&quot;,
3227              ],
3228            },
3229            &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.
3230              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3231                &quot;A String&quot;,
3232              ],
3233              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3234                &quot;A String&quot;,
3235              ],
3236            },
3237          },
3238        },
3239        &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
3240          &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
3241            &quot;A String&quot;,
3242          ],
3243          &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.
3244            &quot;A String&quot;,
3245          ],
3246        },
3247      },
3248      &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
3249        { # 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.
3250          &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
3251            { # A polymorphic targeting value used as part of Shared Targeting.
3252              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3253                &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).
3254                  &quot;A String&quot;,
3255                ],
3256                &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
3257                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3258                    &quot;height&quot;: 42, # The height of the creative.
3259                    &quot;width&quot;: 42, # The width of the creative
3260                  },
3261                ],
3262                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3263                &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.
3264                &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
3265                  &quot;height&quot;: 42, # The height of the creative.
3266                  &quot;width&quot;: 42, # The width of the creative
3267                },
3268                &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.
3269              },
3270              &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.
3271                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3272                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3273                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3274                    &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.
3275                      &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.
3276                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3277                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3278                      &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.
3279                    },
3280                    &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.
3281                      &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.
3282                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3283                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3284                      &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.
3285                    },
3286                  },
3287                ],
3288                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3289              },
3290              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3291              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3292            },
3293          ],
3294          &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
3295            { # A polymorphic targeting value used as part of Shared Targeting.
3296              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3297                &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).
3298                  &quot;A String&quot;,
3299                ],
3300                &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
3301                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3302                    &quot;height&quot;: 42, # The height of the creative.
3303                    &quot;width&quot;: 42, # The width of the creative
3304                  },
3305                ],
3306                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3307                &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.
3308                &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
3309                  &quot;height&quot;: 42, # The height of the creative.
3310                  &quot;width&quot;: 42, # The width of the creative
3311                },
3312                &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.
3313              },
3314              &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.
3315                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3316                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3317                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3318                    &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.
3319                      &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.
3320                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3321                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3322                      &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.
3323                    },
3324                    &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.
3325                      &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.
3326                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3327                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3328                      &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.
3329                    },
3330                  },
3331                ],
3332                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3333              },
3334              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3335              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3336            },
3337          ],
3338          &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.
3339        },
3340      ],
3341      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
3342      &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
3343    },
3344  ],
3345  &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
3346  &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
3347  &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
3348  &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
3349  &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
3350    { # A proposal may be associated to several notes.
3351      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
3352      &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
3353      &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.
3354      &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
3355      &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
3356    },
3357  ],
3358  &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
3359  &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
3360  &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
3361  &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.
3362  &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
3363  &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.
3364    &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.
3365    &quot;subAccountId&quot;: &quot;A String&quot;, # Output only. Ad manager network code for the seller.
3366  },
3367  &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
3368    { # Contains information on how a buyer or seller can be reached.
3369      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3370      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3371    },
3372  ],
3373  &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
3374  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
3375}</pre>
3376</div>
3377
3378<div class="method">
3379    <code class="details" id="resume">resume(accountId, proposalId, body=None, x__xgafv=None)</code>
3380  <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.
3381
3382Args:
3383  accountId: string, Account ID of the buyer. (required)
3384  proposalId: string, The ID of the proposal to resume. (required)
3385  body: object, The request body.
3386    The object takes the form of:
3387
3388{ # Request message to resume (unpause) serving for an already-finalized proposal.
3389}
3390
3391  x__xgafv: string, V1 error format.
3392    Allowed values
3393      1 - v1 error format
3394      2 - v2 error format
3395
3396Returns:
3397  An object of the form:
3398
3399    { # 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&#x27;t update, create, or otherwise modify Private Auction deals through the API. Fields are updatable unless noted otherwise.
3400  &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.
3401    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3402  },
3403  &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.
3404    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3405  },
3406  &quot;buyerContacts&quot;: [ # Contact information for the buyer.
3407    { # Contains information on how a buyer or seller can be reached.
3408      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3409      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3410    },
3411  ],
3412  &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
3413    &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).
3414  },
3415  &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
3416    { # 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.
3417      &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.
3418      &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.
3419      &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
3420        &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).
3421      },
3422      &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.
3423      &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 since 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.
3424      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
3425      &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
3426      &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.
3427        &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
3428        &quot;creativeSpecifications&quot;: [
3429          { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
3430            &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
3431              { # Represents size of a single ad slot, or a creative.
3432                &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`.
3433                &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3434                &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`.
3435              },
3436            ],
3437            &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
3438              &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`.
3439              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3440              &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`.
3441            },
3442          },
3443        ],
3444        &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
3445      },
3446      &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
3447      &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
3448      &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
3449        &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.
3450          &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
3451          &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
3452          &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
3453          &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
3454          &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
3455        },
3456      },
3457      &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.
3458        &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
3459        &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
3460        &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.
3461          &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3462            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3463            &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.
3464            &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.
3465          },
3466          &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3467        },
3468        &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
3469        &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
3470          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3471            { # 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.
3472              &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.
3473                &quot;A String&quot;,
3474              ],
3475              &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).
3476                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3477              },
3478              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3479                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3480                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3481                  &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.
3482                  &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.
3483                },
3484                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3485              },
3486            },
3487          ],
3488          &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.
3489          &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
3490          &quot;impressionCap&quot;: &quot;A String&quot;, # The lifetime impression cap for CPM sponsorship deals. The deal will stop serving when the cap is reached.
3491          &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
3492          &quot;percentShareOfVoice&quot;: &quot;A String&quot;, # For sponsorship deals, this is the percentage of the seller&#x27;s eligible impressions that the deal will serve until the cap is reached.
3493          &quot;reservationType&quot;: &quot;A String&quot;, # The reservation type for a Programmatic Guaranteed deal. This indicates whether the number of impressions is fixed, or a percent of available impressions. If not specified, the default reservation type is STANDARD.
3494        },
3495        &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.
3496          &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
3497          &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
3498            { # 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.
3499              &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.
3500                &quot;A String&quot;,
3501              ],
3502              &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).
3503                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3504              },
3505              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3506                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3507                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3508                  &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.
3509                  &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.
3510                },
3511                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3512              },
3513            },
3514          ],
3515        },
3516        &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. # The terms for non-guaranteed fixed price deals.
3517          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3518            { # 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.
3519              &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.
3520                &quot;A String&quot;,
3521              ],
3522              &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).
3523                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3524              },
3525              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3526                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3527                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3528                  &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.
3529                  &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.
3530                },
3531                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3532              },
3533            },
3534          ],
3535        },
3536        &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.
3537      },
3538      &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.
3539        &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
3540        &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
3541        &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
3542          { # Frequency cap.
3543            &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
3544            &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.
3545            &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.
3546          },
3547        ],
3548      },
3549      &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
3550      &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
3551      &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.
3552      &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
3553      &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.
3554      &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
3555      &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
3556        { # Contains information on how a buyer or seller can be reached.
3557          &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3558          &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3559        },
3560      ],
3561      &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.
3562      &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.
3563        &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.
3564          &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3565            &quot;A String&quot;,
3566          ],
3567          &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3568            &quot;A String&quot;,
3569          ],
3570        },
3571        &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.
3572          &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
3573            { # Represents size of a single ad slot, or a creative.
3574              &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`.
3575              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3576              &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`.
3577            },
3578          ],
3579          &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
3580            { # Represents size of a single ad slot, or a creative.
3581              &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`.
3582              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3583              &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`.
3584            },
3585          ],
3586        },
3587        &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.
3588          &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
3589            &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.
3590              &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
3591                &quot;A String&quot;,
3592              ],
3593              &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
3594                &quot;A String&quot;,
3595              ],
3596            },
3597          },
3598          &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.
3599            &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
3600              &quot;A String&quot;,
3601            ],
3602            &quot;targetedUrls&quot;: [ # A list of URLs to be included.
3603              &quot;A String&quot;,
3604            ],
3605          },
3606        },
3607        &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
3608          &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.
3609            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3610              &quot;A String&quot;,
3611            ],
3612            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3613              &quot;A String&quot;,
3614            ],
3615          },
3616          &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.
3617            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3618              &quot;A String&quot;,
3619            ],
3620            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3621              &quot;A String&quot;,
3622            ],
3623          },
3624          &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
3625            &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.
3626              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3627                &quot;A String&quot;,
3628              ],
3629              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3630                &quot;A String&quot;,
3631              ],
3632            },
3633            &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.
3634              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3635                &quot;A String&quot;,
3636              ],
3637              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3638                &quot;A String&quot;,
3639              ],
3640            },
3641          },
3642        },
3643        &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
3644          &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
3645            &quot;A String&quot;,
3646          ],
3647          &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.
3648            &quot;A String&quot;,
3649          ],
3650        },
3651      },
3652      &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
3653        { # 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.
3654          &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
3655            { # A polymorphic targeting value used as part of Shared Targeting.
3656              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3657                &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).
3658                  &quot;A String&quot;,
3659                ],
3660                &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
3661                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3662                    &quot;height&quot;: 42, # The height of the creative.
3663                    &quot;width&quot;: 42, # The width of the creative
3664                  },
3665                ],
3666                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3667                &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.
3668                &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
3669                  &quot;height&quot;: 42, # The height of the creative.
3670                  &quot;width&quot;: 42, # The width of the creative
3671                },
3672                &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.
3673              },
3674              &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.
3675                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3676                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3677                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3678                    &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.
3679                      &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.
3680                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3681                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3682                      &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.
3683                    },
3684                    &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.
3685                      &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.
3686                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3687                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3688                      &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.
3689                    },
3690                  },
3691                ],
3692                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3693              },
3694              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3695              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3696            },
3697          ],
3698          &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
3699            { # A polymorphic targeting value used as part of Shared Targeting.
3700              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3701                &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).
3702                  &quot;A String&quot;,
3703                ],
3704                &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
3705                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3706                    &quot;height&quot;: 42, # The height of the creative.
3707                    &quot;width&quot;: 42, # The width of the creative
3708                  },
3709                ],
3710                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3711                &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.
3712                &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
3713                  &quot;height&quot;: 42, # The height of the creative.
3714                  &quot;width&quot;: 42, # The width of the creative
3715                },
3716                &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.
3717              },
3718              &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.
3719                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3720                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3721                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3722                    &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.
3723                      &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.
3724                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3725                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3726                      &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.
3727                    },
3728                    &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.
3729                      &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.
3730                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3731                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3732                      &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.
3733                    },
3734                  },
3735                ],
3736                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3737              },
3738              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3739              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3740            },
3741          ],
3742          &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.
3743        },
3744      ],
3745      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
3746      &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
3747    },
3748  ],
3749  &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
3750  &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
3751  &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
3752  &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
3753  &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
3754    { # A proposal may be associated to several notes.
3755      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
3756      &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
3757      &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.
3758      &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
3759      &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
3760    },
3761  ],
3762  &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
3763  &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
3764  &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
3765  &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.
3766  &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
3767  &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.
3768    &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.
3769    &quot;subAccountId&quot;: &quot;A String&quot;, # Output only. Ad manager network code for the seller.
3770  },
3771  &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
3772    { # Contains information on how a buyer or seller can be reached.
3773      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3774      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3775    },
3776  ],
3777  &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
3778  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
3779}</pre>
3780</div>
3781
3782<div class="method">
3783    <code class="details" id="update">update(accountId, proposalId, body=None, x__xgafv=None)</code>
3784  <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.
3785
3786Args:
3787  accountId: string, Account ID of the buyer. (required)
3788  proposalId: string, The unique ID of the proposal. (required)
3789  body: object, The request body.
3790    The object takes the form of:
3791
3792{ # 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&#x27;t update, create, or otherwise modify Private Auction deals through the API. Fields are updatable unless noted otherwise.
3793  &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.
3794    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3795  },
3796  &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.
3797    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3798  },
3799  &quot;buyerContacts&quot;: [ # Contact information for the buyer.
3800    { # Contains information on how a buyer or seller can be reached.
3801      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3802      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3803    },
3804  ],
3805  &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
3806    &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).
3807  },
3808  &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
3809    { # 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.
3810      &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.
3811      &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.
3812      &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
3813        &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).
3814      },
3815      &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.
3816      &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 since 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.
3817      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
3818      &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
3819      &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.
3820        &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
3821        &quot;creativeSpecifications&quot;: [
3822          { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
3823            &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
3824              { # Represents size of a single ad slot, or a creative.
3825                &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`.
3826                &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3827                &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`.
3828              },
3829            ],
3830            &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
3831              &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`.
3832              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3833              &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`.
3834            },
3835          },
3836        ],
3837        &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
3838      },
3839      &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
3840      &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
3841      &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
3842        &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.
3843          &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
3844          &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
3845          &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
3846          &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
3847          &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
3848        },
3849      },
3850      &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.
3851        &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
3852        &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
3853        &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.
3854          &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3855            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3856            &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.
3857            &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.
3858          },
3859          &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3860        },
3861        &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
3862        &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
3863          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3864            { # 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.
3865              &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.
3866                &quot;A String&quot;,
3867              ],
3868              &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).
3869                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3870              },
3871              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3872                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3873                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3874                  &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.
3875                  &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.
3876                },
3877                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3878              },
3879            },
3880          ],
3881          &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.
3882          &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
3883          &quot;impressionCap&quot;: &quot;A String&quot;, # The lifetime impression cap for CPM sponsorship deals. The deal will stop serving when the cap is reached.
3884          &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
3885          &quot;percentShareOfVoice&quot;: &quot;A String&quot;, # For sponsorship deals, this is the percentage of the seller&#x27;s eligible impressions that the deal will serve until the cap is reached.
3886          &quot;reservationType&quot;: &quot;A String&quot;, # The reservation type for a Programmatic Guaranteed deal. This indicates whether the number of impressions is fixed, or a percent of available impressions. If not specified, the default reservation type is STANDARD.
3887        },
3888        &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.
3889          &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
3890          &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
3891            { # 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.
3892              &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.
3893                &quot;A String&quot;,
3894              ],
3895              &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).
3896                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3897              },
3898              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3899                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3900                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3901                  &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.
3902                  &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.
3903                },
3904                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3905              },
3906            },
3907          ],
3908        },
3909        &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. # The terms for non-guaranteed fixed price deals.
3910          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3911            { # 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.
3912              &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.
3913                &quot;A String&quot;,
3914              ],
3915              &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).
3916                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3917              },
3918              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3919                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3920                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3921                  &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.
3922                  &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.
3923                },
3924                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3925              },
3926            },
3927          ],
3928        },
3929        &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.
3930      },
3931      &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.
3932        &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
3933        &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
3934        &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
3935          { # Frequency cap.
3936            &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
3937            &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.
3938            &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.
3939          },
3940        ],
3941      },
3942      &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
3943      &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
3944      &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.
3945      &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
3946      &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.
3947      &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
3948      &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
3949        { # Contains information on how a buyer or seller can be reached.
3950          &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3951          &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3952        },
3953      ],
3954      &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.
3955      &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.
3956        &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.
3957          &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3958            &quot;A String&quot;,
3959          ],
3960          &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3961            &quot;A String&quot;,
3962          ],
3963        },
3964        &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.
3965          &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
3966            { # Represents size of a single ad slot, or a creative.
3967              &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`.
3968              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3969              &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`.
3970            },
3971          ],
3972          &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
3973            { # Represents size of a single ad slot, or a creative.
3974              &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`.
3975              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3976              &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`.
3977            },
3978          ],
3979        },
3980        &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.
3981          &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
3982            &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.
3983              &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
3984                &quot;A String&quot;,
3985              ],
3986              &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
3987                &quot;A String&quot;,
3988              ],
3989            },
3990          },
3991          &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.
3992            &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
3993              &quot;A String&quot;,
3994            ],
3995            &quot;targetedUrls&quot;: [ # A list of URLs to be included.
3996              &quot;A String&quot;,
3997            ],
3998          },
3999        },
4000        &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
4001          &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.
4002            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4003              &quot;A String&quot;,
4004            ],
4005            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4006              &quot;A String&quot;,
4007            ],
4008          },
4009          &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.
4010            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4011              &quot;A String&quot;,
4012            ],
4013            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4014              &quot;A String&quot;,
4015            ],
4016          },
4017          &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
4018            &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.
4019              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4020                &quot;A String&quot;,
4021              ],
4022              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4023                &quot;A String&quot;,
4024              ],
4025            },
4026            &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.
4027              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4028                &quot;A String&quot;,
4029              ],
4030              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4031                &quot;A String&quot;,
4032              ],
4033            },
4034          },
4035        },
4036        &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
4037          &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
4038            &quot;A String&quot;,
4039          ],
4040          &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.
4041            &quot;A String&quot;,
4042          ],
4043        },
4044      },
4045      &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
4046        { # 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.
4047          &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
4048            { # A polymorphic targeting value used as part of Shared Targeting.
4049              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
4050                &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).
4051                  &quot;A String&quot;,
4052                ],
4053                &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
4054                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
4055                    &quot;height&quot;: 42, # The height of the creative.
4056                    &quot;width&quot;: 42, # The width of the creative
4057                  },
4058                ],
4059                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4060                &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.
4061                &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
4062                  &quot;height&quot;: 42, # The height of the creative.
4063                  &quot;width&quot;: 42, # The width of the creative
4064                },
4065                &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.
4066              },
4067              &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.
4068                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4069                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
4070                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4071                    &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.
4072                      &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.
4073                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4074                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4075                      &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.
4076                    },
4077                    &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.
4078                      &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.
4079                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4080                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4081                      &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.
4082                    },
4083                  },
4084                ],
4085                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4086              },
4087              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4088              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4089            },
4090          ],
4091          &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
4092            { # A polymorphic targeting value used as part of Shared Targeting.
4093              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
4094                &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).
4095                  &quot;A String&quot;,
4096                ],
4097                &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
4098                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
4099                    &quot;height&quot;: 42, # The height of the creative.
4100                    &quot;width&quot;: 42, # The width of the creative
4101                  },
4102                ],
4103                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4104                &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.
4105                &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
4106                  &quot;height&quot;: 42, # The height of the creative.
4107                  &quot;width&quot;: 42, # The width of the creative
4108                },
4109                &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.
4110              },
4111              &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.
4112                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4113                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
4114                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4115                    &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.
4116                      &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.
4117                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4118                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4119                      &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.
4120                    },
4121                    &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.
4122                      &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.
4123                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4124                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4125                      &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.
4126                    },
4127                  },
4128                ],
4129                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4130              },
4131              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4132              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4133            },
4134          ],
4135          &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.
4136        },
4137      ],
4138      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
4139      &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
4140    },
4141  ],
4142  &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
4143  &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
4144  &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
4145  &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
4146  &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
4147    { # A proposal may be associated to several notes.
4148      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
4149      &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
4150      &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.
4151      &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
4152      &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
4153    },
4154  ],
4155  &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
4156  &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
4157  &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
4158  &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.
4159  &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
4160  &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.
4161    &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.
4162    &quot;subAccountId&quot;: &quot;A String&quot;, # Output only. Ad manager network code for the seller.
4163  },
4164  &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
4165    { # Contains information on how a buyer or seller can be reached.
4166      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4167      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4168    },
4169  ],
4170  &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
4171  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
4172}
4173
4174  x__xgafv: string, V1 error format.
4175    Allowed values
4176      1 - v1 error format
4177      2 - v2 error format
4178
4179Returns:
4180  An object of the form:
4181
4182    { # 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&#x27;t update, create, or otherwise modify Private Auction deals through the API. Fields are updatable unless noted otherwise.
4183  &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.
4184    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4185  },
4186  &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.
4187    &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4188  },
4189  &quot;buyerContacts&quot;: [ # Contact information for the buyer.
4190    { # Contains information on how a buyer or seller can be reached.
4191      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4192      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4193    },
4194  ],
4195  &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
4196    &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).
4197  },
4198  &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
4199    { # 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.
4200      &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.
4201      &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.
4202      &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
4203        &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).
4204      },
4205      &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.
4206      &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 since 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.
4207      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
4208      &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
4209      &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.
4210        &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
4211        &quot;creativeSpecifications&quot;: [
4212          { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
4213            &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
4214              { # Represents size of a single ad slot, or a creative.
4215                &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`.
4216                &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4217                &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`.
4218              },
4219            ],
4220            &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
4221              &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`.
4222              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4223              &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`.
4224            },
4225          },
4226        ],
4227        &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
4228      },
4229      &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
4230      &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
4231      &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
4232        &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.
4233          &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
4234          &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
4235          &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
4236          &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
4237          &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
4238        },
4239      },
4240      &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.
4241        &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
4242        &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
4243        &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.
4244          &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4245            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
4246            &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.
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          },
4249          &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4250        },
4251        &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
4252        &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
4253          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
4254            { # 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.
4255              &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.
4256                &quot;A String&quot;,
4257              ],
4258              &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).
4259                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4260              },
4261              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4262                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4263                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
4264                  &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.
4265                  &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.
4266                },
4267                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4268              },
4269            },
4270          ],
4271          &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.
4272          &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
4273          &quot;impressionCap&quot;: &quot;A String&quot;, # The lifetime impression cap for CPM sponsorship deals. The deal will stop serving when the cap is reached.
4274          &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
4275          &quot;percentShareOfVoice&quot;: &quot;A String&quot;, # For sponsorship deals, this is the percentage of the seller&#x27;s eligible impressions that the deal will serve until the cap is reached.
4276          &quot;reservationType&quot;: &quot;A String&quot;, # The reservation type for a Programmatic Guaranteed deal. This indicates whether the number of impressions is fixed, or a percent of available impressions. If not specified, the default reservation type is STANDARD.
4277        },
4278        &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.
4279          &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
4280          &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
4281            { # 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.
4282              &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.
4283                &quot;A String&quot;,
4284              ],
4285              &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).
4286                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4287              },
4288              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4289                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4290                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
4291                  &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.
4292                  &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.
4293                },
4294                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4295              },
4296            },
4297          ],
4298        },
4299        &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. # The terms for non-guaranteed fixed price deals.
4300          &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
4301            { # 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.
4302              &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.
4303                &quot;A String&quot;,
4304              ],
4305              &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).
4306                &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4307              },
4308              &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4309                &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4310                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
4311                  &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.
4312                  &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.
4313                },
4314                &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4315              },
4316            },
4317          ],
4318        },
4319        &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.
4320      },
4321      &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.
4322        &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
4323        &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
4324        &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
4325          { # Frequency cap.
4326            &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
4327            &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.
4328            &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.
4329          },
4330        ],
4331      },
4332      &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
4333      &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
4334      &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.
4335      &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
4336      &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.
4337      &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
4338      &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
4339        { # Contains information on how a buyer or seller can be reached.
4340          &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4341          &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4342        },
4343      ],
4344      &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.
4345      &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.
4346        &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.
4347          &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4348            &quot;A String&quot;,
4349          ],
4350          &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4351            &quot;A String&quot;,
4352          ],
4353        },
4354        &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.
4355          &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
4356            { # Represents size of a single ad slot, or a creative.
4357              &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`.
4358              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4359              &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`.
4360            },
4361          ],
4362          &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
4363            { # Represents size of a single ad slot, or a creative.
4364              &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`.
4365              &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4366              &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`.
4367            },
4368          ],
4369        },
4370        &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.
4371          &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
4372            &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.
4373              &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
4374                &quot;A String&quot;,
4375              ],
4376              &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
4377                &quot;A String&quot;,
4378              ],
4379            },
4380          },
4381          &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.
4382            &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
4383              &quot;A String&quot;,
4384            ],
4385            &quot;targetedUrls&quot;: [ # A list of URLs to be included.
4386              &quot;A String&quot;,
4387            ],
4388          },
4389        },
4390        &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
4391          &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.
4392            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4393              &quot;A String&quot;,
4394            ],
4395            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4396              &quot;A String&quot;,
4397            ],
4398          },
4399          &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.
4400            &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4401              &quot;A String&quot;,
4402            ],
4403            &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4404              &quot;A String&quot;,
4405            ],
4406          },
4407          &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
4408            &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.
4409              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4410                &quot;A String&quot;,
4411              ],
4412              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4413                &quot;A String&quot;,
4414              ],
4415            },
4416            &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.
4417              &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4418                &quot;A String&quot;,
4419              ],
4420              &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4421                &quot;A String&quot;,
4422              ],
4423            },
4424          },
4425        },
4426        &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
4427          &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
4428            &quot;A String&quot;,
4429          ],
4430          &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.
4431            &quot;A String&quot;,
4432          ],
4433        },
4434      },
4435      &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
4436        { # 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.
4437          &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
4438            { # A polymorphic targeting value used as part of Shared Targeting.
4439              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
4440                &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).
4441                  &quot;A String&quot;,
4442                ],
4443                &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
4444                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
4445                    &quot;height&quot;: 42, # The height of the creative.
4446                    &quot;width&quot;: 42, # The width of the creative
4447                  },
4448                ],
4449                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4450                &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.
4451                &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
4452                  &quot;height&quot;: 42, # The height of the creative.
4453                  &quot;width&quot;: 42, # The width of the creative
4454                },
4455                &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.
4456              },
4457              &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.
4458                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4459                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
4460                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4461                    &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.
4462                      &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.
4463                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4464                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4465                      &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.
4466                    },
4467                    &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.
4468                      &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.
4469                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4470                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4471                      &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.
4472                    },
4473                  },
4474                ],
4475                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4476              },
4477              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4478              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4479            },
4480          ],
4481          &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
4482            { # A polymorphic targeting value used as part of Shared Targeting.
4483              &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
4484                &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).
4485                  &quot;A String&quot;,
4486                ],
4487                &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
4488                  { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
4489                    &quot;height&quot;: 42, # The height of the creative.
4490                    &quot;width&quot;: 42, # The width of the creative
4491                  },
4492                ],
4493                &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4494                &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.
4495                &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
4496                  &quot;height&quot;: 42, # The height of the creative.
4497                  &quot;width&quot;: 42, # The width of the creative
4498                },
4499                &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.
4500              },
4501              &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.
4502                &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4503                  { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
4504                    &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4505                    &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.
4506                      &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.
4507                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4508                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4509                      &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.
4510                    },
4511                    &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.
4512                      &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.
4513                      &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4514                      &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4515                      &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.
4516                    },
4517                  },
4518                ],
4519                &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4520              },
4521              &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4522              &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4523            },
4524          ],
4525          &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.
4526        },
4527      ],
4528      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
4529      &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
4530    },
4531  ],
4532  &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
4533  &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
4534  &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
4535  &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
4536  &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
4537    { # A proposal may be associated to several notes.
4538      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
4539      &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
4540      &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.
4541      &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
4542      &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
4543    },
4544  ],
4545  &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
4546  &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
4547  &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
4548  &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.
4549  &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
4550  &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.
4551    &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.
4552    &quot;subAccountId&quot;: &quot;A String&quot;, # Output only. Ad manager network code for the seller.
4553  },
4554  &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
4555    { # Contains information on how a buyer or seller can be reached.
4556      &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4557      &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4558    },
4559  ],
4560  &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
4561  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
4562}</pre>
4563</div>
4564
4565</body></html>