blob: 198681074817166afcb050416b7b56ae375bf4e5 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="adexchangebuyer2_v2beta1.html">Ad Exchange Buyer API II</a> . <a href="adexchangebuyer2_v2beta1.accounts.html">accounts</a> . <a href="adexchangebuyer2_v2beta1.accounts.proposals.html">proposals</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#accept">accept(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -080079<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070080<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#addNote">addNote(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Create a new note and attach it to the proposal. The note is assigned a unique ID by the server. The proposal revision number will not increase when associated with a new note.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
84 <code><a href="#cancelNegotiation">cancelNegotiation(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Cancel an ongoing negotiation on a proposal. This does not cancel or end serving for the deals if the proposal has been finalized, but only cancels a negotiation unilaterally.</p>
86<p class="toc_element">
87 <code><a href="#close">close()</a></code></p>
88<p class="firstline">Close httplib2 connections.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="toc_element">
90 <code><a href="#completeSetup">completeSetup(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Update the given proposal to indicate that setup has been completed. This method is called by the buyer when the line items have been created on their end for a finalized proposal and all the required creatives have been uploaded using the creatives API. This call updates the `is_setup_completed` bit on the proposal and also notifies the seller. The server will advance the revision number of the most recent proposal.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#create">create(accountId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Create the given proposal. Each created proposal and any deals it contains are assigned a unique ID by the server.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="toc_element">
96 <code><a href="#get">get(accountId, proposalId, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097<p class="firstline">Gets a proposal given its ID. The proposal is returned at its head revision.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080099 <code><a href="#list">list(accountId, filter=None, filterSyntax=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100<p class="firstline">List proposals. A filter expression (PQL query) may be specified to filter the results. To retrieve all finalized proposals, regardless if a proposal is being renegotiated, see the FinalizedProposals resource. Note that Bidder/ChildSeat relationships differ from the usual behavior. A Bidder account can only see its child seats' proposals by specifying the ChildSeat's accountId in the request path.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101<p class="toc_element">
102 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
103<p class="firstline">Retrieves the next page of results.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#pause">pause(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106<p class="firstline">Update the given proposal to pause serving. This method will set the `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to true for all deals in the proposal. It is a no-op to pause an already-paused proposal. It is an error to call PauseProposal for a proposal that is not finalized or renegotiating.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107<p class="toc_element">
108 <code><a href="#resume">resume(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109<p class="firstline">Update the given proposal to resume serving. This method will set the `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to false for all deals in the proposal. Note that if the `has_seller_paused` bit is also set, serving will not resume until the seller also resumes. It is a no-op to resume an already-running proposal. It is an error to call ResumeProposal for a proposal that is not finalized or renegotiating.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code><a href="#update">update(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112<p class="firstline">Update the given proposal at the client known revision number. If the server revision has advanced since the passed-in `proposal.proposal_revision`, an `ABORTED` error message will be returned. Only the buyer-modifiable fields of the proposal will be updated. Note that the deals in the proposal will be updated to match the passed-in copy. If a passed-in deal does not have a `deal_id`, the server will assign a new unique ID and create the deal. If passed-in deal has a `deal_id`, it will be updated to match the passed-in copy. Any existing deals not present in the passed-in proposal will be deleted. It is an error to pass in a deal with a `deal_id` not present at head.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<h3>Method Details</h3>
114<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 <code class="details" id="accept">accept(accountId, proposalId, body=None, x__xgafv=None)</code>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800116 <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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117
118Args:
119 accountId: string, Account ID of the buyer. (required)
120 proposalId: string, The ID of the proposal to accept. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122 The object takes the form of:
123
124{ # Request to accept a proposal.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800125 &quot;proposalRevision&quot;: &quot;A String&quot;, # The last known client revision number of the proposal.
126}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700127
128 x__xgafv: string, V1 error format.
129 Allowed values
130 1 - v1 error format
131 2 - v2 error format
132
133Returns:
134 An object of the form:
135
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700136 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800137 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800147 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800148 ],
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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800155 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800156 &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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800158 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800159 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800160 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800161 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800172 },
173 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800174 &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 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700179 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800180 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800181 &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;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
228 },
229 &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.
230 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
231 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
232 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
233 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
234 &quot;A String&quot;,
235 ],
236 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
237 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
238 },
239 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
240 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
241 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
242 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
243 &quot;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.
244 },
245 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
246 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800247 },
248 ],
249 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800250 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
251 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
252 { # 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.
253 &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.
254 &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800255 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800256 &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).
257 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
258 },
259 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
260 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
261 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
262 &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.
263 &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.
264 },
265 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
266 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800267 },
268 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800269 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800270 &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.
271 },
272 &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.
273 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
274 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
275 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
276 { # Frequency cap.
277 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
278 &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.
279 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800280 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800281 ],
282 },
283 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
284 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
285 &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.
286 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
287 &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.
288 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
289 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
290 { # Contains information on how a buyer or seller can be reached.
291 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
292 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800293 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800294 ],
295 &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.
296 &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.
297 &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.
298 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
299 &quot;A String&quot;,
300 ],
301 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
302 &quot;A String&quot;,
303 ],
304 },
305 &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.
306 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
307 { # Represents size of a single ad slot, or a creative.
308 &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`.
309 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
310 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800311 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800312 ],
313 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
314 { # Represents size of a single ad slot, or a creative.
315 &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`.
316 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
317 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700318 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800319 ],
320 },
321 &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.
322 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
323 &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.
324 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800325 &quot;A String&quot;,
326 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800327 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800328 &quot;A String&quot;,
329 ],
330 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700331 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800332 &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.
333 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800334 &quot;A String&quot;,
335 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800336 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
337 &quot;A String&quot;,
338 ],
339 },
340 },
341 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
342 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800343 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
344 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700345 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800346 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800347 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800348 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800349 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800350 &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.
351 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
352 &quot;A String&quot;,
353 ],
354 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
355 &quot;A String&quot;,
356 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800357 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800358 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
359 &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.
360 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
361 &quot;A String&quot;,
362 ],
363 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
364 &quot;A String&quot;,
365 ],
366 },
367 &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.
368 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
369 &quot;A String&quot;,
370 ],
371 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
372 &quot;A String&quot;,
373 ],
374 },
375 },
376 },
377 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
378 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
379 &quot;A String&quot;,
380 ],
381 &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.
382 &quot;A String&quot;,
383 ],
384 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700385 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800386 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
387 { # 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.
388 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
389 { # A polymorphic targeting value used as part of Shared Targeting.
390 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
391 &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).
392 &quot;A String&quot;,
393 ],
394 &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
395 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
396 &quot;height&quot;: 42, # The height of the creative.
397 &quot;width&quot;: 42, # The width of the creative
398 },
399 ],
400 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
401 &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.
402 &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
403 &quot;height&quot;: 42, # The height of the creative.
404 &quot;width&quot;: 42, # The width of the creative
405 },
406 &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.
407 },
408 &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.
409 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
410 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
411 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
412 &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.
413 &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.
414 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
415 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
416 &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.
417 },
418 &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.
419 &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.
420 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
421 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
422 &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.
423 },
424 },
425 ],
426 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
427 },
428 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
429 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
430 },
431 ],
432 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
433 { # A polymorphic targeting value used as part of Shared Targeting.
434 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
435 &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).
436 &quot;A String&quot;,
437 ],
438 &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
439 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
440 &quot;height&quot;: 42, # The height of the creative.
441 &quot;width&quot;: 42, # The width of the creative
442 },
443 ],
444 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
445 &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.
446 &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
447 &quot;height&quot;: 42, # The height of the creative.
448 &quot;width&quot;: 42, # The width of the creative
449 },
450 &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.
451 },
452 &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.
453 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
454 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
455 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
456 &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.
457 &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.
458 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
459 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
460 &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.
461 },
462 &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.
463 &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.
464 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
465 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
466 &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.
467 },
468 },
469 ],
470 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
471 },
472 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
473 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
474 },
475 ],
476 &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.
477 },
478 ],
479 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
480 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
481 },
482 ],
483 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
484 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
485 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
486 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
487 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
488 { # A proposal may be associated to several notes.
489 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
490 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
491 &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.
492 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
493 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
494 },
495 ],
496 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
497 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
498 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
499 &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.
500 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
501 &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.
502 &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.
503 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
504 },
505 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
506 { # Contains information on how a buyer or seller can be reached.
507 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
508 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
509 },
510 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800511 &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800512 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
513}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700514</div>
515
516<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700517 <code class="details" id="addNote">addNote(accountId, proposalId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700518 <pre>Create a new note and attach it to the proposal. The note is assigned a unique ID by the server. The proposal revision number will not increase when associated with a new note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700519
520Args:
521 accountId: string, Account ID of the buyer. (required)
522 proposalId: string, The ID of the proposal to attach the note to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700523 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700524 The object takes the form of:
525
526{ # Request message for adding a note to a given proposal.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800527 &quot;note&quot;: { # A proposal may be associated to several notes. # Details of the note to add.
528 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
529 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
530 &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.
531 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
532 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
533 },
534}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700535
536 x__xgafv: string, V1 error format.
537 Allowed values
538 1 - v1 error format
539 2 - v2 error format
540
541Returns:
542 An object of the form:
543
544 { # A proposal may be associated to several notes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800545 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
546 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
547 &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.
548 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
549 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
550}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700551</div>
552
553<div class="method">
554 <code class="details" id="cancelNegotiation">cancelNegotiation(accountId, proposalId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700555 <pre>Cancel an ongoing negotiation on a proposal. This does not cancel or end serving for the deals if the proposal has been finalized, but only cancels a negotiation unilaterally.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700556
557Args:
558 accountId: string, Account ID of the buyer. (required)
559 proposalId: string, The ID of the proposal to cancel negotiation for. (required)
560 body: object, The request body.
561 The object takes the form of:
562
563{ # Request to cancel an ongoing negotiation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800564}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700565
566 x__xgafv: string, V1 error format.
567 Allowed values
568 1 - v1 error format
569 2 - v2 error format
570
571Returns:
572 An object of the form:
573
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700574 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800575 &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.
576 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
577 },
578 &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.
579 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
580 },
581 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
582 { # Contains information on how a buyer or seller can be reached.
583 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
584 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800585 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800586 ],
587 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
588 &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).
589 },
590 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
591 { # 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.
592 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800593 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800594 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
595 &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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800596 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800597 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800598 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800599 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
600 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
601 &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.
602 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
603 &quot;creativeSpecifications&quot;: [
604 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
605 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
606 { # Represents size of a single ad slot, or a creative.
607 &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`.
608 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
609 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800610 },
611 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800612 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
613 &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`.
614 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
615 &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`.
616 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700617 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800618 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800619 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
620 },
621 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
622 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
623 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
624 &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.
625 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
626 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
627 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
628 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
629 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
630 },
631 },
632 &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.
633 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
634 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
635 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
636 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
637 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
638 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
639 &quot;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.
640 },
641 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
642 },
643 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
644 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
645 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
646 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
647 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
648 &quot;A String&quot;,
649 ],
650 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
651 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
652 },
653 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
654 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
655 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
656 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
657 &quot;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.
658 },
659 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
660 },
661 },
662 ],
663 &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.
664 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
665 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
666 },
667 &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.
668 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
669 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
670 { # 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.
671 &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.
672 &quot;A String&quot;,
673 ],
674 &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).
675 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
676 },
677 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
678 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
679 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
680 &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.
681 &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.
682 },
683 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
684 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800685 },
686 ],
687 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800688 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
689 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
690 { # 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.
691 &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.
692 &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800693 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800694 &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).
695 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
696 },
697 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
698 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
699 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
700 &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.
701 &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.
702 },
703 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
704 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800705 },
706 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800707 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800708 &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.
709 },
710 &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.
711 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
712 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
713 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
714 { # Frequency cap.
715 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
716 &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.
717 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800718 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800719 ],
720 },
721 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
722 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
723 &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.
724 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
725 &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.
726 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
727 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
728 { # Contains information on how a buyer or seller can be reached.
729 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
730 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800731 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800732 ],
733 &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.
734 &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.
735 &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.
736 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
737 &quot;A String&quot;,
738 ],
739 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
740 &quot;A String&quot;,
741 ],
742 },
743 &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.
744 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
745 { # Represents size of a single ad slot, or a creative.
746 &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`.
747 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
748 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800749 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800750 ],
751 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
752 { # Represents size of a single ad slot, or a creative.
753 &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`.
754 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
755 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700756 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800757 ],
758 },
759 &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.
760 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
761 &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.
762 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800763 &quot;A String&quot;,
764 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800765 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800766 &quot;A String&quot;,
767 ],
768 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700769 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800770 &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.
771 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800772 &quot;A String&quot;,
773 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800774 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
775 &quot;A String&quot;,
776 ],
777 },
778 },
779 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
780 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800781 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
782 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700783 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800784 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800785 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800786 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800787 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800788 &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.
789 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
790 &quot;A String&quot;,
791 ],
792 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
793 &quot;A String&quot;,
794 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800795 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800796 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
797 &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.
798 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
799 &quot;A String&quot;,
800 ],
801 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
802 &quot;A String&quot;,
803 ],
804 },
805 &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.
806 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
807 &quot;A String&quot;,
808 ],
809 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
810 &quot;A String&quot;,
811 ],
812 },
813 },
814 },
815 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
816 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
817 &quot;A String&quot;,
818 ],
819 &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.
820 &quot;A String&quot;,
821 ],
822 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700823 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800824 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
825 { # 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.
826 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
827 { # A polymorphic targeting value used as part of Shared Targeting.
828 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
829 &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).
830 &quot;A String&quot;,
831 ],
832 &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
833 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
834 &quot;height&quot;: 42, # The height of the creative.
835 &quot;width&quot;: 42, # The width of the creative
836 },
837 ],
838 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
839 &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.
840 &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
841 &quot;height&quot;: 42, # The height of the creative.
842 &quot;width&quot;: 42, # The width of the creative
843 },
844 &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.
845 },
846 &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.
847 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
848 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
849 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
850 &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.
851 &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.
852 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
853 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
854 &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.
855 },
856 &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.
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 },
863 ],
864 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
865 },
866 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
867 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
868 },
869 ],
870 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
871 { # A polymorphic targeting value used as part of Shared Targeting.
872 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
873 &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).
874 &quot;A String&quot;,
875 ],
876 &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
877 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
878 &quot;height&quot;: 42, # The height of the creative.
879 &quot;width&quot;: 42, # The width of the creative
880 },
881 ],
882 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
883 &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.
884 &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
885 &quot;height&quot;: 42, # The height of the creative.
886 &quot;width&quot;: 42, # The width of the creative
887 },
888 &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.
889 },
890 &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.
891 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
892 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
893 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
894 &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.
895 &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.
896 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
897 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
898 &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.
899 },
900 &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.
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 },
907 ],
908 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
909 },
910 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
911 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
912 },
913 ],
914 &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.
915 },
916 ],
917 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
918 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
919 },
920 ],
921 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
922 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
923 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
924 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
925 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
926 { # A proposal may be associated to several notes.
927 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
928 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
929 &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.
930 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
931 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
932 },
933 ],
934 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
935 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
936 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
937 &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.
938 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
939 &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.
940 &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.
941 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
942 },
943 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
944 { # Contains information on how a buyer or seller can be reached.
945 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
946 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
947 },
948 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800949 &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800950 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
951}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700952</div>
953
954<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700955 <code class="details" id="close">close()</code>
956 <pre>Close httplib2 connections.</pre>
957</div>
958
959<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700960 <code class="details" id="completeSetup">completeSetup(accountId, proposalId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700961 <pre>Update the given proposal to indicate that setup has been completed. This method is called by the buyer when the line items have been created on their end for a finalized proposal and all the required creatives have been uploaded using the creatives API. This call updates the `is_setup_completed` bit on the proposal and also notifies the seller. The server will advance the revision number of the most recent proposal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700962
963Args:
964 accountId: string, Account ID of the buyer. (required)
965 proposalId: string, The ID of the proposal to mark as setup completed. (required)
966 body: object, The request body.
967 The object takes the form of:
968
Bu Sun Kim65020912020-05-20 12:08:20 -0700969{ # Request message for indicating that the proposal&#x27;s setup step is complete.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800970}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700971
972 x__xgafv: string, V1 error format.
973 Allowed values
974 1 - v1 error format
975 2 - v2 error format
976
977Returns:
978 An object of the form:
979
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700980 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800981 &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.
982 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
983 },
984 &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.
985 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
986 },
987 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
988 { # Contains information on how a buyer or seller can be reached.
989 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
990 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800991 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800992 ],
993 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
994 &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).
995 },
996 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
997 { # 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.
998 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800999 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001000 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
1001 &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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001002 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001003 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001004 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001005 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
1006 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
1007 &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.
1008 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
1009 &quot;creativeSpecifications&quot;: [
1010 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
1011 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
1012 { # Represents size of a single ad slot, or a creative.
1013 &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`.
1014 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1015 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001016 },
1017 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001018 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the 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 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001023 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001024 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001025 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
1026 },
1027 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
1028 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
1029 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
1030 &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.
1031 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
1032 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
1033 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
1034 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
1035 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
1036 },
1037 },
1038 &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.
1039 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
1040 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
1041 &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.
1042 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1043 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1044 &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.
1045 &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.
1046 },
1047 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1048 },
1049 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
1050 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
1051 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1052 { # 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.
1053 &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.
1054 &quot;A String&quot;,
1055 ],
1056 &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).
1057 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1058 },
1059 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1060 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1061 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1062 &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.
1063 &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.
1064 },
1065 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1066 },
1067 },
1068 ],
1069 &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.
1070 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
1071 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
1072 },
1073 &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.
1074 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
1075 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
1076 { # 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.
1077 &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.
1078 &quot;A String&quot;,
1079 ],
1080 &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).
1081 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1082 },
1083 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1084 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1085 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1086 &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.
1087 &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.
1088 },
1089 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1090 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001091 },
1092 ],
1093 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001094 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
1095 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1096 { # 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.
1097 &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.
1098 &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001099 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001100 &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).
1101 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1102 },
1103 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1104 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1105 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1106 &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.
1107 &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.
1108 },
1109 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1110 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001111 },
1112 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001113 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001114 &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.
1115 },
1116 &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.
1117 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
1118 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
1119 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
1120 { # Frequency cap.
1121 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
1122 &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.
1123 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001124 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001125 ],
1126 },
1127 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
1128 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
1129 &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.
1130 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
1131 &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.
1132 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
1133 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
1134 { # Contains information on how a buyer or seller can be reached.
1135 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1136 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001137 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001138 ],
1139 &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.
1140 &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.
1141 &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.
1142 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1143 &quot;A String&quot;,
1144 ],
1145 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1146 &quot;A String&quot;,
1147 ],
1148 },
1149 &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.
1150 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
1151 { # Represents size of a single ad slot, or a creative.
1152 &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`.
1153 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1154 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001155 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001156 ],
1157 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
1158 { # Represents size of a single ad slot, or a creative.
1159 &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`.
1160 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1161 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001162 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001163 ],
1164 },
1165 &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.
1166 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
1167 &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.
1168 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001169 &quot;A String&quot;,
1170 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001171 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001172 &quot;A String&quot;,
1173 ],
1174 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001175 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001176 &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.
1177 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001178 &quot;A String&quot;,
1179 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001180 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
1181 &quot;A String&quot;,
1182 ],
1183 },
1184 },
1185 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
1186 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001187 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1188 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001189 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001190 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001191 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001192 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001193 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001194 &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.
1195 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1196 &quot;A String&quot;,
1197 ],
1198 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1199 &quot;A String&quot;,
1200 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001201 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001202 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
1203 &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.
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;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.
1212 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1213 &quot;A String&quot;,
1214 ],
1215 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1216 &quot;A String&quot;,
1217 ],
1218 },
1219 },
1220 },
1221 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
1222 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
1223 &quot;A String&quot;,
1224 ],
1225 &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.
1226 &quot;A String&quot;,
1227 ],
1228 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001229 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001230 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
1231 { # 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.
1232 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
1233 { # A polymorphic targeting value used as part of Shared Targeting.
1234 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1235 &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).
1236 &quot;A String&quot;,
1237 ],
1238 &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
1239 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1240 &quot;height&quot;: 42, # The height of the creative.
1241 &quot;width&quot;: 42, # The width of the creative
1242 },
1243 ],
1244 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1245 &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.
1246 &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
1247 &quot;height&quot;: 42, # The height of the creative.
1248 &quot;width&quot;: 42, # The width of the creative
1249 },
1250 &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.
1251 },
1252 &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.
1253 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1254 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
1255 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1256 &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.
1257 &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.
1258 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1259 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1260 &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.
1261 },
1262 &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.
1263 &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.
1264 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1265 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1266 &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.
1267 },
1268 },
1269 ],
1270 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1271 },
1272 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1273 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1274 },
1275 ],
1276 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
1277 { # A polymorphic targeting value used as part of Shared Targeting.
1278 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1279 &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).
1280 &quot;A String&quot;,
1281 ],
1282 &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
1283 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1284 &quot;height&quot;: 42, # The height of the creative.
1285 &quot;width&quot;: 42, # The width of the creative
1286 },
1287 ],
1288 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1289 &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.
1290 &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
1291 &quot;height&quot;: 42, # The height of the creative.
1292 &quot;width&quot;: 42, # The width of the creative
1293 },
1294 &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.
1295 },
1296 &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.
1297 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1298 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
1299 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1300 &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.
1301 &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.
1302 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1303 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1304 &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.
1305 },
1306 &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.
1307 &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.
1308 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1309 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1310 &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.
1311 },
1312 },
1313 ],
1314 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1315 },
1316 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1317 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1318 },
1319 ],
1320 &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.
1321 },
1322 ],
1323 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
1324 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
1325 },
1326 ],
1327 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
1328 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
1329 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
1330 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
1331 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
1332 { # A proposal may be associated to several notes.
1333 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
1334 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
1335 &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.
1336 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
1337 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
1338 },
1339 ],
1340 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
1341 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
1342 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
1343 &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.
1344 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
1345 &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.
1346 &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.
1347 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
1348 },
1349 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
1350 { # Contains information on how a buyer or seller can be reached.
1351 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1352 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1353 },
1354 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001355 &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001356 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
1357}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001358</div>
1359
1360<div class="method">
1361 <code class="details" id="create">create(accountId, body=None, x__xgafv=None)</code>
1362 <pre>Create the given proposal. Each created proposal and any deals it contains are assigned a unique ID by the server.
1363
1364Args:
1365 accountId: string, Account ID of the buyer. (required)
1366 body: object, The request body.
1367 The object takes the form of:
1368
1369{ # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001370 &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.
1371 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1372 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001373 &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.
1374 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1375 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001376 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
1377 { # Contains information on how a buyer or seller can be reached.
1378 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1379 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1380 },
1381 ],
1382 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
1383 &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).
1384 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001385 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
1386 { # 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001387 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001388 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001389 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
1390 &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).
1391 },
1392 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001393 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001394 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
1395 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
1396 &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.
1397 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
1398 &quot;creativeSpecifications&quot;: [
1399 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
1400 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
1401 { # Represents size of a single ad slot, or a creative.
1402 &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`.
1403 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1404 &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`.
1405 },
1406 ],
1407 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
1408 &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`.
1409 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1410 &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`.
1411 },
1412 },
1413 ],
1414 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
1415 },
1416 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
1417 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001418 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
1419 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001420 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001421 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
1422 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
1423 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
1424 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001425 },
1426 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001427 &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.
1428 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
1429 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
1430 &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.
1431 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1432 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1433 &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.
1434 &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.
1435 },
1436 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001437 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001438 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
1439 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
1440 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1441 { # 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.
1442 &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.
1443 &quot;A String&quot;,
1444 ],
1445 &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).
1446 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1447 },
1448 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1449 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1450 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1451 &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.
1452 &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.
1453 },
1454 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1455 },
1456 },
1457 ],
1458 &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.
1459 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
1460 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
1461 },
1462 &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.
1463 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
1464 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
1465 { # 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.
1466 &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.
1467 &quot;A String&quot;,
1468 ],
1469 &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).
1470 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1471 },
1472 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1473 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1474 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1475 &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.
1476 &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.
1477 },
1478 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1479 },
1480 },
1481 ],
1482 },
1483 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
1484 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1485 { # 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.
1486 &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.
1487 &quot;A String&quot;,
1488 ],
1489 &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).
1490 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1491 },
1492 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1493 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1494 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1495 &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.
1496 &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.
1497 },
1498 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1499 },
1500 },
1501 ],
1502 },
1503 &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.
1504 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001505 &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.
1506 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
1507 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
1508 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
1509 { # Frequency cap.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001510 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
1511 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001512 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001513 },
1514 ],
1515 },
1516 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001517 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
1518 &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.
1519 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
1520 &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.
1521 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
1522 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
1523 { # Contains information on how a buyer or seller can be reached.
1524 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1525 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1526 },
1527 ],
1528 &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.
1529 &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.
1530 &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.
1531 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1532 &quot;A String&quot;,
1533 ],
1534 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1535 &quot;A String&quot;,
1536 ],
1537 },
1538 &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.
1539 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
1540 { # Represents size of a single ad slot, or a creative.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001541 &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`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001542 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001543 &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`.
1544 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001545 ],
1546 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
1547 { # Represents size of a single ad slot, or a creative.
1548 &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`.
1549 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1550 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001551 },
1552 ],
1553 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001554 &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.
1555 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
1556 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001557 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
1558 &quot;A String&quot;,
1559 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001560 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
1561 &quot;A String&quot;,
1562 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001563 },
1564 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001565 &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.
1566 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
1567 &quot;A String&quot;,
1568 ],
1569 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
1570 &quot;A String&quot;,
1571 ],
1572 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001573 },
1574 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
1575 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001576 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1577 &quot;A String&quot;,
1578 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001579 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001580 &quot;A String&quot;,
1581 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001582 },
1583 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001584 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1585 &quot;A String&quot;,
1586 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001587 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1588 &quot;A String&quot;,
1589 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001590 },
1591 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001592 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001593 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1594 &quot;A String&quot;,
1595 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001596 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1597 &quot;A String&quot;,
1598 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001599 },
1600 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001601 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1602 &quot;A String&quot;,
1603 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001604 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1605 &quot;A String&quot;,
1606 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001607 },
1608 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001609 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001610 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
1611 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
1612 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001613 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001614 &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.
1615 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001616 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001617 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001618 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001619 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
1620 { # 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.
1621 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
1622 { # A polymorphic targeting value used as part of Shared Targeting.
1623 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1624 &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).
1625 &quot;A String&quot;,
1626 ],
1627 &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
1628 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1629 &quot;height&quot;: 42, # The height of the creative.
1630 &quot;width&quot;: 42, # The width of the creative
1631 },
1632 ],
1633 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1634 &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.
1635 &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
1636 &quot;height&quot;: 42, # The height of the creative.
1637 &quot;width&quot;: 42, # The width of the creative
1638 },
1639 &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.
1640 },
1641 &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.
1642 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1643 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
1644 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1645 &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.
1646 &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.
1647 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1648 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1649 &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.
1650 },
1651 &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.
1652 &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.
1653 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1654 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1655 &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.
1656 },
1657 },
1658 ],
1659 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1660 },
1661 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1662 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1663 },
1664 ],
1665 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
1666 { # A polymorphic targeting value used as part of Shared Targeting.
1667 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1668 &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).
1669 &quot;A String&quot;,
1670 ],
1671 &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
1672 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1673 &quot;height&quot;: 42, # The height of the creative.
1674 &quot;width&quot;: 42, # The width of the creative
1675 },
1676 ],
1677 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1678 &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.
1679 &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
1680 &quot;height&quot;: 42, # The height of the creative.
1681 &quot;width&quot;: 42, # The width of the creative
1682 },
1683 &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.
1684 },
1685 &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.
1686 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1687 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
1688 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1689 &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.
1690 &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.
1691 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1692 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1693 &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.
1694 },
1695 &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.
1696 &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.
1697 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1698 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1699 &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.
1700 },
1701 },
1702 ],
1703 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1704 },
1705 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1706 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1707 },
1708 ],
1709 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001710 },
1711 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001712 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001713 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001714 },
1715 ],
1716 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
1717 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
1718 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
1719 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
1720 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
1721 { # A proposal may be associated to several notes.
1722 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
1723 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
1724 &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.
1725 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
1726 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
1727 },
1728 ],
1729 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
1730 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
1731 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
1732 &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.
1733 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
1734 &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.
1735 &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.
1736 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
1737 },
1738 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
1739 { # Contains information on how a buyer or seller can be reached.
1740 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1741 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001742 },
1743 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001744 &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001745 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001746}
1747
1748 x__xgafv: string, V1 error format.
1749 Allowed values
1750 1 - v1 error format
1751 2 - v2 error format
1752
1753Returns:
1754 An object of the form:
1755
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001756 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001757 &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.
1758 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1759 },
1760 &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.
1761 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1762 },
1763 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
1764 { # Contains information on how a buyer or seller can be reached.
1765 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1766 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001767 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001768 ],
1769 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
1770 &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).
1771 },
1772 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
1773 { # 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.
1774 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001775 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001776 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
1777 &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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001778 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001779 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001780 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001781 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
1782 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
1783 &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.
1784 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
1785 &quot;creativeSpecifications&quot;: [
1786 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
1787 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
1788 { # Represents size of a single ad slot, or a creative.
1789 &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`.
1790 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1791 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001792 },
1793 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001794 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
1795 &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`.
1796 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1797 &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`.
1798 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001799 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001800 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001801 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
1802 },
1803 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
1804 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
1805 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
1806 &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.
1807 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
1808 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
1809 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
1810 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
1811 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
1812 },
1813 },
1814 &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.
1815 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
1816 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
1817 &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.
1818 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1819 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1820 &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.
1821 &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.
1822 },
1823 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1824 },
1825 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
1826 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
1827 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1828 { # 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.
1829 &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.
1830 &quot;A String&quot;,
1831 ],
1832 &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).
1833 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1834 },
1835 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1836 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1837 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1838 &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.
1839 &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.
1840 },
1841 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1842 },
1843 },
1844 ],
1845 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
1846 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
1847 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
1848 },
1849 &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.
1850 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
1851 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
1852 { # 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.
1853 &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.
1854 &quot;A String&quot;,
1855 ],
1856 &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).
1857 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1858 },
1859 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1860 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1861 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1862 &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.
1863 &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.
1864 },
1865 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1866 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001867 },
1868 ],
1869 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001870 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
1871 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1872 { # 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.
1873 &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.
1874 &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001875 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001876 &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).
1877 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1878 },
1879 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1880 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1881 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1882 &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.
1883 &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.
1884 },
1885 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1886 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001887 },
1888 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001889 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001890 &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.
1891 },
1892 &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.
1893 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
1894 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
1895 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
1896 { # Frequency cap.
1897 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
1898 &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.
1899 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001900 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001901 ],
1902 },
1903 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
1904 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
1905 &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.
1906 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
1907 &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.
1908 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
1909 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
1910 { # Contains information on how a buyer or seller can be reached.
1911 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1912 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001913 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001914 ],
1915 &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.
1916 &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.
1917 &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.
1918 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1919 &quot;A String&quot;,
1920 ],
1921 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1922 &quot;A String&quot;,
1923 ],
1924 },
1925 &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.
1926 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
1927 { # Represents size of a single ad slot, or a creative.
1928 &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`.
1929 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1930 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001931 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001932 ],
1933 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
1934 { # Represents size of a single ad slot, or a creative.
1935 &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`.
1936 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1937 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001938 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001939 ],
1940 },
1941 &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.
1942 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
1943 &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.
1944 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001945 &quot;A String&quot;,
1946 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001947 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001948 &quot;A String&quot;,
1949 ],
1950 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001951 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001952 &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.
1953 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001954 &quot;A String&quot;,
1955 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001956 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
1957 &quot;A String&quot;,
1958 ],
1959 },
1960 },
1961 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
1962 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001963 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1964 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001965 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001966 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001967 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001968 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001969 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001970 &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.
1971 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1972 &quot;A String&quot;,
1973 ],
1974 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1975 &quot;A String&quot;,
1976 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001977 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001978 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
1979 &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.
1980 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1981 &quot;A String&quot;,
1982 ],
1983 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1984 &quot;A String&quot;,
1985 ],
1986 },
1987 &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.
1988 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1989 &quot;A String&quot;,
1990 ],
1991 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1992 &quot;A String&quot;,
1993 ],
1994 },
1995 },
1996 },
1997 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
1998 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
1999 &quot;A String&quot;,
2000 ],
2001 &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.
2002 &quot;A String&quot;,
2003 ],
2004 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002005 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002006 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
2007 { # 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.
2008 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
2009 { # A polymorphic targeting value used as part of Shared Targeting.
2010 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2011 &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).
2012 &quot;A String&quot;,
2013 ],
2014 &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
2015 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2016 &quot;height&quot;: 42, # The height of the creative.
2017 &quot;width&quot;: 42, # The width of the creative
2018 },
2019 ],
2020 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2021 &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.
2022 &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
2023 &quot;height&quot;: 42, # The height of the creative.
2024 &quot;width&quot;: 42, # The width of the creative
2025 },
2026 &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.
2027 },
2028 &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.
2029 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2030 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2031 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2032 &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.
2033 &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.
2034 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2035 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2036 &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.
2037 },
2038 &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.
2039 &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.
2040 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2041 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2042 &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.
2043 },
2044 },
2045 ],
2046 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2047 },
2048 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2049 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2050 },
2051 ],
2052 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
2053 { # A polymorphic targeting value used as part of Shared Targeting.
2054 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2055 &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).
2056 &quot;A String&quot;,
2057 ],
2058 &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
2059 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2060 &quot;height&quot;: 42, # The height of the creative.
2061 &quot;width&quot;: 42, # The width of the creative
2062 },
2063 ],
2064 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2065 &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.
2066 &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
2067 &quot;height&quot;: 42, # The height of the creative.
2068 &quot;width&quot;: 42, # The width of the creative
2069 },
2070 &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.
2071 },
2072 &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.
2073 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2074 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2075 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2076 &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.
2077 &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.
2078 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2079 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2080 &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.
2081 },
2082 &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.
2083 &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.
2084 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2085 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2086 &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.
2087 },
2088 },
2089 ],
2090 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2091 },
2092 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2093 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2094 },
2095 ],
2096 &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.
2097 },
2098 ],
2099 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
2100 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
2101 },
2102 ],
2103 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
2104 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
2105 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
2106 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
2107 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
2108 { # A proposal may be associated to several notes.
2109 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
2110 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
2111 &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.
2112 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
2113 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
2114 },
2115 ],
2116 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
2117 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
2118 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
2119 &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.
2120 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
2121 &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.
2122 &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.
2123 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
2124 },
2125 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
2126 { # Contains information on how a buyer or seller can be reached.
2127 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2128 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2129 },
2130 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002131 &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002132 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
2133}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002134</div>
2135
2136<div class="method">
2137 <code class="details" id="get">get(accountId, proposalId, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002138 <pre>Gets a proposal given its ID. The proposal is returned at its head revision.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002139
2140Args:
2141 accountId: string, Account ID of the buyer. (required)
2142 proposalId: string, The unique ID of the proposal (required)
2143 x__xgafv: string, V1 error format.
2144 Allowed values
2145 1 - v1 error format
2146 2 - v2 error format
2147
2148Returns:
2149 An object of the form:
2150
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002151 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002152 &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.
2153 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2154 },
2155 &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.
2156 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2157 },
2158 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
2159 { # Contains information on how a buyer or seller can be reached.
2160 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2161 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002162 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002163 ],
2164 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
2165 &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).
2166 },
2167 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
2168 { # 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.
2169 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002170 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002171 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
2172 &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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002173 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002174 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002175 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002176 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
2177 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
2178 &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.
2179 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
2180 &quot;creativeSpecifications&quot;: [
2181 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
2182 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
2183 { # Represents size of a single ad slot, or a creative.
2184 &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`.
2185 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2186 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002187 },
2188 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002189 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
2190 &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`.
2191 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2192 &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`.
2193 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002194 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002195 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002196 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
2197 },
2198 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
2199 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
2200 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
2201 &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.
2202 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
2203 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
2204 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
2205 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
2206 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
2207 },
2208 },
2209 &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.
2210 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
2211 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
2212 &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.
2213 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2214 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2215 &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.
2216 &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.
2217 },
2218 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2219 },
2220 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
2221 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
2222 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2223 { # 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.
2224 &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.
2225 &quot;A String&quot;,
2226 ],
2227 &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).
2228 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2229 },
2230 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2231 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2232 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2233 &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.
2234 &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.
2235 },
2236 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2237 },
2238 },
2239 ],
2240 &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.
2241 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
2242 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
2243 },
2244 &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.
2245 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
2246 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
2247 { # 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.
2248 &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.
2249 &quot;A String&quot;,
2250 ],
2251 &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).
2252 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2253 },
2254 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2255 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2256 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2257 &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.
2258 &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.
2259 },
2260 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2261 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002262 },
2263 ],
2264 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002265 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
2266 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2267 { # 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.
2268 &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.
2269 &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002270 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002271 &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).
2272 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2273 },
2274 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2275 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2276 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2277 &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.
2278 &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.
2279 },
2280 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2281 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002282 },
2283 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002284 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002285 &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.
2286 },
2287 &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.
2288 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
2289 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
2290 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
2291 { # Frequency cap.
2292 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
2293 &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.
2294 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002295 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002296 ],
2297 },
2298 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
2299 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
2300 &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.
2301 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
2302 &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.
2303 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
2304 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
2305 { # Contains information on how a buyer or seller can be reached.
2306 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2307 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002308 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002309 ],
2310 &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.
2311 &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.
2312 &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.
2313 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2314 &quot;A String&quot;,
2315 ],
2316 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2317 &quot;A String&quot;,
2318 ],
2319 },
2320 &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.
2321 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
2322 { # Represents size of a single ad slot, or a creative.
2323 &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`.
2324 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2325 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002326 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002327 ],
2328 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
2329 { # Represents size of a single ad slot, or a creative.
2330 &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`.
2331 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2332 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002333 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002334 ],
2335 },
2336 &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.
2337 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
2338 &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.
2339 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002340 &quot;A String&quot;,
2341 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002342 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002343 &quot;A String&quot;,
2344 ],
2345 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002346 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002347 &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.
2348 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002349 &quot;A String&quot;,
2350 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002351 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
2352 &quot;A String&quot;,
2353 ],
2354 },
2355 },
2356 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
2357 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002358 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2359 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002360 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002361 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002362 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002363 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002364 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002365 &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.
2366 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2367 &quot;A String&quot;,
2368 ],
2369 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2370 &quot;A String&quot;,
2371 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002372 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002373 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
2374 &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.
2375 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2376 &quot;A String&quot;,
2377 ],
2378 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2379 &quot;A String&quot;,
2380 ],
2381 },
2382 &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.
2383 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2384 &quot;A String&quot;,
2385 ],
2386 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2387 &quot;A String&quot;,
2388 ],
2389 },
2390 },
2391 },
2392 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
2393 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
2394 &quot;A String&quot;,
2395 ],
2396 &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.
2397 &quot;A String&quot;,
2398 ],
2399 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002400 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002401 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
2402 { # 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.
2403 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
2404 { # A polymorphic targeting value used as part of Shared Targeting.
2405 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2406 &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).
2407 &quot;A String&quot;,
2408 ],
2409 &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
2410 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2411 &quot;height&quot;: 42, # The height of the creative.
2412 &quot;width&quot;: 42, # The width of the creative
2413 },
2414 ],
2415 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2416 &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.
2417 &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
2418 &quot;height&quot;: 42, # The height of the creative.
2419 &quot;width&quot;: 42, # The width of the creative
2420 },
2421 &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.
2422 },
2423 &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.
2424 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2425 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2426 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2427 &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.
2428 &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.
2429 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2430 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2431 &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.
2432 },
2433 &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.
2434 &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.
2435 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2436 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2437 &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.
2438 },
2439 },
2440 ],
2441 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2442 },
2443 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2444 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2445 },
2446 ],
2447 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
2448 { # A polymorphic targeting value used as part of Shared Targeting.
2449 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2450 &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).
2451 &quot;A String&quot;,
2452 ],
2453 &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
2454 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2455 &quot;height&quot;: 42, # The height of the creative.
2456 &quot;width&quot;: 42, # The width of the creative
2457 },
2458 ],
2459 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2460 &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.
2461 &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
2462 &quot;height&quot;: 42, # The height of the creative.
2463 &quot;width&quot;: 42, # The width of the creative
2464 },
2465 &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.
2466 },
2467 &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.
2468 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2469 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2470 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2471 &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.
2472 &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.
2473 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2474 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2475 &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.
2476 },
2477 &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.
2478 &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.
2479 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2480 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2481 &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.
2482 },
2483 },
2484 ],
2485 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2486 },
2487 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2488 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2489 },
2490 ],
2491 &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.
2492 },
2493 ],
2494 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
2495 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
2496 },
2497 ],
2498 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
2499 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
2500 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
2501 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
2502 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
2503 { # A proposal may be associated to several notes.
2504 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
2505 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
2506 &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.
2507 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
2508 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
2509 },
2510 ],
2511 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
2512 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
2513 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
2514 &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.
2515 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
2516 &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.
2517 &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.
2518 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
2519 },
2520 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
2521 { # Contains information on how a buyer or seller can be reached.
2522 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2523 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2524 },
2525 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002526 &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002527 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
2528}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002529</div>
2530
2531<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002532 <code class="details" id="list">list(accountId, filter=None, filterSyntax=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002533 <pre>List proposals. A filter expression (PQL query) may be specified to filter the results. To retrieve all finalized proposals, regardless if a proposal is being renegotiated, see the FinalizedProposals resource. Note that Bidder/ChildSeat relationships differ from the usual behavior. A Bidder account can only see its child seats&#x27; proposals by specifying the ChildSeat&#x27;s accountId in the request path.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002534
2535Args:
2536 accountId: string, Account ID of the buyer. (required)
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002537 filter: string, An optional PQL filter query used to query for proposals. Nested repeated fields, such as proposal.deals.targetingCriterion, cannot be filtered.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002538 filterSyntax: string, Syntax the filter is written in. Current implementation defaults to PQL but in the future it will be LIST_FILTER.
2539 Allowed values
2540 FILTER_SYNTAX_UNSPECIFIED - A placeholder for an undefined filter syntax.
2541 PQL - PQL query syntax. Visit https://developers.google.com/ad-manager/api/pqlreference for PQL documentation and examples.
2542 LIST_FILTER - API list filtering syntax. Read about syntax and usage at https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002543 pageSize: integer, Requested page size. The server may return fewer results than requested. If unspecified, the server will pick an appropriate default.
2544 pageToken: string, The page token as returned from ListProposalsResponse.
Bu Sun Kim65020912020-05-20 12:08:20 -07002545 x__xgafv: string, V1 error format.
2546 Allowed values
2547 1 - v1 error format
2548 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002549
2550Returns:
2551 An object of the form:
2552
2553 { # Response message for listing proposals.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002554 &quot;nextPageToken&quot;: &quot;A String&quot;, # Continuation token for fetching the next page of results.
2555 &quot;proposals&quot;: [ # The list of proposals.
2556 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
2557 &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.
2558 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2559 },
2560 &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.
2561 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2562 },
2563 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
2564 { # Contains information on how a buyer or seller can be reached.
2565 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2566 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002567 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002568 ],
2569 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
2570 &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).
2571 },
2572 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
2573 { # 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.
2574 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002575 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002576 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
2577 &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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002578 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002579 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002580 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002581 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
2582 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
2583 &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.
2584 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
2585 &quot;creativeSpecifications&quot;: [
2586 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
2587 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
2588 { # Represents size of a single ad slot, or a creative.
2589 &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`.
2590 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2591 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002592 },
2593 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002594 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
2595 &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`.
2596 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2597 &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`.
2598 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002599 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002600 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002601 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
2602 },
2603 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
2604 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
2605 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
2606 &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.
2607 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
2608 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
2609 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
2610 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
2611 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
2612 },
2613 },
2614 &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.
2615 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
2616 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
2617 &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.
2618 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2619 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2620 &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.
2621 &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.
2622 },
2623 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2624 },
2625 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
2626 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
2627 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2628 { # 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.
2629 &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.
2630 &quot;A String&quot;,
2631 ],
2632 &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).
2633 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2634 },
2635 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
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 },
2644 ],
2645 &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.
2646 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
2647 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
2648 },
2649 &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.
2650 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
2651 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
2652 { # 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.
2653 &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.
2654 &quot;A String&quot;,
2655 ],
2656 &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).
2657 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2658 },
2659 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2660 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2661 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2662 &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.
2663 &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.
2664 },
2665 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2666 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002667 },
2668 ],
2669 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002670 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
2671 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2672 { # 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.
2673 &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.
2674 &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002675 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002676 &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).
2677 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2678 },
2679 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2680 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2681 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2682 &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.
2683 &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.
2684 },
2685 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2686 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002687 },
2688 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002689 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002690 &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.
2691 },
2692 &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.
2693 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
2694 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
2695 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
2696 { # Frequency cap.
2697 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
2698 &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.
2699 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002700 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002701 ],
2702 },
2703 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
2704 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
2705 &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.
2706 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
2707 &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.
2708 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
2709 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
2710 { # Contains information on how a buyer or seller can be reached.
2711 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2712 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002713 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002714 ],
2715 &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.
2716 &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.
2717 &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.
2718 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2719 &quot;A String&quot;,
2720 ],
2721 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2722 &quot;A String&quot;,
2723 ],
2724 },
2725 &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.
2726 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
2727 { # Represents size of a single ad slot, or a creative.
2728 &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`.
2729 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2730 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002731 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002732 ],
2733 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
2734 { # Represents size of a single ad slot, or a creative.
2735 &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`.
2736 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2737 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002738 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002739 ],
2740 },
2741 &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.
2742 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
2743 &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.
2744 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002745 &quot;A String&quot;,
2746 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002747 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002748 &quot;A String&quot;,
2749 ],
2750 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002751 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002752 &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.
2753 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002754 &quot;A String&quot;,
2755 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002756 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
2757 &quot;A String&quot;,
2758 ],
2759 },
2760 },
2761 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
2762 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002763 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2764 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002765 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002766 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002767 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002768 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002769 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002770 &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.
2771 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2772 &quot;A String&quot;,
2773 ],
2774 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2775 &quot;A String&quot;,
2776 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002777 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002778 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
2779 &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.
2780 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2781 &quot;A String&quot;,
2782 ],
2783 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2784 &quot;A String&quot;,
2785 ],
2786 },
2787 &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.
2788 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2789 &quot;A String&quot;,
2790 ],
2791 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2792 &quot;A String&quot;,
2793 ],
2794 },
2795 },
2796 },
2797 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
2798 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
2799 &quot;A String&quot;,
2800 ],
2801 &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.
2802 &quot;A String&quot;,
2803 ],
2804 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002805 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002806 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
2807 { # 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.
2808 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
2809 { # A polymorphic targeting value used as part of Shared Targeting.
2810 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2811 &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).
2812 &quot;A String&quot;,
2813 ],
2814 &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
2815 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2816 &quot;height&quot;: 42, # The height of the creative.
2817 &quot;width&quot;: 42, # The width of the creative
2818 },
2819 ],
2820 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2821 &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.
2822 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
2823 &quot;height&quot;: 42, # The height of the creative.
2824 &quot;width&quot;: 42, # The width of the creative
2825 },
2826 &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.
2827 },
2828 &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.
2829 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2830 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2831 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2832 &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.
2833 &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.
2834 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2835 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2836 &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.
2837 },
2838 &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.
2839 &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.
2840 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2841 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2842 &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.
2843 },
2844 },
2845 ],
2846 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2847 },
2848 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2849 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2850 },
2851 ],
2852 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
2853 { # A polymorphic targeting value used as part of Shared Targeting.
2854 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2855 &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).
2856 &quot;A String&quot;,
2857 ],
2858 &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
2859 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2860 &quot;height&quot;: 42, # The height of the creative.
2861 &quot;width&quot;: 42, # The width of the creative
2862 },
2863 ],
2864 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2865 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
2866 &quot;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
2867 &quot;height&quot;: 42, # The height of the creative.
2868 &quot;width&quot;: 42, # The width of the creative
2869 },
2870 &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.
2871 },
2872 &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.
2873 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2874 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2875 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2876 &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.
2877 &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.
2878 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2879 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2880 &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.
2881 },
2882 &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.
2883 &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.
2884 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2885 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2886 &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.
2887 },
2888 },
2889 ],
2890 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2891 },
2892 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2893 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2894 },
2895 ],
2896 &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.
2897 },
2898 ],
2899 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
2900 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
2901 },
2902 ],
2903 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
2904 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
2905 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
2906 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
2907 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
2908 { # A proposal may be associated to several notes.
2909 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
2910 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
2911 &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.
2912 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
2913 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
2914 },
2915 ],
2916 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
2917 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
2918 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
2919 &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.
2920 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
2921 &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.
2922 &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.
2923 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002924 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002925 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
2926 { # Contains information on how a buyer or seller can be reached.
2927 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2928 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2929 },
2930 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002931 &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002932 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
2933 },
2934 ],
2935}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002936</div>
2937
2938<div class="method">
2939 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2940 <pre>Retrieves the next page of results.
2941
2942Args:
2943 previous_request: The request for the previous page. (required)
2944 previous_response: The response from the request for the previous page. (required)
2945
2946Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002947 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002948 page. Returns None if there are no more items in the collection.
2949 </pre>
2950</div>
2951
2952<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002953 <code class="details" id="pause">pause(accountId, proposalId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002954 <pre>Update the given proposal to pause serving. This method will set the `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to true for all deals in the proposal. It is a no-op to pause an already-paused proposal. It is an error to call PauseProposal for a proposal that is not finalized or renegotiating.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002955
2956Args:
2957 accountId: string, Account ID of the buyer. (required)
2958 proposalId: string, The ID of the proposal to pause. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002959 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002960 The object takes the form of:
2961
2962{ # Request message to pause serving for an already-finalized proposal.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002963 &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.)
2964}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002965
2966 x__xgafv: string, V1 error format.
2967 Allowed values
2968 1 - v1 error format
2969 2 - v2 error format
2970
2971Returns:
2972 An object of the form:
2973
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002974 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002975 &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.
2976 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2977 },
2978 &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.
2979 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2980 },
2981 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
2982 { # Contains information on how a buyer or seller can be reached.
2983 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2984 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002985 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002986 ],
2987 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
2988 &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).
2989 },
2990 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
2991 { # 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.
2992 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002993 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002994 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
2995 &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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002996 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002997 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002998 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002999 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
3000 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
3001 &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.
3002 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
3003 &quot;creativeSpecifications&quot;: [
3004 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
3005 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
3006 { # Represents size of a single ad slot, or a creative.
3007 &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`.
3008 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3009 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003010 },
3011 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003012 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
3013 &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`.
3014 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3015 &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`.
3016 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003017 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003018 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003019 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
3020 },
3021 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
3022 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
3023 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
3024 &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.
3025 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
3026 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
3027 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
3028 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
3029 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
3030 },
3031 },
3032 &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.
3033 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
3034 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
3035 &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.
3036 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3037 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3038 &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.
3039 &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.
3040 },
3041 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3042 },
3043 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
3044 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
3045 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3046 { # 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.
3047 &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.
3048 &quot;A String&quot;,
3049 ],
3050 &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).
3051 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3052 },
3053 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3054 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3055 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3056 &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.
3057 &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.
3058 },
3059 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3060 },
3061 },
3062 ],
3063 &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.
3064 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
3065 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
3066 },
3067 &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.
3068 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
3069 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
3070 { # 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.
3071 &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.
3072 &quot;A String&quot;,
3073 ],
3074 &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).
3075 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3076 },
3077 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3078 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3079 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3080 &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.
3081 &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.
3082 },
3083 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3084 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003085 },
3086 ],
3087 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003088 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
3089 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3090 { # 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.
3091 &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.
3092 &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003093 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003094 &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).
3095 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3096 },
3097 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3098 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3099 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3100 &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.
3101 &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.
3102 },
3103 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3104 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003105 },
3106 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003107 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003108 &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.
3109 },
3110 &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.
3111 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
3112 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
3113 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
3114 { # Frequency cap.
3115 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
3116 &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.
3117 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003118 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003119 ],
3120 },
3121 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
3122 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
3123 &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.
3124 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
3125 &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.
3126 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
3127 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
3128 { # Contains information on how a buyer or seller can be reached.
3129 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3130 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003131 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003132 ],
3133 &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.
3134 &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.
3135 &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.
3136 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3137 &quot;A String&quot;,
3138 ],
3139 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3140 &quot;A String&quot;,
3141 ],
3142 },
3143 &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.
3144 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
3145 { # Represents size of a single ad slot, or a creative.
3146 &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`.
3147 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3148 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003149 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003150 ],
3151 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
3152 { # Represents size of a single ad slot, or a creative.
3153 &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`.
3154 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3155 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003156 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003157 ],
3158 },
3159 &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.
3160 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
3161 &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.
3162 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003163 &quot;A String&quot;,
3164 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003165 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003166 &quot;A String&quot;,
3167 ],
3168 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003169 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003170 &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.
3171 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003172 &quot;A String&quot;,
3173 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003174 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
3175 &quot;A String&quot;,
3176 ],
3177 },
3178 },
3179 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
3180 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003181 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3182 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003183 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003184 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003185 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08003186 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003187 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003188 &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.
3189 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3190 &quot;A String&quot;,
3191 ],
3192 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3193 &quot;A String&quot;,
3194 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003195 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003196 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
3197 &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.
3198 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3199 &quot;A String&quot;,
3200 ],
3201 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3202 &quot;A String&quot;,
3203 ],
3204 },
3205 &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.
3206 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3207 &quot;A String&quot;,
3208 ],
3209 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3210 &quot;A String&quot;,
3211 ],
3212 },
3213 },
3214 },
3215 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
3216 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
3217 &quot;A String&quot;,
3218 ],
3219 &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.
3220 &quot;A String&quot;,
3221 ],
3222 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003223 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003224 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
3225 { # 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.
3226 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
3227 { # A polymorphic targeting value used as part of Shared Targeting.
3228 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3229 &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).
3230 &quot;A String&quot;,
3231 ],
3232 &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
3233 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3234 &quot;height&quot;: 42, # The height of the creative.
3235 &quot;width&quot;: 42, # The width of the creative
3236 },
3237 ],
3238 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3239 &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.
3240 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
3241 &quot;height&quot;: 42, # The height of the creative.
3242 &quot;width&quot;: 42, # The width of the creative
3243 },
3244 &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.
3245 },
3246 &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.
3247 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3248 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3249 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3250 &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.
3251 &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.
3252 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3253 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3254 &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.
3255 },
3256 &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.
3257 &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.
3258 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3259 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3260 &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.
3261 },
3262 },
3263 ],
3264 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3265 },
3266 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3267 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3268 },
3269 ],
3270 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
3271 { # A polymorphic targeting value used as part of Shared Targeting.
3272 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3273 &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).
3274 &quot;A String&quot;,
3275 ],
3276 &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
3277 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3278 &quot;height&quot;: 42, # The height of the creative.
3279 &quot;width&quot;: 42, # The width of the creative
3280 },
3281 ],
3282 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3283 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
3284 &quot;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
3285 &quot;height&quot;: 42, # The height of the creative.
3286 &quot;width&quot;: 42, # The width of the creative
3287 },
3288 &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.
3289 },
3290 &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.
3291 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3292 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3293 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3294 &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.
3295 &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.
3296 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3297 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3298 &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.
3299 },
3300 &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.
3301 &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.
3302 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3303 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3304 &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.
3305 },
3306 },
3307 ],
3308 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3309 },
3310 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3311 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3312 },
3313 ],
3314 &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.
3315 },
3316 ],
3317 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
3318 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
3319 },
3320 ],
3321 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
3322 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
3323 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
3324 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
3325 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
3326 { # A proposal may be associated to several notes.
3327 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
3328 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
3329 &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.
3330 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
3331 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
3332 },
3333 ],
3334 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
3335 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
3336 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
3337 &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.
3338 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
3339 &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.
3340 &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.
3341 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
3342 },
3343 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
3344 { # Contains information on how a buyer or seller can be reached.
3345 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3346 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3347 },
3348 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003349 &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003350 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
3351}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003352</div>
3353
3354<div class="method">
3355 <code class="details" id="resume">resume(accountId, proposalId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003356 <pre>Update the given proposal to resume serving. This method will set the `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to false for all deals in the proposal. Note that if the `has_seller_paused` bit is also set, serving will not resume until the seller also resumes. It is a no-op to resume an already-running proposal. It is an error to call ResumeProposal for a proposal that is not finalized or renegotiating.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003357
3358Args:
3359 accountId: string, Account ID of the buyer. (required)
3360 proposalId: string, The ID of the proposal to resume. (required)
3361 body: object, The request body.
3362 The object takes the form of:
3363
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003364{ # Request message to resume (unpause) serving for an already-finalized proposal.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003365}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003366
3367 x__xgafv: string, V1 error format.
3368 Allowed values
3369 1 - v1 error format
3370 2 - v2 error format
3371
3372Returns:
3373 An object of the form:
3374
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003375 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003376 &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.
3377 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3378 },
3379 &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.
3380 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3381 },
3382 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
3383 { # Contains information on how a buyer or seller can be reached.
3384 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3385 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003386 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003387 ],
3388 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
3389 &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).
3390 },
3391 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
3392 { # 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.
3393 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003394 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003395 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
3396 &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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003397 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003398 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003399 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003400 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
3401 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
3402 &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.
3403 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
3404 &quot;creativeSpecifications&quot;: [
3405 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
3406 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
3407 { # Represents size of a single ad slot, or a creative.
3408 &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`.
3409 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3410 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003411 },
3412 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003413 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
3414 &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`.
3415 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3416 &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`.
3417 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003418 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003419 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003420 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
3421 },
3422 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
3423 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
3424 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
3425 &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.
3426 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
3427 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
3428 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
3429 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
3430 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
3431 },
3432 },
3433 &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.
3434 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
3435 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
3436 &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.
3437 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3438 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3439 &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.
3440 &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.
3441 },
3442 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3443 },
3444 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
3445 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
3446 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3447 { # 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.
3448 &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.
3449 &quot;A String&quot;,
3450 ],
3451 &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).
3452 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3453 },
3454 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3455 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3456 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3457 &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.
3458 &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.
3459 },
3460 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3461 },
3462 },
3463 ],
3464 &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.
3465 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
3466 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
3467 },
3468 &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.
3469 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
3470 &quot;reservePricesPerBuyer&quot;: [ # Reserve 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 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003486 },
3487 ],
3488 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003489 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
3490 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3491 { # 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.
3492 &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.
3493 &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003494 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003495 &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).
3496 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3497 },
3498 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3499 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3500 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3501 &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.
3502 &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.
3503 },
3504 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3505 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003506 },
3507 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003508 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003509 &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.
3510 },
3511 &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.
3512 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
3513 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
3514 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
3515 { # Frequency cap.
3516 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
3517 &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.
3518 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003519 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003520 ],
3521 },
3522 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
3523 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
3524 &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.
3525 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
3526 &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.
3527 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
3528 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
3529 { # Contains information on how a buyer or seller can be reached.
3530 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3531 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003532 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003533 ],
3534 &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.
3535 &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.
3536 &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.
3537 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3538 &quot;A String&quot;,
3539 ],
3540 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3541 &quot;A String&quot;,
3542 ],
3543 },
3544 &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.
3545 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
3546 { # Represents size of a single ad slot, or a creative.
3547 &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`.
3548 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3549 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003550 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003551 ],
3552 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
3553 { # Represents size of a single ad slot, or a creative.
3554 &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`.
3555 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3556 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003557 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003558 ],
3559 },
3560 &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.
3561 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
3562 &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.
3563 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003564 &quot;A String&quot;,
3565 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003566 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003567 &quot;A String&quot;,
3568 ],
3569 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003570 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003571 &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.
3572 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003573 &quot;A String&quot;,
3574 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003575 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
3576 &quot;A String&quot;,
3577 ],
3578 },
3579 },
3580 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
3581 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003582 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3583 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003584 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003585 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003586 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08003587 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003588 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003589 &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.
3590 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3591 &quot;A String&quot;,
3592 ],
3593 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3594 &quot;A String&quot;,
3595 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003596 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003597 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
3598 &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.
3599 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3600 &quot;A String&quot;,
3601 ],
3602 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3603 &quot;A String&quot;,
3604 ],
3605 },
3606 &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.
3607 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3608 &quot;A String&quot;,
3609 ],
3610 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3611 &quot;A String&quot;,
3612 ],
3613 },
3614 },
3615 },
3616 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
3617 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
3618 &quot;A String&quot;,
3619 ],
3620 &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.
3621 &quot;A String&quot;,
3622 ],
3623 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003624 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003625 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
3626 { # 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.
3627 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
3628 { # A polymorphic targeting value used as part of Shared Targeting.
3629 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3630 &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).
3631 &quot;A String&quot;,
3632 ],
3633 &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
3634 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3635 &quot;height&quot;: 42, # The height of the creative.
3636 &quot;width&quot;: 42, # The width of the creative
3637 },
3638 ],
3639 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3640 &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.
3641 &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
3642 &quot;height&quot;: 42, # The height of the creative.
3643 &quot;width&quot;: 42, # The width of the creative
3644 },
3645 &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.
3646 },
3647 &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.
3648 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3649 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3650 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3651 &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.
3652 &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.
3653 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3654 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3655 &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.
3656 },
3657 &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.
3658 &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.
3659 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3660 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3661 &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.
3662 },
3663 },
3664 ],
3665 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3666 },
3667 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3668 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3669 },
3670 ],
3671 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
3672 { # A polymorphic targeting value used as part of Shared Targeting.
3673 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3674 &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).
3675 &quot;A String&quot;,
3676 ],
3677 &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
3678 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3679 &quot;height&quot;: 42, # The height of the creative.
3680 &quot;width&quot;: 42, # The width of the creative
3681 },
3682 ],
3683 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3684 &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.
3685 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
3686 &quot;height&quot;: 42, # The height of the creative.
3687 &quot;width&quot;: 42, # The width of the creative
3688 },
3689 &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.
3690 },
3691 &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.
3692 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3693 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3694 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3695 &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.
3696 &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.
3697 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3698 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3699 &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.
3700 },
3701 &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.
3702 &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.
3703 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3704 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3705 &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.
3706 },
3707 },
3708 ],
3709 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3710 },
3711 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3712 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3713 },
3714 ],
3715 &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.
3716 },
3717 ],
3718 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
3719 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
3720 },
3721 ],
3722 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
3723 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
3724 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
3725 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
3726 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
3727 { # A proposal may be associated to several notes.
3728 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
3729 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
3730 &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.
3731 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
3732 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
3733 },
3734 ],
3735 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
3736 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
3737 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
3738 &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.
3739 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
3740 &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.
3741 &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.
3742 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
3743 },
3744 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
3745 { # Contains information on how a buyer or seller can be reached.
3746 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3747 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3748 },
3749 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003750 &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003751 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
3752}</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003753</div>
3754
3755<div class="method">
3756 <code class="details" id="update">update(accountId, proposalId, body=None, x__xgafv=None)</code>
3757 <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.
3758
3759Args:
3760 accountId: string, Account ID of the buyer. (required)
3761 proposalId: string, The unique ID of the proposal. (required)
3762 body: object, The request body.
3763 The object takes the form of:
3764
3765{ # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003766 &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.
3767 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3768 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003769 &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.
3770 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3771 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003772 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
3773 { # Contains information on how a buyer or seller can be reached.
3774 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3775 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3776 },
3777 ],
3778 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
3779 &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).
3780 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003781 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
3782 { # 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003783 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003784 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003785 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
3786 &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).
3787 },
3788 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003789 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003790 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
3791 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
3792 &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.
3793 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
3794 &quot;creativeSpecifications&quot;: [
3795 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
3796 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
3797 { # Represents size of a single ad slot, or a creative.
3798 &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`.
3799 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3800 &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`.
3801 },
3802 ],
3803 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
3804 &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`.
3805 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3806 &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`.
3807 },
3808 },
3809 ],
3810 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
3811 },
3812 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
3813 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003814 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
3815 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003816 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003817 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
3818 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
3819 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
3820 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003821 },
3822 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003823 &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.
3824 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
3825 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
3826 &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.
3827 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3828 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3829 &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.
3830 &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.
3831 },
3832 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003833 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003834 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
3835 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
3836 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3837 { # 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.
3838 &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.
3839 &quot;A String&quot;,
3840 ],
3841 &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).
3842 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3843 },
3844 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3845 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3846 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3847 &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.
3848 &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.
3849 },
3850 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3851 },
3852 },
3853 ],
3854 &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.
3855 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
3856 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
3857 },
3858 &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.
3859 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
3860 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
3861 { # 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.
3862 &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.
3863 &quot;A String&quot;,
3864 ],
3865 &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).
3866 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3867 },
3868 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3869 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3870 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3871 &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.
3872 &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.
3873 },
3874 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3875 },
3876 },
3877 ],
3878 },
3879 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
3880 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3881 { # 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.
3882 &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.
3883 &quot;A String&quot;,
3884 ],
3885 &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).
3886 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3887 },
3888 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3889 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3890 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3891 &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.
3892 &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.
3893 },
3894 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3895 },
3896 },
3897 ],
3898 },
3899 &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.
3900 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003901 &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.
3902 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
3903 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
3904 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
3905 { # Frequency cap.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003906 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
3907 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003908 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003909 },
3910 ],
3911 },
3912 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003913 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
3914 &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.
3915 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
3916 &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.
3917 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
3918 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
3919 { # Contains information on how a buyer or seller can be reached.
3920 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3921 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3922 },
3923 ],
3924 &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.
3925 &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.
3926 &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.
3927 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3928 &quot;A String&quot;,
3929 ],
3930 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3931 &quot;A String&quot;,
3932 ],
3933 },
3934 &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.
3935 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
3936 { # Represents size of a single ad slot, or a creative.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003937 &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`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003938 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003939 &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`.
3940 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003941 ],
3942 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
3943 { # Represents size of a single ad slot, or a creative.
3944 &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`.
3945 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3946 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003947 },
3948 ],
3949 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003950 &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.
3951 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
3952 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003953 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
3954 &quot;A String&quot;,
3955 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003956 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
3957 &quot;A String&quot;,
3958 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003959 },
3960 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003961 &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.
3962 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
3963 &quot;A String&quot;,
3964 ],
3965 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
3966 &quot;A String&quot;,
3967 ],
3968 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003969 },
3970 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
3971 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003972 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3973 &quot;A String&quot;,
3974 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003975 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003976 &quot;A String&quot;,
3977 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003978 },
3979 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003980 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3981 &quot;A String&quot;,
3982 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003983 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3984 &quot;A String&quot;,
3985 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003986 },
3987 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003988 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003989 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3990 &quot;A String&quot;,
3991 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003992 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3993 &quot;A String&quot;,
3994 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003995 },
3996 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003997 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3998 &quot;A String&quot;,
3999 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004000 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4001 &quot;A String&quot;,
4002 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08004003 },
4004 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004005 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08004006 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
4007 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
4008 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004009 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08004010 &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.
4011 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08004012 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004013 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004014 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004015 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
4016 { # 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.
4017 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
4018 { # A polymorphic targeting value used as part of Shared Targeting.
4019 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
4020 &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).
4021 &quot;A String&quot;,
4022 ],
4023 &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
4024 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
4025 &quot;height&quot;: 42, # The height of the creative.
4026 &quot;width&quot;: 42, # The width of the creative
4027 },
4028 ],
4029 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4030 &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.
4031 &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
4032 &quot;height&quot;: 42, # The height of the creative.
4033 &quot;width&quot;: 42, # The width of the creative
4034 },
4035 &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.
4036 },
4037 &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.
4038 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4039 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
4040 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4041 &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.
4042 &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.
4043 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4044 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4045 &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.
4046 },
4047 &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.
4048 &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.
4049 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4050 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4051 &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.
4052 },
4053 },
4054 ],
4055 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4056 },
4057 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4058 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4059 },
4060 ],
4061 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
4062 { # A polymorphic targeting value used as part of Shared Targeting.
4063 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
4064 &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).
4065 &quot;A String&quot;,
4066 ],
4067 &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
4068 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
4069 &quot;height&quot;: 42, # The height of the creative.
4070 &quot;width&quot;: 42, # The width of the creative
4071 },
4072 ],
4073 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4074 &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.
4075 &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
4076 &quot;height&quot;: 42, # The height of the creative.
4077 &quot;width&quot;: 42, # The width of the creative
4078 },
4079 &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.
4080 },
4081 &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.
4082 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4083 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
4084 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4085 &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.
4086 &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.
4087 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4088 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4089 &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.
4090 },
4091 &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.
4092 &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.
4093 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4094 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4095 &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.
4096 },
4097 },
4098 ],
4099 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4100 },
4101 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4102 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4103 },
4104 ],
4105 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08004106 },
4107 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004108 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08004109 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004110 },
4111 ],
4112 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
4113 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
4114 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
4115 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
4116 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
4117 { # A proposal may be associated to several notes.
4118 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
4119 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
4120 &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.
4121 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
4122 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
4123 },
4124 ],
4125 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
4126 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
4127 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
4128 &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.
4129 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
4130 &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.
4131 &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.
4132 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
4133 },
4134 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
4135 { # Contains information on how a buyer or seller can be reached.
4136 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4137 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004138 },
4139 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08004140 &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08004141 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004142}
4143
4144 x__xgafv: string, V1 error format.
4145 Allowed values
4146 1 - v1 error format
4147 2 - v2 error format
4148
4149Returns:
4150 An object of the form:
4151
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004152 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004153 &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.
4154 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4155 },
4156 &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.
4157 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4158 },
4159 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
4160 { # Contains information on how a buyer or seller can be reached.
4161 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4162 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004163 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004164 ],
4165 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
4166 &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).
4167 },
4168 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
4169 { # 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.
4170 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08004171 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004172 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
4173 &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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08004174 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004175 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08004176 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004177 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
4178 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
4179 &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.
4180 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
4181 &quot;creativeSpecifications&quot;: [
4182 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
4183 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
4184 { # Represents size of a single ad slot, or a creative.
4185 &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`.
4186 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4187 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08004188 },
4189 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004190 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
4191 &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`.
4192 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4193 &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`.
4194 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004195 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004196 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004197 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
4198 },
4199 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
4200 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
4201 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
4202 &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.
4203 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
4204 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
4205 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
4206 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
4207 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
4208 },
4209 },
4210 &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.
4211 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
4212 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
4213 &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.
4214 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4215 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
4216 &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.
4217 &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.
4218 },
4219 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4220 },
4221 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
4222 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
4223 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
4224 { # 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.
4225 &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.
4226 &quot;A String&quot;,
4227 ],
4228 &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).
4229 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4230 },
4231 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4232 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4233 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
4234 &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.
4235 &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.
4236 },
4237 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4238 },
4239 },
4240 ],
4241 &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.
4242 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
4243 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
4244 },
4245 &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.
4246 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
4247 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
4248 { # 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.
4249 &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.
4250 &quot;A String&quot;,
4251 ],
4252 &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).
4253 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4254 },
4255 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4256 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4257 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
4258 &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.
4259 &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.
4260 },
4261 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4262 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08004263 },
4264 ],
4265 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004266 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
4267 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
4268 { # 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.
4269 &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.
4270 &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08004271 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004272 &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).
4273 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4274 },
4275 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4276 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4277 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
4278 &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.
4279 &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.
4280 },
4281 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4282 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004283 },
4284 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004285 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004286 &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.
4287 },
4288 &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.
4289 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
4290 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
4291 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
4292 { # Frequency cap.
4293 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
4294 &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.
4295 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08004296 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004297 ],
4298 },
4299 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
4300 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
4301 &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.
4302 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
4303 &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.
4304 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
4305 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
4306 { # Contains information on how a buyer or seller can be reached.
4307 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4308 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08004309 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004310 ],
4311 &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.
4312 &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.
4313 &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.
4314 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4315 &quot;A String&quot;,
4316 ],
4317 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4318 &quot;A String&quot;,
4319 ],
4320 },
4321 &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.
4322 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
4323 { # Represents size of a single ad slot, or a creative.
4324 &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`.
4325 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4326 &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`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08004327 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004328 ],
4329 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
4330 { # Represents size of a single ad slot, or a creative.
4331 &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`.
4332 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4333 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004334 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004335 ],
4336 },
4337 &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.
4338 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
4339 &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.
4340 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08004341 &quot;A String&quot;,
4342 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004343 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08004344 &quot;A String&quot;,
4345 ],
4346 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004347 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004348 &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.
4349 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08004350 &quot;A String&quot;,
4351 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004352 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
4353 &quot;A String&quot;,
4354 ],
4355 },
4356 },
4357 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
4358 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08004359 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4360 &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004361 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004362 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08004363 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08004364 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004365 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004366 &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.
4367 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4368 &quot;A String&quot;,
4369 ],
4370 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4371 &quot;A String&quot;,
4372 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08004373 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004374 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
4375 &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.
4376 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4377 &quot;A String&quot;,
4378 ],
4379 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4380 &quot;A String&quot;,
4381 ],
4382 },
4383 &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.
4384 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4385 &quot;A String&quot;,
4386 ],
4387 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4388 &quot;A String&quot;,
4389 ],
4390 },
4391 },
4392 },
4393 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
4394 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
4395 &quot;A String&quot;,
4396 ],
4397 &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.
4398 &quot;A String&quot;,
4399 ],
4400 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004401 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004402 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
4403 { # 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.
4404 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
4405 { # A polymorphic targeting value used as part of Shared Targeting.
4406 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
4407 &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).
4408 &quot;A String&quot;,
4409 ],
4410 &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
4411 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
4412 &quot;height&quot;: 42, # The height of the creative.
4413 &quot;width&quot;: 42, # The width of the creative
4414 },
4415 ],
4416 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4417 &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.
4418 &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
4419 &quot;height&quot;: 42, # The height of the creative.
4420 &quot;width&quot;: 42, # The width of the creative
4421 },
4422 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
4423 },
4424 &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.
4425 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4426 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
4427 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4428 &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.
4429 &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.
4430 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4431 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4432 &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.
4433 },
4434 &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.
4435 &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.
4436 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4437 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4438 &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.
4439 },
4440 },
4441 ],
4442 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4443 },
4444 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4445 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4446 },
4447 ],
4448 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
4449 { # A polymorphic targeting value used as part of Shared Targeting.
4450 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
4451 &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).
4452 &quot;A String&quot;,
4453 ],
4454 &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
4455 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
4456 &quot;height&quot;: 42, # The height of the creative.
4457 &quot;width&quot;: 42, # The width of the creative
4458 },
4459 ],
4460 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4461 &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.
4462 &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
4463 &quot;height&quot;: 42, # The height of the creative.
4464 &quot;width&quot;: 42, # The width of the creative
4465 },
4466 &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.
4467 },
4468 &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.
4469 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4470 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
4471 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4472 &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.
4473 &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.
4474 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4475 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4476 &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.
4477 },
4478 &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.
4479 &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.
4480 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4481 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4482 &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.
4483 },
4484 },
4485 ],
4486 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4487 },
4488 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4489 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4490 },
4491 ],
4492 &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.
4493 },
4494 ],
4495 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
4496 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
4497 },
4498 ],
4499 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
4500 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
4501 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
4502 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
4503 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
4504 { # A proposal may be associated to several notes.
4505 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
4506 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
4507 &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.
4508 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
4509 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
4510 },
4511 ],
4512 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
4513 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
4514 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
4515 &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.
4516 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
4517 &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.
4518 &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.
4519 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
4520 },
4521 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
4522 { # Contains information on how a buyer or seller can be reached.
4523 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4524 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4525 },
4526 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08004527 &quot;termsAndConditions&quot;: &quot;A String&quot;, # Output only. The terms and conditions set by the publisher for this proposal.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08004528 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
4529}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004530</div>
4531
4532</body></html>