blob: 731141e5f6aea64f74f1a8d28c127795c6443010 [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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Mark the proposal as accepted at the given revision number. If the number</p>
80<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Create a new note and attach it to the proposal. The note is assigned</p>
83<p class="toc_element">
84 <code><a href="#cancelNegotiation">cancelNegotiation(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Cancel an ongoing negotiation on a proposal. This does not cancel or end</p>
86<p class="toc_element">
87 <code><a href="#completeSetup">completeSetup(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Update the given proposal to indicate that setup has been completed.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#create">create(accountId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Create the given proposal. Each created proposal and any deals it contains</p>
92<p class="toc_element">
93 <code><a href="#get">get(accountId, proposalId, x__xgafv=None)</a></code></p>
94<p class="firstline">Gets a proposal given its ID. The proposal is returned at its head</p>
95<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070096 <code><a href="#list">list(accountId, filter=None, pageToken=None, pageSize=None, filterSyntax=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">List proposals. A filter expression (PQL query) may be specified to</p>
98<p class="toc_element">
99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#pause">pause(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Update the given proposal to pause serving.</p>
104<p class="toc_element">
105 <code><a href="#resume">resume(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
106<p class="firstline">Update the given proposal to resume serving.</p>
107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#update">update(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109<p class="firstline">Update the given proposal at the client known revision number. If the</p>
110<h3>Method Details</h3>
111<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 <code class="details" id="accept">accept(accountId, proposalId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113 <pre>Mark the proposal as accepted at the given revision number. If the number
Bu Sun Kim65020912020-05-20 12:08:20 -0700114does not match the server&#x27;s revision number an `ABORTED` error message will
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115be returned. This call updates the proposal_state from `PROPOSED` to
116`BUYER_ACCEPTED`, or from `SELLER_ACCEPTED` to `FINALIZED`.
117
118Args:
119 accountId: string, Account ID of the buyer. (required)
120 proposalId: string, The ID of the proposal to accept. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122 The object takes the form of:
123
124{ # Request to accept a proposal.
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &quot;proposalRevision&quot;: &quot;A String&quot;, # The last known client revision number of the proposal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126 }
127
128 x__xgafv: string, V1 error format.
129 Allowed values
130 1 - v1 error format
131 2 - v2 error format
132
133Returns:
134 An object of the form:
135
136 { # Note: this resource requires whitelisting for access. Please contact your
137 # account manager for access to Marketplace resources.
138 #
139 # Represents a proposal in the Marketplace. A proposal is the unit of
140 # negotiation between a seller and a buyer and contains deals which
141 # are served.
142 #
143 # Note: you can not update, create, or otherwise modify Private
144 # Auction or Preferred Deals deals through the API.
145 #
146 # Fields are updatable unless noted otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -0700147 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Reference to the buyer on the proposal.
148 #
149 # Note: This field may be set only when creating the resource. Modifying
150 # this field while updating the resource will result in an error.
151 # Authorized Buyers account ID.
152 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
153 },
154 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
155 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
156 { # A proposal may be associated to several notes.
157 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach.
158 # (max-length: 1024 unicode code units)
159 #
160 # Note: This field may be set only when creating the resource. Modifying
161 # this field while updating the resource will result in an error.
162 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
163 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
164 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
165 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
166 },
167 ],
168 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
169 # proposal.
170 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
171 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
172 { # Contains information on how a buyer or seller can be reached.
173 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
174 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
175 },
176 ],
177 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction
178 # proposal.
179 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
180 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or
181 # left a comment.
182 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
183 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
184 # operations (max-length: 1024 unicode code units).
185 },
186 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
187 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
188 { # Contains information on how a buyer or seller can be reached.
189 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
190 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
191 },
192 ],
193 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Output only. Reference to the buyer that will get billed for this proposal.
194 # Authorized Buyers account ID.
195 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
196 },
197 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
198 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
199 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700200 # (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
201 { # A deal represents a segment of inventory for displaying ads on.
202 # A proposal can contain multiple deals. A deal contains the terms and
203 # targeting information that is used for serving.
Bu Sun Kim65020912020-05-20 12:08:20 -0700204 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals.
205 # PUBLISHER means creative is provided by seller and ADVERTISER means
206 # creative is provided by buyer.
207 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
208 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
209 # operations (max-length: 1024 unicode code units).
210 },
211 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
212 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
213 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
214 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared
215 # targeting entity is AND&#x27;d together.
216 { # Advertisers can target different attributes of an ad slot. For example,
217 # they can choose to show ads only if the user is in the U.S. Such
218 # targeting criteria can be specified as part of Shared Targeting.
219 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d
220 # together.
221 { # A polymorphic targeting value used as part of Shared Targeting.
222 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
223 # Filled in when key = GOOG_CREATIVE_SIZE
224 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
225 # of the creative
226 # height depend on the type of the targeting.
227 &quot;height&quot;: 42, # The height of the creative.
228 &quot;width&quot;: 42, # The width of the creative
229 },
230 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
231 # If this repeated field is empty then all formats are allowed.
232 # For example, if this field contains AllowedFormatType.AUDIO then the
233 # publisher only allows an audio ad (without any video).
234 &quot;A String&quot;,
235 ],
236 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
237 # Companion sizes may be filled in only when creative_size_type = VIDEO
238 { # Message depicting the size of the creative. The units of width and
239 # height depend on the type of the targeting.
240 &quot;height&quot;: 42, # The height of the creative.
241 &quot;width&quot;: 42, # The width of the creative
242 },
243 ],
244 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
245 # creative_size_type = CreativeSizeType.VIDEO.
246 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
247 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
248 # only if creative_size_type = CreativeSizeType.NATIVE.
249 },
250 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
251 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
252 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
253 # Filled in when the key is GOOG_DAYPART_TARGETING.
254 # The definition of this targeting is derived from the structure
255 # used by Ad Manager.
256 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
257 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
258 { # Daypart targeting message that specifies if the ad can be shown
259 # only during certain parts of a day/week.
260 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
261 # The start time is inclusive.
262 # This field is not available for filtering in PQL queries.
263 # or are specified elsewhere. An API may choose to allow leap seconds. Related
264 # types are google.type.Date and `google.protobuf.Timestamp`.
265 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
266 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
267 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
268 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
269 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
270 # allow the value 60 if it allows leap-seconds.
271 },
272 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
273 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
274 # granularity). The end time is exclusive. This field is not available
275 # for filtering in PQL queries.
276 # or are specified elsewhere. An API may choose to allow leap seconds. Related
277 # types are google.type.Date and `google.protobuf.Timestamp`.
278 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
279 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
280 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
281 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
282 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
283 # allow the value 60 if it allows leap-seconds.
284 },
285 },
286 ],
287 },
288 },
289 ],
290 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion.
291 # Targeting criteria defined by Google ad servers will begin with GOOG_.
292 # Third parties may define their own keys.
293 # A list of permissible keys along with the acceptable values will be
294 # provided as part of the external documentation.
295 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d
296 # together.
297 { # A polymorphic targeting value used as part of Shared Targeting.
298 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
299 # Filled in when key = GOOG_CREATIVE_SIZE
300 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
301 # of the creative
302 # height depend on the type of the targeting.
303 &quot;height&quot;: 42, # The height of the creative.
304 &quot;width&quot;: 42, # The width of the creative
305 },
306 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
307 # If this repeated field is empty then all formats are allowed.
308 # For example, if this field contains AllowedFormatType.AUDIO then the
309 # publisher only allows an audio ad (without any video).
310 &quot;A String&quot;,
311 ],
312 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
313 # Companion sizes may be filled in only when creative_size_type = VIDEO
314 { # Message depicting the size of the creative. The units of width and
315 # height depend on the type of the targeting.
316 &quot;height&quot;: 42, # The height of the creative.
317 &quot;width&quot;: 42, # The width of the creative
318 },
319 ],
320 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
321 # creative_size_type = CreativeSizeType.VIDEO.
322 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
323 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
324 # only if creative_size_type = CreativeSizeType.NATIVE.
325 },
326 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
327 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
328 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
329 # Filled in when the key is GOOG_DAYPART_TARGETING.
330 # The definition of this targeting is derived from the structure
331 # used by Ad Manager.
332 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
333 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
334 { # Daypart targeting message that specifies if the ad can be shown
335 # only during certain parts of a day/week.
336 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
337 # The start time is inclusive.
338 # This field is not available for filtering in PQL queries.
339 # or are specified elsewhere. An API may choose to allow leap seconds. Related
340 # types are google.type.Date and `google.protobuf.Timestamp`.
341 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
342 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
343 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
344 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
345 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
346 # allow the value 60 if it allows leap-seconds.
347 },
348 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
349 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
350 # granularity). The end time is exclusive. This field is not available
351 # for filtering in PQL queries.
352 # or are specified elsewhere. An API may choose to allow leap seconds. Related
353 # types are google.type.Date and `google.protobuf.Timestamp`.
354 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
355 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
356 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
357 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
358 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
359 # allow the value 60 if it allows leap-seconds.
360 },
361 },
362 ],
363 },
364 },
365 ],
366 },
367 ],
368 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
369 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
370 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal.
371 # This will generally be stored in a granularity of a second.
372 # A value is not required for Private Auction deals or Preferred Deals.
373 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal.
374 #
375 # Note: This field may be set only when creating the resource. Modifying
376 # this field while updating the resource will result in an error.
377 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created.
378 #
379 # Note: This field may be set only when creating the resource. Modifying
380 # this field while updating the resource will result in an error.
381 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
382 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
383 # deal.
384 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700385 # If present on create, and the server `product_revision` has advanced sinced
386 # the passed-in `create_product_revision`, an `ABORTED` error will be
387 # returned.
388 #
389 # Note: This field may be set only when creating the resource. Modifying
390 # this field while updating the resource will result in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700391 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
392 { # Contains information on how a buyer or seller can be reached.
393 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
394 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
395 },
396 ],
397 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700398 # This will generally be stored in the granularity of one second since deal
399 # serving starts at seconds boundary. Any time specified with more
400 # granularity (e.g., in milliseconds) will be truncated towards the start of
401 # time in seconds.
Bu Sun Kim65020912020-05-20 12:08:20 -0700402 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
403 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things # The negotiable terms of the deal.
404 # like price per buyer, the type of pricing model (e.g., fixed price, auction)
405 # and expected impressions from the publisher.
406 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
407 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via # The terms for non-guaranteed fixed price deals.
408 # the API at this time, but can be returned in a get or list request.
409 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
410 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
411 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
412 # a particular buyer or buyer/advertiser pair, we look for the most specific
413 # matching rule - we first look for a rule matching the buyer and advertiser,
414 # next a rule with the buyer but an empty advertiser list, and otherwise look
415 # for a matching rule where no buyer is set.
416 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
417 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
418 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
419 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
420 # The value must be between -999,999,999 and +999,999,999 inclusive.
421 # If `units` is positive, `nanos` must be positive or zero.
422 # If `units` is zero, `nanos` can be positive, zero, or negative.
423 # If `units` is negative, `nanos` must be negative or zero.
424 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
425 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
426 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
427 },
428 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
429 },
430 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
431 # If empty, all advertisers with this buyer pay this price.
432 &quot;A String&quot;,
433 ],
434 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
435 # (if the
436 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
437 # Authorized Buyers account ID.
438 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
439 },
440 },
441 ],
442 },
443 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day.
444 # Can be set by buyer or seller.
445 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only # The terms for non-guaranteed auction deals.
446 # by the seller, but they can be returned in a get or list request.
447 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers
448 # in this private auction.
449 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
450 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
451 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
452 # a particular buyer or buyer/advertiser pair, we look for the most specific
453 # matching rule - we first look for a rule matching the buyer and advertiser,
454 # next a rule with the buyer but an empty advertiser list, and otherwise look
455 # for a matching rule where no buyer is set.
456 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
457 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
458 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
459 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
460 # The value must be between -999,999,999 and +999,999,999 inclusive.
461 # If `units` is positive, `nanos` must be positive or zero.
462 # If `units` is zero, `nanos` can be positive, zero, or negative.
463 # If `units` is negative, `nanos` must be negative or zero.
464 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
465 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
466 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
467 },
468 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
469 },
470 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
471 # If empty, all advertisers with this buyer pay this price.
472 &quot;A String&quot;,
473 ],
474 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
475 # (if the
476 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
477 # Authorized Buyers account ID.
478 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
479 },
480 },
481 ],
482 },
483 &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.
484 # Can be set by buyer or seller.
485 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
486 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
487 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
488 # The value must be between -999,999,999 and +999,999,999 inclusive.
489 # If `units` is positive, `nanos` must be positive or zero.
490 # If `units` is zero, `nanos` can be positive, zero, or negative.
491 # If `units` is negative, `nanos` must be negative or zero.
492 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
493 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
494 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
495 },
496 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
497 },
498 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
499 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the
500 # time zone used to mark the boundaries of a day. It should be an
501 # IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information,
502 # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
503 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
504 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage
505 # of guaranteed looks that the buyer is guaranteeing to buy.
506 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
507 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
508 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
509 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
510 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
511 # a particular buyer or buyer/advertiser pair, we look for the most specific
512 # matching rule - we first look for a rule matching the buyer and advertiser,
513 # next a rule with the buyer but an empty advertiser list, and otherwise look
514 # for a matching rule where no buyer is set.
515 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
516 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
517 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
518 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
519 # The value must be between -999,999,999 and +999,999,999 inclusive.
520 # If `units` is positive, `nanos` must be positive or zero.
521 # If `units` is zero, `nanos` can be positive, zero, or negative.
522 # If `units` is negative, `nanos` must be negative or zero.
523 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
524 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
525 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
526 },
527 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
528 },
529 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
530 # If empty, all advertisers with this buyer pay this price.
531 &quot;A String&quot;,
532 ],
533 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
534 # (if the
535 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
536 # Authorized Buyers account ID.
537 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
538 },
539 },
540 ],
541 },
542 },
543 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700544 # target ad inventory. For example, they can choose to target ad requests only
545 # if the user is in the US.
546 # Multiple types of targeting are always applied as a logical AND, unless noted
547 # otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -0700548 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # Geo criteria IDs to be included/excluded.
549 # included and excluded numeric IDs.
550 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
551 &quot;A String&quot;,
552 ],
553 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
554 &quot;A String&quot;,
555 ],
556 },
557 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad # Inventory sizes to be included/excluded.
558 # request. It only applies to Private Auction, AdX Preferred Deals and
559 # Auction Packages. This targeting does not apply to Programmatic Guaranteed
560 # and Preferred Deals in Ad Manager.
561 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
562 { # Represents size of a single ad slot, or a creative.
563 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
564 # This field will be present only when size type is `PIXEL`.
565 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
566 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
567 # This field will be present only when size type is `PIXEL`.
568 },
569 ],
570 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
571 { # Represents size of a single ad slot, or a creative.
572 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
573 # This field will be present only when size type is `PIXEL`.
574 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
575 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
576 # This field will be present only when size type is `PIXEL`.
577 },
578 ],
579 },
580 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
581 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included.
582 # When the included list is present, the excluded list must be empty.
583 # When the excluded list is present, the included list must be empty.
584 &quot;A String&quot;,
585 ],
586 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded.
587 # Position types can either be included or excluded (XOR).
588 &quot;A String&quot;,
589 ],
590 },
591 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
592 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device capabilities to be included/excluded.
593 # included and excluded numeric IDs.
594 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
595 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700596 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700597 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
598 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700599 ],
600 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700601 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
602 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating systems to be included/excluded.
603 # included and excluded numeric IDs.
604 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
605 &quot;A String&quot;,
606 ],
607 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
608 &quot;A String&quot;,
609 ],
610 },
611 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating system versions to be included/excluded.
612 # included and excluded numeric IDs.
613 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
614 &quot;A String&quot;,
615 ],
616 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
617 &quot;A String&quot;,
618 ],
619 },
620 },
621 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device categories to be included/excluded.
622 # included and excluded numeric IDs.
623 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
624 &quot;A String&quot;,
625 ],
626 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
627 &quot;A String&quot;,
628 ],
629 },
630 },
631 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or # Placement targeting information, e.g., URL, mobile applications.
632 # mobile applications.
633 # Different placement targeting types will be logically OR&#x27;ed.
634 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). # URLs to be included/excluded.
635 # For Private Auction and AdX Preferred Deals, URLs are either included or
636 # excluded.
637 # For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t
638 # apply.
639 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
640 &quot;A String&quot;,
641 ],
642 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
643 &quot;A String&quot;,
644 ],
645 },
646 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal.
647 # This doesn&#x27;t apply to Auction Packages.
648 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that # Publisher owned apps to be targeted or excluded by the publisher to
Dan O'Mearadd494642020-05-01 07:42:23 -0700649 # display the ads in.
650 # publishers own.
651 # Mobile application IDs are from App Store and Google Play Store.
652 # Android App ID, for example, com.google.android.apps.maps, can be found in
653 # Google Play Store URL.
654 # iOS App ID (which is a number) can be found at the end of iTunes store URL.
655 # First party mobile applications is either included or excluded.
Bu Sun Kim65020912020-05-20 12:08:20 -0700656 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
657 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700658 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700659 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
660 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700661 ],
662 },
663 },
664 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700665 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700666 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
667 &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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700668 # to see but are non-negotiable. These are set by the publisher.
Bu Sun Kim65020912020-05-20 12:08:20 -0700669 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
670 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700671 { # Frequency cap.
Bu Sun Kim65020912020-05-20 12:08:20 -0700672 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700673 # amount of time over which impressions per user are counted and capped.
Bu Sun Kim65020912020-05-20 12:08:20 -0700674 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700675 # specified time period.
Bu Sun Kim65020912020-05-20 12:08:20 -0700676 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over
677 # which impressions per user are counted and capped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700678 },
679 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700680 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700681 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700682 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is
683 # finalized. This is the deal ID that shows up in serving/reporting etc.
684 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ # Output only. Restricitions about the creatives associated with the deal
Dan O'Mearadd494642020-05-01 07:42:23 -0700685 # (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals
686 # in Ad Manager.
687 # Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -0700688 # This doesn&#x27;t apply to Private Auction and AdX Preferred Deals.
689 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
690 &quot;creativeSpecifications&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700691 { # Represents information for a creative that is associated with a Programmatic
692 # Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -0700693 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
694 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -0700695 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700696 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
697 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -0700698 # This field will be present only when size type is `PIXEL`.
699 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700700 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
Dan O'Mearadd494642020-05-01 07:42:23 -0700701 { # Represents size of a single ad slot, or a creative.
Bu Sun Kim65020912020-05-20 12:08:20 -0700702 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -0700703 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700704 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
705 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -0700706 # This field will be present only when size type is `PIXEL`.
707 },
708 ],
709 },
710 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700711 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
Dan O'Mearadd494642020-05-01 07:42:23 -0700712 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700713 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
714 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. # Output only. Tracks which parties (if any) have paused a deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700715 # The deal is considered paused if either hasBuyerPaused or
716 # hasSellPaused is true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700717 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
718 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
719 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
720 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
721 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700722 },
723 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700724 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700725 },
726 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700727 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -0700728 # Each update to the proposal or the deal causes the proposal revision number
729 # to auto-increment. The buyer keeps track of the last revision number they
730 # know of and pass it in when making an update. If the head revision number
731 # on the server has since incremented, then an ABORTED error is returned
732 # during the update operation to let the buyer know that a subsequent update
733 # was made.
Bu Sun Kim65020912020-05-20 12:08:20 -0700734 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique # Reference to the seller on the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -0700735 #
736 # Note: This field may be set only when creating the resource. Modifying
737 # this field while updating the resource will result in an error.
738 # Ad Manager account ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700739 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
740 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700741 # The seller account ID is then available to buyer in the product.
742 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700743 }</pre>
744</div>
745
746<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700747 <code class="details" id="addNote">addNote(accountId, proposalId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700748 <pre>Create a new note and attach it to the proposal. The note is assigned
749a unique ID by the server.
750The proposal revision number will not increase when associated with a
751new note.
752
753Args:
754 accountId: string, Account ID of the buyer. (required)
755 proposalId: string, The ID of the proposal to attach the note to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700756 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700757 The object takes the form of:
758
759{ # Request message for adding a note to a given proposal.
Bu Sun Kim65020912020-05-20 12:08:20 -0700760 &quot;note&quot;: { # A proposal may be associated to several notes. # Details of the note to add.
761 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700762 # (max-length: 1024 unicode code units)
763 #
764 # Note: This field may be set only when creating the resource. Modifying
765 # this field while updating the resource will result in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700766 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
767 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
768 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
769 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700770 },
771 }
772
773 x__xgafv: string, V1 error format.
774 Allowed values
775 1 - v1 error format
776 2 - v2 error format
777
778Returns:
779 An object of the form:
780
781 { # A proposal may be associated to several notes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700782 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700783 # (max-length: 1024 unicode code units)
784 #
785 # Note: This field may be set only when creating the resource. Modifying
786 # this field while updating the resource will result in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700787 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
788 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
789 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
790 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700791 }</pre>
792</div>
793
794<div class="method">
795 <code class="details" id="cancelNegotiation">cancelNegotiation(accountId, proposalId, body=None, x__xgafv=None)</code>
796 <pre>Cancel an ongoing negotiation on a proposal. This does not cancel or end
797serving for the deals if the proposal has been finalized, but only cancels
798a negotiation unilaterally.
799
800Args:
801 accountId: string, Account ID of the buyer. (required)
802 proposalId: string, The ID of the proposal to cancel negotiation for. (required)
803 body: object, The request body.
804 The object takes the form of:
805
806{ # Request to cancel an ongoing negotiation.
807 }
808
809 x__xgafv: string, V1 error format.
810 Allowed values
811 1 - v1 error format
812 2 - v2 error format
813
814Returns:
815 An object of the form:
816
817 { # Note: this resource requires whitelisting for access. Please contact your
818 # account manager for access to Marketplace resources.
819 #
820 # Represents a proposal in the Marketplace. A proposal is the unit of
821 # negotiation between a seller and a buyer and contains deals which
822 # are served.
823 #
824 # Note: you can not update, create, or otherwise modify Private
825 # Auction or Preferred Deals deals through the API.
826 #
827 # Fields are updatable unless noted otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -0700828 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Reference to the buyer on the proposal.
829 #
830 # Note: This field may be set only when creating the resource. Modifying
831 # this field while updating the resource will result in an error.
832 # Authorized Buyers account ID.
833 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
834 },
835 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
836 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
837 { # A proposal may be associated to several notes.
838 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach.
839 # (max-length: 1024 unicode code units)
840 #
841 # Note: This field may be set only when creating the resource. Modifying
842 # this field while updating the resource will result in an error.
843 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
844 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
845 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
846 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
847 },
848 ],
849 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
850 # proposal.
851 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
852 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
853 { # Contains information on how a buyer or seller can be reached.
854 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
855 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
856 },
857 ],
858 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction
859 # proposal.
860 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
861 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or
862 # left a comment.
863 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
864 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
865 # operations (max-length: 1024 unicode code units).
866 },
867 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
868 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
869 { # Contains information on how a buyer or seller can be reached.
870 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
871 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
872 },
873 ],
874 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Output only. Reference to the buyer that will get billed for this proposal.
875 # Authorized Buyers account ID.
876 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
877 },
878 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
879 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
880 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700881 # (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
882 { # A deal represents a segment of inventory for displaying ads on.
883 # A proposal can contain multiple deals. A deal contains the terms and
884 # targeting information that is used for serving.
Bu Sun Kim65020912020-05-20 12:08:20 -0700885 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals.
886 # PUBLISHER means creative is provided by seller and ADVERTISER means
887 # creative is provided by buyer.
888 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
889 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
890 # operations (max-length: 1024 unicode code units).
891 },
892 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
893 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
894 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
895 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared
896 # targeting entity is AND&#x27;d together.
897 { # Advertisers can target different attributes of an ad slot. For example,
898 # they can choose to show ads only if the user is in the U.S. Such
899 # targeting criteria can be specified as part of Shared Targeting.
900 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d
901 # together.
902 { # A polymorphic targeting value used as part of Shared Targeting.
903 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
904 # Filled in when key = GOOG_CREATIVE_SIZE
905 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
906 # of the creative
907 # height depend on the type of the targeting.
908 &quot;height&quot;: 42, # The height of the creative.
909 &quot;width&quot;: 42, # The width of the creative
910 },
911 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
912 # If this repeated field is empty then all formats are allowed.
913 # For example, if this field contains AllowedFormatType.AUDIO then the
914 # publisher only allows an audio ad (without any video).
915 &quot;A String&quot;,
916 ],
917 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
918 # Companion sizes may be filled in only when creative_size_type = VIDEO
919 { # Message depicting the size of the creative. The units of width and
920 # height depend on the type of the targeting.
921 &quot;height&quot;: 42, # The height of the creative.
922 &quot;width&quot;: 42, # The width of the creative
923 },
924 ],
925 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
926 # creative_size_type = CreativeSizeType.VIDEO.
927 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
928 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
929 # only if creative_size_type = CreativeSizeType.NATIVE.
930 },
931 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
932 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
933 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
934 # Filled in when the key is GOOG_DAYPART_TARGETING.
935 # The definition of this targeting is derived from the structure
936 # used by Ad Manager.
937 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
938 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
939 { # Daypart targeting message that specifies if the ad can be shown
940 # only during certain parts of a day/week.
941 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
942 # The start time is inclusive.
943 # This field is not available for filtering in PQL queries.
944 # or are specified elsewhere. An API may choose to allow leap seconds. Related
945 # types are google.type.Date and `google.protobuf.Timestamp`.
946 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
947 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
948 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
949 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
950 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
951 # allow the value 60 if it allows leap-seconds.
952 },
953 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
954 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
955 # granularity). The end time is exclusive. This field is not available
956 # for filtering in PQL queries.
957 # or are specified elsewhere. An API may choose to allow leap seconds. Related
958 # types are google.type.Date and `google.protobuf.Timestamp`.
959 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
960 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
961 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
962 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
963 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
964 # allow the value 60 if it allows leap-seconds.
965 },
966 },
967 ],
968 },
969 },
970 ],
971 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion.
972 # Targeting criteria defined by Google ad servers will begin with GOOG_.
973 # Third parties may define their own keys.
974 # A list of permissible keys along with the acceptable values will be
975 # provided as part of the external documentation.
976 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d
977 # together.
978 { # A polymorphic targeting value used as part of Shared Targeting.
979 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
980 # Filled in when key = GOOG_CREATIVE_SIZE
981 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
982 # of the creative
983 # height depend on the type of the targeting.
984 &quot;height&quot;: 42, # The height of the creative.
985 &quot;width&quot;: 42, # The width of the creative
986 },
987 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
988 # If this repeated field is empty then all formats are allowed.
989 # For example, if this field contains AllowedFormatType.AUDIO then the
990 # publisher only allows an audio ad (without any video).
991 &quot;A String&quot;,
992 ],
993 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
994 # Companion sizes may be filled in only when creative_size_type = VIDEO
995 { # Message depicting the size of the creative. The units of width and
996 # height depend on the type of the targeting.
997 &quot;height&quot;: 42, # The height of the creative.
998 &quot;width&quot;: 42, # The width of the creative
999 },
1000 ],
1001 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
1002 # creative_size_type = CreativeSizeType.VIDEO.
1003 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1004 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
1005 # only if creative_size_type = CreativeSizeType.NATIVE.
1006 },
1007 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1008 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1009 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
1010 # Filled in when the key is GOOG_DAYPART_TARGETING.
1011 # The definition of this targeting is derived from the structure
1012 # used by Ad Manager.
1013 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1014 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1015 { # Daypart targeting message that specifies if the ad can be shown
1016 # only during certain parts of a day/week.
1017 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
1018 # The start time is inclusive.
1019 # This field is not available for filtering in PQL queries.
1020 # or are specified elsewhere. An API may choose to allow leap seconds. Related
1021 # types are google.type.Date and `google.protobuf.Timestamp`.
1022 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1023 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
1024 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1025 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1026 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1027 # allow the value 60 if it allows leap-seconds.
1028 },
1029 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1030 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
1031 # granularity). The end time is exclusive. This field is not available
1032 # for filtering in PQL queries.
1033 # or are specified elsewhere. An API may choose to allow leap seconds. Related
1034 # types are google.type.Date and `google.protobuf.Timestamp`.
1035 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1036 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
1037 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1038 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1039 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1040 # allow the value 60 if it allows leap-seconds.
1041 },
1042 },
1043 ],
1044 },
1045 },
1046 ],
1047 },
1048 ],
1049 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
1050 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
1051 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal.
1052 # This will generally be stored in a granularity of a second.
1053 # A value is not required for Private Auction deals or Preferred Deals.
1054 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal.
1055 #
1056 # Note: This field may be set only when creating the resource. Modifying
1057 # this field while updating the resource will result in an error.
1058 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created.
1059 #
1060 # Note: This field may be set only when creating the resource. Modifying
1061 # this field while updating the resource will result in an error.
1062 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
1063 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
1064 # deal.
1065 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001066 # If present on create, and the server `product_revision` has advanced sinced
1067 # the passed-in `create_product_revision`, an `ABORTED` error will be
1068 # returned.
1069 #
1070 # Note: This field may be set only when creating the resource. Modifying
1071 # this field while updating the resource will result in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07001072 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
1073 { # Contains information on how a buyer or seller can be reached.
1074 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1075 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1076 },
1077 ],
1078 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001079 # This will generally be stored in the granularity of one second since deal
1080 # serving starts at seconds boundary. Any time specified with more
1081 # granularity (e.g., in milliseconds) will be truncated towards the start of
1082 # time in seconds.
Bu Sun Kim65020912020-05-20 12:08:20 -07001083 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
1084 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things # The negotiable terms of the deal.
1085 # like price per buyer, the type of pricing model (e.g., fixed price, auction)
1086 # and expected impressions from the publisher.
1087 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
1088 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via # The terms for non-guaranteed fixed price deals.
1089 # the API at this time, but can be returned in a get or list request.
1090 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1091 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
1092 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
1093 # a particular buyer or buyer/advertiser pair, we look for the most specific
1094 # matching rule - we first look for a rule matching the buyer and advertiser,
1095 # next a rule with the buyer but an empty advertiser list, and otherwise look
1096 # for a matching rule where no buyer is set.
1097 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1098 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1099 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
1100 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
1101 # The value must be between -999,999,999 and +999,999,999 inclusive.
1102 # If `units` is positive, `nanos` must be positive or zero.
1103 # If `units` is zero, `nanos` can be positive, zero, or negative.
1104 # If `units` is negative, `nanos` must be negative or zero.
1105 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1106 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
1107 # 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 },
1111 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
1112 # If empty, all advertisers with this buyer pay this price.
1113 &quot;A String&quot;,
1114 ],
1115 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
1116 # (if the
1117 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
1118 # Authorized Buyers account ID.
1119 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1120 },
1121 },
1122 ],
1123 },
1124 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day.
1125 # Can be set by buyer or seller.
1126 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only # The terms for non-guaranteed auction deals.
1127 # by the seller, but they can be returned in a get or list request.
1128 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers
1129 # in this private auction.
1130 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
1131 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
1132 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
1133 # a particular buyer or buyer/advertiser pair, we look for the most specific
1134 # matching rule - we first look for a rule matching the buyer and advertiser,
1135 # next a rule with the buyer but an empty advertiser list, and otherwise look
1136 # for a matching rule where no buyer is set.
1137 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1138 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1139 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
1140 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
1141 # The value must be between -999,999,999 and +999,999,999 inclusive.
1142 # If `units` is positive, `nanos` must be positive or zero.
1143 # If `units` is zero, `nanos` can be positive, zero, or negative.
1144 # If `units` is negative, `nanos` must be negative or zero.
1145 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1146 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
1147 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1148 },
1149 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1150 },
1151 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
1152 # If empty, all advertisers with this buyer pay this price.
1153 &quot;A String&quot;,
1154 ],
1155 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
1156 # (if the
1157 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
1158 # Authorized Buyers account ID.
1159 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1160 },
1161 },
1162 ],
1163 },
1164 &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.
1165 # Can be set by buyer or seller.
1166 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1167 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
1168 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
1169 # The value must be between -999,999,999 and +999,999,999 inclusive.
1170 # If `units` is positive, `nanos` must be positive or zero.
1171 # If `units` is zero, `nanos` can be positive, zero, or negative.
1172 # If `units` is negative, `nanos` must be negative or zero.
1173 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1174 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
1175 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1176 },
1177 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1178 },
1179 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
1180 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the
1181 # time zone used to mark the boundaries of a day. It should be an
1182 # IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information,
1183 # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
1184 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
1185 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage
1186 # of guaranteed looks that the buyer is guaranteeing to buy.
1187 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
1188 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
1189 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1190 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
1191 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
1192 # a particular buyer or buyer/advertiser pair, we look for the most specific
1193 # matching rule - we first look for a rule matching the buyer and advertiser,
1194 # next a rule with the buyer but an empty advertiser list, and otherwise look
1195 # for a matching rule where no buyer is set.
1196 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1197 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1198 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
1199 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
1200 # The value must be between -999,999,999 and +999,999,999 inclusive.
1201 # If `units` is positive, `nanos` must be positive or zero.
1202 # If `units` is zero, `nanos` can be positive, zero, or negative.
1203 # If `units` is negative, `nanos` must be negative or zero.
1204 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1205 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
1206 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1207 },
1208 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1209 },
1210 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
1211 # If empty, all advertisers with this buyer pay this price.
1212 &quot;A String&quot;,
1213 ],
1214 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
1215 # (if the
1216 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
1217 # Authorized Buyers account ID.
1218 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1219 },
1220 },
1221 ],
1222 },
1223 },
1224 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001225 # target ad inventory. For example, they can choose to target ad requests only
1226 # if the user is in the US.
1227 # Multiple types of targeting are always applied as a logical AND, unless noted
1228 # otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07001229 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # Geo criteria IDs to be included/excluded.
1230 # included and excluded numeric IDs.
1231 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1232 &quot;A String&quot;,
1233 ],
1234 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1235 &quot;A String&quot;,
1236 ],
1237 },
1238 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad # Inventory sizes to be included/excluded.
1239 # request. It only applies to Private Auction, AdX Preferred Deals and
1240 # Auction Packages. This targeting does not apply to Programmatic Guaranteed
1241 # and Preferred Deals in Ad Manager.
1242 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
1243 { # Represents size of a single ad slot, or a creative.
1244 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
1245 # This field will be present only when size type is `PIXEL`.
1246 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1247 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
1248 # This field will be present only when size type is `PIXEL`.
1249 },
1250 ],
1251 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
1252 { # Represents size of a single ad slot, or a creative.
1253 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
1254 # This field will be present only when size type is `PIXEL`.
1255 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1256 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
1257 # This field will be present only when size type is `PIXEL`.
1258 },
1259 ],
1260 },
1261 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
1262 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included.
1263 # When the included list is present, the excluded list must be empty.
1264 # When the excluded list is present, the included list must be empty.
1265 &quot;A String&quot;,
1266 ],
1267 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded.
1268 # Position types can either be included or excluded (XOR).
1269 &quot;A String&quot;,
1270 ],
1271 },
1272 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
1273 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device capabilities to be included/excluded.
1274 # included and excluded numeric IDs.
1275 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1276 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001277 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001278 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1279 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001280 ],
1281 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001282 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
1283 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating systems to be included/excluded.
1284 # included and excluded numeric IDs.
1285 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1286 &quot;A String&quot;,
1287 ],
1288 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1289 &quot;A String&quot;,
1290 ],
1291 },
1292 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating system versions to be included/excluded.
1293 # included and excluded numeric IDs.
1294 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1295 &quot;A String&quot;,
1296 ],
1297 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1298 &quot;A String&quot;,
1299 ],
1300 },
1301 },
1302 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device categories to be included/excluded.
1303 # included and excluded numeric IDs.
1304 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1305 &quot;A String&quot;,
1306 ],
1307 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1308 &quot;A String&quot;,
1309 ],
1310 },
1311 },
1312 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or # Placement targeting information, e.g., URL, mobile applications.
1313 # mobile applications.
1314 # Different placement targeting types will be logically OR&#x27;ed.
1315 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). # URLs to be included/excluded.
1316 # For Private Auction and AdX Preferred Deals, URLs are either included or
1317 # excluded.
1318 # For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t
1319 # apply.
1320 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
1321 &quot;A String&quot;,
1322 ],
1323 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
1324 &quot;A String&quot;,
1325 ],
1326 },
1327 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal.
1328 # This doesn&#x27;t apply to Auction Packages.
1329 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that # Publisher owned apps to be targeted or excluded by the publisher to
Dan O'Mearadd494642020-05-01 07:42:23 -07001330 # display the ads in.
1331 # publishers own.
1332 # Mobile application IDs are from App Store and Google Play Store.
1333 # Android App ID, for example, com.google.android.apps.maps, can be found in
1334 # Google Play Store URL.
1335 # iOS App ID (which is a number) can be found at the end of iTunes store URL.
1336 # First party mobile applications is either included or excluded.
Bu Sun Kim65020912020-05-20 12:08:20 -07001337 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
1338 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001339 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001340 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
1341 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001342 ],
1343 },
1344 },
1345 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001346 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001347 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
1348 &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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001349 # to see but are non-negotiable. These are set by the publisher.
Bu Sun Kim65020912020-05-20 12:08:20 -07001350 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
1351 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001352 { # Frequency cap.
Bu Sun Kim65020912020-05-20 12:08:20 -07001353 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001354 # amount of time over which impressions per user are counted and capped.
Bu Sun Kim65020912020-05-20 12:08:20 -07001355 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001356 # specified time period.
Bu Sun Kim65020912020-05-20 12:08:20 -07001357 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over
1358 # which impressions per user are counted and capped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001359 },
1360 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001361 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001362 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001363 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is
1364 # finalized. This is the deal ID that shows up in serving/reporting etc.
1365 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ # Output only. Restricitions about the creatives associated with the deal
Dan O'Mearadd494642020-05-01 07:42:23 -07001366 # (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals
1367 # in Ad Manager.
1368 # Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07001369 # This doesn&#x27;t apply to Private Auction and AdX Preferred Deals.
1370 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
1371 &quot;creativeSpecifications&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -07001372 { # Represents information for a creative that is associated with a Programmatic
1373 # Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07001374 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
1375 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07001376 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001377 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1378 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07001379 # This field will be present only when size type is `PIXEL`.
1380 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001381 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
Dan O'Mearadd494642020-05-01 07:42:23 -07001382 { # Represents size of a single ad slot, or a creative.
Bu Sun Kim65020912020-05-20 12:08:20 -07001383 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07001384 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001385 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1386 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07001387 # This field will be present only when size type is `PIXEL`.
1388 },
1389 ],
1390 },
1391 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001392 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
Dan O'Mearadd494642020-05-01 07:42:23 -07001393 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001394 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
1395 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. # Output only. Tracks which parties (if any) have paused a deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001396 # The deal is considered paused if either hasBuyerPaused or
1397 # hasSellPaused is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001398 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
1399 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
1400 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
1401 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
1402 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001403 },
1404 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001405 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001406 },
1407 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001408 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07001409 # Each update to the proposal or the deal causes the proposal revision number
1410 # to auto-increment. The buyer keeps track of the last revision number they
1411 # know of and pass it in when making an update. If the head revision number
1412 # on the server has since incremented, then an ABORTED error is returned
1413 # during the update operation to let the buyer know that a subsequent update
1414 # was made.
Bu Sun Kim65020912020-05-20 12:08:20 -07001415 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique # Reference to the seller on the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07001416 #
1417 # Note: This field may be set only when creating the resource. Modifying
1418 # this field while updating the resource will result in an error.
1419 # Ad Manager account ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07001420 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
1421 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field.
Dan O'Mearadd494642020-05-01 07:42:23 -07001422 # The seller account ID is then available to buyer in the product.
1423 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001424 }</pre>
1425</div>
1426
1427<div class="method">
1428 <code class="details" id="completeSetup">completeSetup(accountId, proposalId, body=None, x__xgafv=None)</code>
1429 <pre>Update the given proposal to indicate that setup has been completed.
1430This method is called by the buyer when the line items have been created
1431on their end for a finalized proposal and all the required creatives
1432have been uploaded using the creatives API. This call updates the
1433`is_setup_completed` bit on the proposal and also notifies the seller.
1434The server will advance the revision number of the most recent proposal.
1435
1436Args:
1437 accountId: string, Account ID of the buyer. (required)
1438 proposalId: string, The ID of the proposal to mark as setup completed. (required)
1439 body: object, The request body.
1440 The object takes the form of:
1441
Bu Sun Kim65020912020-05-20 12:08:20 -07001442{ # Request message for indicating that the proposal&#x27;s setup step is complete.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001443 }
1444
1445 x__xgafv: string, V1 error format.
1446 Allowed values
1447 1 - v1 error format
1448 2 - v2 error format
1449
1450Returns:
1451 An object of the form:
1452
1453 { # Note: this resource requires whitelisting for access. Please contact your
1454 # account manager for access to Marketplace resources.
1455 #
1456 # Represents a proposal in the Marketplace. A proposal is the unit of
1457 # negotiation between a seller and a buyer and contains deals which
1458 # are served.
1459 #
1460 # Note: you can not update, create, or otherwise modify Private
1461 # Auction or Preferred Deals deals through the API.
1462 #
1463 # Fields are updatable unless noted otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07001464 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Reference to the buyer on the proposal.
1465 #
1466 # Note: This field may be set only when creating the resource. Modifying
1467 # this field while updating the resource will result in an error.
1468 # Authorized Buyers account ID.
1469 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1470 },
1471 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
1472 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
1473 { # A proposal may be associated to several notes.
1474 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach.
1475 # (max-length: 1024 unicode code units)
1476 #
1477 # Note: This field may be set only when creating the resource. Modifying
1478 # this field while updating the resource will result in an error.
1479 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
1480 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
1481 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
1482 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
1483 },
1484 ],
1485 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
1486 # proposal.
1487 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
1488 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
1489 { # Contains information on how a buyer or seller can be reached.
1490 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1491 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1492 },
1493 ],
1494 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction
1495 # proposal.
1496 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
1497 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or
1498 # left a comment.
1499 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
1500 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
1501 # operations (max-length: 1024 unicode code units).
1502 },
1503 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
1504 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
1505 { # Contains information on how a buyer or seller can be reached.
1506 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1507 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1508 },
1509 ],
1510 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Output only. Reference to the buyer that will get billed for this proposal.
1511 # Authorized Buyers account ID.
1512 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1513 },
1514 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
1515 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
1516 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001517 # (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
1518 { # A deal represents a segment of inventory for displaying ads on.
1519 # A proposal can contain multiple deals. A deal contains the terms and
1520 # targeting information that is used for serving.
Bu Sun Kim65020912020-05-20 12:08:20 -07001521 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals.
1522 # PUBLISHER means creative is provided by seller and ADVERTISER means
1523 # creative is provided by buyer.
1524 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
1525 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
1526 # operations (max-length: 1024 unicode code units).
1527 },
1528 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
1529 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
1530 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
1531 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared
1532 # targeting entity is AND&#x27;d together.
1533 { # Advertisers can target different attributes of an ad slot. For example,
1534 # they can choose to show ads only if the user is in the U.S. Such
1535 # targeting criteria can be specified as part of Shared Targeting.
1536 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d
1537 # together.
1538 { # A polymorphic targeting value used as part of Shared Targeting.
1539 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
1540 # Filled in when key = GOOG_CREATIVE_SIZE
1541 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
1542 # of the creative
1543 # height depend on the type of the targeting.
1544 &quot;height&quot;: 42, # The height of the creative.
1545 &quot;width&quot;: 42, # The width of the creative
1546 },
1547 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
1548 # If this repeated field is empty then all formats are allowed.
1549 # For example, if this field contains AllowedFormatType.AUDIO then the
1550 # publisher only allows an audio ad (without any video).
1551 &quot;A String&quot;,
1552 ],
1553 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
1554 # Companion sizes may be filled in only when creative_size_type = VIDEO
1555 { # Message depicting the size of the creative. The units of width and
1556 # height depend on the type of the targeting.
1557 &quot;height&quot;: 42, # The height of the creative.
1558 &quot;width&quot;: 42, # The width of the creative
1559 },
1560 ],
1561 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
1562 # creative_size_type = CreativeSizeType.VIDEO.
1563 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1564 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
1565 # only if creative_size_type = CreativeSizeType.NATIVE.
1566 },
1567 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1568 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1569 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
1570 # Filled in when the key is GOOG_DAYPART_TARGETING.
1571 # The definition of this targeting is derived from the structure
1572 # used by Ad Manager.
1573 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1574 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1575 { # Daypart targeting message that specifies if the ad can be shown
1576 # only during certain parts of a day/week.
1577 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
1578 # The start time is inclusive.
1579 # This field is not available for filtering in PQL queries.
1580 # or are specified elsewhere. An API may choose to allow leap seconds. Related
1581 # types are google.type.Date and `google.protobuf.Timestamp`.
1582 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1583 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
1584 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1585 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1586 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1587 # allow the value 60 if it allows leap-seconds.
1588 },
1589 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1590 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
1591 # granularity). The end time is exclusive. This field is not available
1592 # for filtering in PQL queries.
1593 # or are specified elsewhere. An API may choose to allow leap seconds. Related
1594 # types are google.type.Date and `google.protobuf.Timestamp`.
1595 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1596 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
1597 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1598 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1599 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1600 # allow the value 60 if it allows leap-seconds.
1601 },
1602 },
1603 ],
1604 },
1605 },
1606 ],
1607 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion.
1608 # Targeting criteria defined by Google ad servers will begin with GOOG_.
1609 # Third parties may define their own keys.
1610 # A list of permissible keys along with the acceptable values will be
1611 # provided as part of the external documentation.
1612 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d
1613 # together.
1614 { # A polymorphic targeting value used as part of Shared Targeting.
1615 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
1616 # Filled in when key = GOOG_CREATIVE_SIZE
1617 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
1618 # of the creative
1619 # height depend on the type of the targeting.
1620 &quot;height&quot;: 42, # The height of the creative.
1621 &quot;width&quot;: 42, # The width of the creative
1622 },
1623 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
1624 # If this repeated field is empty then all formats are allowed.
1625 # For example, if this field contains AllowedFormatType.AUDIO then the
1626 # publisher only allows an audio ad (without any video).
1627 &quot;A String&quot;,
1628 ],
1629 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
1630 # Companion sizes may be filled in only when creative_size_type = VIDEO
1631 { # Message depicting the size of the creative. The units of width and
1632 # height depend on the type of the targeting.
1633 &quot;height&quot;: 42, # The height of the creative.
1634 &quot;width&quot;: 42, # The width of the creative
1635 },
1636 ],
1637 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
1638 # creative_size_type = CreativeSizeType.VIDEO.
1639 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1640 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
1641 # only if creative_size_type = CreativeSizeType.NATIVE.
1642 },
1643 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1644 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1645 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
1646 # Filled in when the key is GOOG_DAYPART_TARGETING.
1647 # The definition of this targeting is derived from the structure
1648 # used by Ad Manager.
1649 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1650 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1651 { # Daypart targeting message that specifies if the ad can be shown
1652 # only during certain parts of a day/week.
1653 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
1654 # The start time is inclusive.
1655 # This field is not available for filtering in PQL queries.
1656 # or are specified elsewhere. An API may choose to allow leap seconds. Related
1657 # types are google.type.Date and `google.protobuf.Timestamp`.
1658 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1659 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
1660 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1661 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1662 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1663 # allow the value 60 if it allows leap-seconds.
1664 },
1665 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1666 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
1667 # granularity). The end time is exclusive. This field is not available
1668 # for filtering in PQL queries.
1669 # or are specified elsewhere. An API may choose to allow leap seconds. Related
1670 # types are google.type.Date and `google.protobuf.Timestamp`.
1671 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1672 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
1673 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1674 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1675 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1676 # allow the value 60 if it allows leap-seconds.
1677 },
1678 },
1679 ],
1680 },
1681 },
1682 ],
1683 },
1684 ],
1685 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
1686 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
1687 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal.
1688 # This will generally be stored in a granularity of a second.
1689 # A value is not required for Private Auction deals or Preferred Deals.
1690 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal.
1691 #
1692 # Note: This field may be set only when creating the resource. Modifying
1693 # this field while updating the resource will result in an error.
1694 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created.
1695 #
1696 # Note: This field may be set only when creating the resource. Modifying
1697 # this field while updating the resource will result in an error.
1698 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
1699 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
1700 # deal.
1701 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001702 # If present on create, and the server `product_revision` has advanced sinced
1703 # the passed-in `create_product_revision`, an `ABORTED` error will be
1704 # returned.
1705 #
1706 # Note: This field may be set only when creating the resource. Modifying
1707 # this field while updating the resource will result in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07001708 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
1709 { # Contains information on how a buyer or seller can be reached.
1710 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1711 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1712 },
1713 ],
1714 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001715 # This will generally be stored in the granularity of one second since deal
1716 # serving starts at seconds boundary. Any time specified with more
1717 # granularity (e.g., in milliseconds) will be truncated towards the start of
1718 # time in seconds.
Bu Sun Kim65020912020-05-20 12:08:20 -07001719 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
1720 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things # The negotiable terms of the deal.
1721 # like price per buyer, the type of pricing model (e.g., fixed price, auction)
1722 # and expected impressions from the publisher.
1723 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
1724 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via # The terms for non-guaranteed fixed price deals.
1725 # the API at this time, but can be returned in a get or list request.
1726 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1727 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
1728 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
1729 # a particular buyer or buyer/advertiser pair, we look for the most specific
1730 # matching rule - we first look for a rule matching the buyer and advertiser,
1731 # next a rule with the buyer but an empty advertiser list, and otherwise look
1732 # for a matching rule where no buyer is set.
1733 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1734 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1735 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
1736 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
1737 # The value must be between -999,999,999 and +999,999,999 inclusive.
1738 # If `units` is positive, `nanos` must be positive or zero.
1739 # If `units` is zero, `nanos` can be positive, zero, or negative.
1740 # If `units` is negative, `nanos` must be negative or zero.
1741 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1742 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
1743 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1744 },
1745 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1746 },
1747 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
1748 # If empty, all advertisers with this buyer pay this price.
1749 &quot;A String&quot;,
1750 ],
1751 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
1752 # (if the
1753 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
1754 # Authorized Buyers account ID.
1755 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1756 },
1757 },
1758 ],
1759 },
1760 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day.
1761 # Can be set by buyer or seller.
1762 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only # The terms for non-guaranteed auction deals.
1763 # by the seller, but they can be returned in a get or list request.
1764 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers
1765 # in this private auction.
1766 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
1767 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
1768 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
1769 # a particular buyer or buyer/advertiser pair, we look for the most specific
1770 # matching rule - we first look for a rule matching the buyer and advertiser,
1771 # next a rule with the buyer but an empty advertiser list, and otherwise look
1772 # for a matching rule where no buyer is set.
1773 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1774 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1775 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
1776 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
1777 # The value must be between -999,999,999 and +999,999,999 inclusive.
1778 # If `units` is positive, `nanos` must be positive or zero.
1779 # If `units` is zero, `nanos` can be positive, zero, or negative.
1780 # If `units` is negative, `nanos` must be negative or zero.
1781 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1782 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
1783 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1784 },
1785 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1786 },
1787 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
1788 # If empty, all advertisers with this buyer pay this price.
1789 &quot;A String&quot;,
1790 ],
1791 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
1792 # (if the
1793 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
1794 # Authorized Buyers account ID.
1795 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1796 },
1797 },
1798 ],
1799 },
1800 &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.
1801 # Can be set by buyer or seller.
1802 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1803 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
1804 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
1805 # The value must be between -999,999,999 and +999,999,999 inclusive.
1806 # If `units` is positive, `nanos` must be positive or zero.
1807 # If `units` is zero, `nanos` can be positive, zero, or negative.
1808 # If `units` is negative, `nanos` must be negative or zero.
1809 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1810 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
1811 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1812 },
1813 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1814 },
1815 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
1816 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the
1817 # time zone used to mark the boundaries of a day. It should be an
1818 # IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information,
1819 # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
1820 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
1821 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage
1822 # of guaranteed looks that the buyer is guaranteeing to buy.
1823 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
1824 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
1825 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1826 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
1827 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
1828 # a particular buyer or buyer/advertiser pair, we look for the most specific
1829 # matching rule - we first look for a rule matching the buyer and advertiser,
1830 # next a rule with the buyer but an empty advertiser list, and otherwise look
1831 # for a matching rule where no buyer is set.
1832 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1833 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1834 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
1835 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
1836 # The value must be between -999,999,999 and +999,999,999 inclusive.
1837 # If `units` is positive, `nanos` must be positive or zero.
1838 # If `units` is zero, `nanos` can be positive, zero, or negative.
1839 # If `units` is negative, `nanos` must be negative or zero.
1840 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1841 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
1842 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1843 },
1844 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1845 },
1846 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
1847 # If empty, all advertisers with this buyer pay this price.
1848 &quot;A String&quot;,
1849 ],
1850 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
1851 # (if the
1852 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
1853 # Authorized Buyers account ID.
1854 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1855 },
1856 },
1857 ],
1858 },
1859 },
1860 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001861 # target ad inventory. For example, they can choose to target ad requests only
1862 # if the user is in the US.
1863 # Multiple types of targeting are always applied as a logical AND, unless noted
1864 # otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07001865 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # Geo criteria IDs to be included/excluded.
1866 # included and excluded numeric IDs.
1867 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1868 &quot;A String&quot;,
1869 ],
1870 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1871 &quot;A String&quot;,
1872 ],
1873 },
1874 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad # Inventory sizes to be included/excluded.
1875 # request. It only applies to Private Auction, AdX Preferred Deals and
1876 # Auction Packages. This targeting does not apply to Programmatic Guaranteed
1877 # and Preferred Deals in Ad Manager.
1878 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
1879 { # Represents size of a single ad slot, or a creative.
1880 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
1881 # This field will be present only when size type is `PIXEL`.
1882 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1883 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
1884 # This field will be present only when size type is `PIXEL`.
1885 },
1886 ],
1887 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
1888 { # Represents size of a single ad slot, or a creative.
1889 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
1890 # This field will be present only when size type is `PIXEL`.
1891 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1892 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
1893 # This field will be present only when size type is `PIXEL`.
1894 },
1895 ],
1896 },
1897 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
1898 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included.
1899 # When the included list is present, the excluded list must be empty.
1900 # When the excluded list is present, the included list must be empty.
1901 &quot;A String&quot;,
1902 ],
1903 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded.
1904 # Position types can either be included or excluded (XOR).
1905 &quot;A String&quot;,
1906 ],
1907 },
1908 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
1909 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device capabilities to be included/excluded.
1910 # included and excluded numeric IDs.
1911 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1912 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001913 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001914 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1915 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001916 ],
1917 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001918 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
1919 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating systems to be included/excluded.
1920 # included and excluded numeric IDs.
1921 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1922 &quot;A String&quot;,
1923 ],
1924 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1925 &quot;A String&quot;,
1926 ],
1927 },
1928 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating system versions to be included/excluded.
1929 # included and excluded numeric IDs.
1930 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1931 &quot;A String&quot;,
1932 ],
1933 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1934 &quot;A String&quot;,
1935 ],
1936 },
1937 },
1938 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device categories to be included/excluded.
1939 # included and excluded numeric IDs.
1940 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1941 &quot;A String&quot;,
1942 ],
1943 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1944 &quot;A String&quot;,
1945 ],
1946 },
1947 },
1948 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or # Placement targeting information, e.g., URL, mobile applications.
1949 # mobile applications.
1950 # Different placement targeting types will be logically OR&#x27;ed.
1951 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). # URLs to be included/excluded.
1952 # For Private Auction and AdX Preferred Deals, URLs are either included or
1953 # excluded.
1954 # For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t
1955 # apply.
1956 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
1957 &quot;A String&quot;,
1958 ],
1959 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
1960 &quot;A String&quot;,
1961 ],
1962 },
1963 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal.
1964 # This doesn&#x27;t apply to Auction Packages.
1965 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that # Publisher owned apps to be targeted or excluded by the publisher to
Dan O'Mearadd494642020-05-01 07:42:23 -07001966 # display the ads in.
1967 # publishers own.
1968 # Mobile application IDs are from App Store and Google Play Store.
1969 # Android App ID, for example, com.google.android.apps.maps, can be found in
1970 # Google Play Store URL.
1971 # iOS App ID (which is a number) can be found at the end of iTunes store URL.
1972 # First party mobile applications is either included or excluded.
Bu Sun Kim65020912020-05-20 12:08:20 -07001973 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
1974 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001975 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001976 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
1977 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001978 ],
1979 },
1980 },
1981 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001982 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001983 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
1984 &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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001985 # to see but are non-negotiable. These are set by the publisher.
Bu Sun Kim65020912020-05-20 12:08:20 -07001986 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
1987 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001988 { # Frequency cap.
Bu Sun Kim65020912020-05-20 12:08:20 -07001989 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001990 # amount of time over which impressions per user are counted and capped.
Bu Sun Kim65020912020-05-20 12:08:20 -07001991 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001992 # specified time period.
Bu Sun Kim65020912020-05-20 12:08:20 -07001993 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over
1994 # which impressions per user are counted and capped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001995 },
1996 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001997 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001998 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001999 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is
2000 # finalized. This is the deal ID that shows up in serving/reporting etc.
2001 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ # Output only. Restricitions about the creatives associated with the deal
Dan O'Mearadd494642020-05-01 07:42:23 -07002002 # (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals
2003 # in Ad Manager.
2004 # Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07002005 # This doesn&#x27;t apply to Private Auction and AdX Preferred Deals.
2006 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
2007 &quot;creativeSpecifications&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -07002008 { # Represents information for a creative that is associated with a Programmatic
2009 # Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07002010 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
2011 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07002012 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002013 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2014 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07002015 # This field will be present only when size type is `PIXEL`.
2016 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002017 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
Dan O'Mearadd494642020-05-01 07:42:23 -07002018 { # Represents size of a single ad slot, or a creative.
Bu Sun Kim65020912020-05-20 12:08:20 -07002019 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07002020 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002021 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2022 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07002023 # This field will be present only when size type is `PIXEL`.
2024 },
2025 ],
2026 },
2027 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002028 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
Dan O'Mearadd494642020-05-01 07:42:23 -07002029 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002030 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
2031 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. # Output only. Tracks which parties (if any) have paused a deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002032 # The deal is considered paused if either hasBuyerPaused or
2033 # hasSellPaused is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07002034 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
2035 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
2036 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
2037 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
2038 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002039 },
2040 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002041 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002042 },
2043 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002044 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07002045 # Each update to the proposal or the deal causes the proposal revision number
2046 # to auto-increment. The buyer keeps track of the last revision number they
2047 # know of and pass it in when making an update. If the head revision number
2048 # on the server has since incremented, then an ABORTED error is returned
2049 # during the update operation to let the buyer know that a subsequent update
2050 # was made.
Bu Sun Kim65020912020-05-20 12:08:20 -07002051 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique # Reference to the seller on the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07002052 #
2053 # Note: This field may be set only when creating the resource. Modifying
2054 # this field while updating the resource will result in an error.
2055 # Ad Manager account ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07002056 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
2057 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field.
Dan O'Mearadd494642020-05-01 07:42:23 -07002058 # The seller account ID is then available to buyer in the product.
2059 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002060 }</pre>
2061</div>
2062
2063<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002064 <code class="details" id="create">create(accountId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002065 <pre>Create the given proposal. Each created proposal and any deals it contains
2066are assigned a unique ID by the server.
2067
2068Args:
2069 accountId: string, Account ID of the buyer. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002070 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002071 The object takes the form of:
2072
2073{ # Note: this resource requires whitelisting for access. Please contact your
2074 # account manager for access to Marketplace resources.
2075 #
2076 # Represents a proposal in the Marketplace. A proposal is the unit of
2077 # negotiation between a seller and a buyer and contains deals which
2078 # are served.
2079 #
2080 # Note: you can not update, create, or otherwise modify Private
2081 # Auction or Preferred Deals deals through the API.
2082 #
2083 # Fields are updatable unless noted otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07002084 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Reference to the buyer on the proposal.
2085 #
2086 # Note: This field may be set only when creating the resource. Modifying
2087 # this field while updating the resource will result in an error.
2088 # Authorized Buyers account ID.
2089 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2090 },
2091 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
2092 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
2093 { # A proposal may be associated to several notes.
2094 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach.
2095 # (max-length: 1024 unicode code units)
2096 #
2097 # Note: This field may be set only when creating the resource. Modifying
2098 # this field while updating the resource will result in an error.
2099 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
2100 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
2101 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
2102 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
2103 },
2104 ],
2105 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
2106 # proposal.
2107 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
2108 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
2109 { # Contains information on how a buyer or seller can be reached.
2110 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2111 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2112 },
2113 ],
2114 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction
2115 # proposal.
2116 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
2117 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or
2118 # left a comment.
2119 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
2120 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
2121 # operations (max-length: 1024 unicode code units).
2122 },
2123 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
2124 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
2125 { # Contains information on how a buyer or seller can be reached.
2126 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2127 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2128 },
2129 ],
2130 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Output only. Reference to the buyer that will get billed for this proposal.
2131 # Authorized Buyers account ID.
2132 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2133 },
2134 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
2135 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
2136 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002137 # (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
2138 { # A deal represents a segment of inventory for displaying ads on.
2139 # A proposal can contain multiple deals. A deal contains the terms and
2140 # targeting information that is used for serving.
Bu Sun Kim65020912020-05-20 12:08:20 -07002141 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals.
2142 # PUBLISHER means creative is provided by seller and ADVERTISER means
2143 # creative is provided by buyer.
2144 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
2145 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
2146 # operations (max-length: 1024 unicode code units).
2147 },
2148 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
2149 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
2150 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
2151 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared
2152 # targeting entity is AND&#x27;d together.
2153 { # Advertisers can target different attributes of an ad slot. For example,
2154 # they can choose to show ads only if the user is in the U.S. Such
2155 # targeting criteria can be specified as part of Shared Targeting.
2156 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d
2157 # together.
2158 { # A polymorphic targeting value used as part of Shared Targeting.
2159 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
2160 # Filled in when key = GOOG_CREATIVE_SIZE
2161 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
2162 # of the creative
2163 # height depend on the type of the targeting.
2164 &quot;height&quot;: 42, # The height of the creative.
2165 &quot;width&quot;: 42, # The width of the creative
2166 },
2167 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
2168 # If this repeated field is empty then all formats are allowed.
2169 # For example, if this field contains AllowedFormatType.AUDIO then the
2170 # publisher only allows an audio ad (without any video).
2171 &quot;A String&quot;,
2172 ],
2173 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
2174 # Companion sizes may be filled in only when creative_size_type = VIDEO
2175 { # Message depicting the size of the creative. The units of width and
2176 # height depend on the type of the targeting.
2177 &quot;height&quot;: 42, # The height of the creative.
2178 &quot;width&quot;: 42, # The width of the creative
2179 },
2180 ],
2181 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
2182 # creative_size_type = CreativeSizeType.VIDEO.
2183 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2184 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
2185 # only if creative_size_type = CreativeSizeType.NATIVE.
2186 },
2187 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2188 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2189 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
2190 # Filled in when the key is GOOG_DAYPART_TARGETING.
2191 # The definition of this targeting is derived from the structure
2192 # used by Ad Manager.
2193 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2194 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2195 { # Daypart targeting message that specifies if the ad can be shown
2196 # only during certain parts of a day/week.
2197 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
2198 # The start time is inclusive.
2199 # This field is not available for filtering in PQL queries.
2200 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2201 # types are google.type.Date and `google.protobuf.Timestamp`.
2202 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2203 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2204 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2205 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2206 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2207 # allow the value 60 if it allows leap-seconds.
2208 },
2209 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2210 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
2211 # granularity). The end time is exclusive. This field is not available
2212 # for filtering in PQL queries.
2213 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2214 # types are google.type.Date and `google.protobuf.Timestamp`.
2215 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2216 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2217 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2218 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2219 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2220 # allow the value 60 if it allows leap-seconds.
2221 },
2222 },
2223 ],
2224 },
2225 },
2226 ],
2227 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion.
2228 # Targeting criteria defined by Google ad servers will begin with GOOG_.
2229 # Third parties may define their own keys.
2230 # A list of permissible keys along with the acceptable values will be
2231 # provided as part of the external documentation.
2232 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d
2233 # together.
2234 { # A polymorphic targeting value used as part of Shared Targeting.
2235 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
2236 # Filled in when key = GOOG_CREATIVE_SIZE
2237 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
2238 # of the creative
2239 # height depend on the type of the targeting.
2240 &quot;height&quot;: 42, # The height of the creative.
2241 &quot;width&quot;: 42, # The width of the creative
2242 },
2243 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
2244 # If this repeated field is empty then all formats are allowed.
2245 # For example, if this field contains AllowedFormatType.AUDIO then the
2246 # publisher only allows an audio ad (without any video).
2247 &quot;A String&quot;,
2248 ],
2249 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
2250 # Companion sizes may be filled in only when creative_size_type = VIDEO
2251 { # Message depicting the size of the creative. The units of width and
2252 # height depend on the type of the targeting.
2253 &quot;height&quot;: 42, # The height of the creative.
2254 &quot;width&quot;: 42, # The width of the creative
2255 },
2256 ],
2257 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
2258 # creative_size_type = CreativeSizeType.VIDEO.
2259 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2260 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
2261 # only if creative_size_type = CreativeSizeType.NATIVE.
2262 },
2263 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2264 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2265 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
2266 # Filled in when the key is GOOG_DAYPART_TARGETING.
2267 # The definition of this targeting is derived from the structure
2268 # used by Ad Manager.
2269 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2270 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2271 { # Daypart targeting message that specifies if the ad can be shown
2272 # only during certain parts of a day/week.
2273 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
2274 # The start time is inclusive.
2275 # This field is not available for filtering in PQL queries.
2276 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2277 # types are google.type.Date and `google.protobuf.Timestamp`.
2278 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2279 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2280 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2281 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2282 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2283 # allow the value 60 if it allows leap-seconds.
2284 },
2285 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2286 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
2287 # granularity). The end time is exclusive. This field is not available
2288 # for filtering in PQL queries.
2289 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2290 # types are google.type.Date and `google.protobuf.Timestamp`.
2291 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2292 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2293 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2294 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2295 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2296 # allow the value 60 if it allows leap-seconds.
2297 },
2298 },
2299 ],
2300 },
2301 },
2302 ],
2303 },
2304 ],
2305 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
2306 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
2307 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal.
2308 # This will generally be stored in a granularity of a second.
2309 # A value is not required for Private Auction deals or Preferred Deals.
2310 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal.
2311 #
2312 # Note: This field may be set only when creating the resource. Modifying
2313 # this field while updating the resource will result in an error.
2314 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created.
2315 #
2316 # Note: This field may be set only when creating the resource. Modifying
2317 # this field while updating the resource will result in an error.
2318 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
2319 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
2320 # deal.
2321 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002322 # If present on create, and the server `product_revision` has advanced sinced
2323 # the passed-in `create_product_revision`, an `ABORTED` error will be
2324 # returned.
2325 #
2326 # Note: This field may be set only when creating the resource. Modifying
2327 # this field while updating the resource will result in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07002328 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
2329 { # Contains information on how a buyer or seller can be reached.
2330 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2331 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2332 },
2333 ],
2334 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002335 # This will generally be stored in the granularity of one second since deal
2336 # serving starts at seconds boundary. Any time specified with more
2337 # granularity (e.g., in milliseconds) will be truncated towards the start of
2338 # time in seconds.
Bu Sun Kim65020912020-05-20 12:08:20 -07002339 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
2340 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things # The negotiable terms of the deal.
2341 # like price per buyer, the type of pricing model (e.g., fixed price, auction)
2342 # and expected impressions from the publisher.
2343 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
2344 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via # The terms for non-guaranteed fixed price deals.
2345 # the API at this time, but can be returned in a get or list request.
2346 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2347 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
2348 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
2349 # a particular buyer or buyer/advertiser pair, we look for the most specific
2350 # matching rule - we first look for a rule matching the buyer and advertiser,
2351 # next a rule with the buyer but an empty advertiser list, and otherwise look
2352 # for a matching rule where no buyer is set.
2353 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2354 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2355 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
2356 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
2357 # The value must be between -999,999,999 and +999,999,999 inclusive.
2358 # If `units` is positive, `nanos` must be positive or zero.
2359 # If `units` is zero, `nanos` can be positive, zero, or negative.
2360 # If `units` is negative, `nanos` must be negative or zero.
2361 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2362 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
2363 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2364 },
2365 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2366 },
2367 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
2368 # If empty, all advertisers with this buyer pay this price.
2369 &quot;A String&quot;,
2370 ],
2371 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
2372 # (if the
2373 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
2374 # Authorized Buyers account ID.
2375 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2376 },
2377 },
2378 ],
2379 },
2380 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day.
2381 # Can be set by buyer or seller.
2382 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only # The terms for non-guaranteed auction deals.
2383 # by the seller, but they can be returned in a get or list request.
2384 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers
2385 # in this private auction.
2386 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
2387 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
2388 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
2389 # a particular buyer or buyer/advertiser pair, we look for the most specific
2390 # matching rule - we first look for a rule matching the buyer and advertiser,
2391 # next a rule with the buyer but an empty advertiser list, and otherwise look
2392 # for a matching rule where no buyer is set.
2393 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2394 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2395 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
2396 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
2397 # The value must be between -999,999,999 and +999,999,999 inclusive.
2398 # If `units` is positive, `nanos` must be positive or zero.
2399 # If `units` is zero, `nanos` can be positive, zero, or negative.
2400 # If `units` is negative, `nanos` must be negative or zero.
2401 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2402 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
2403 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2404 },
2405 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2406 },
2407 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
2408 # If empty, all advertisers with this buyer pay this price.
2409 &quot;A String&quot;,
2410 ],
2411 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
2412 # (if the
2413 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
2414 # Authorized Buyers account ID.
2415 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2416 },
2417 },
2418 ],
2419 },
2420 &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.
2421 # Can be set by buyer or seller.
2422 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2423 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
2424 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
2425 # The value must be between -999,999,999 and +999,999,999 inclusive.
2426 # If `units` is positive, `nanos` must be positive or zero.
2427 # If `units` is zero, `nanos` can be positive, zero, or negative.
2428 # If `units` is negative, `nanos` must be negative or zero.
2429 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2430 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
2431 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2432 },
2433 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2434 },
2435 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
2436 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the
2437 # time zone used to mark the boundaries of a day. It should be an
2438 # IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information,
2439 # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
2440 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
2441 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage
2442 # of guaranteed looks that the buyer is guaranteeing to buy.
2443 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
2444 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
2445 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2446 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
2447 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
2448 # a particular buyer or buyer/advertiser pair, we look for the most specific
2449 # matching rule - we first look for a rule matching the buyer and advertiser,
2450 # next a rule with the buyer but an empty advertiser list, and otherwise look
2451 # for a matching rule where no buyer is set.
2452 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2453 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2454 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
2455 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
2456 # The value must be between -999,999,999 and +999,999,999 inclusive.
2457 # If `units` is positive, `nanos` must be positive or zero.
2458 # If `units` is zero, `nanos` can be positive, zero, or negative.
2459 # If `units` is negative, `nanos` must be negative or zero.
2460 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2461 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
2462 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2463 },
2464 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2465 },
2466 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
2467 # If empty, all advertisers with this buyer pay this price.
2468 &quot;A String&quot;,
2469 ],
2470 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
2471 # (if the
2472 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
2473 # Authorized Buyers account ID.
2474 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2475 },
2476 },
2477 ],
2478 },
2479 },
2480 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002481 # target ad inventory. For example, they can choose to target ad requests only
2482 # if the user is in the US.
2483 # Multiple types of targeting are always applied as a logical AND, unless noted
2484 # otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07002485 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # Geo criteria IDs to be included/excluded.
2486 # included and excluded numeric IDs.
2487 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2488 &quot;A String&quot;,
2489 ],
2490 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2491 &quot;A String&quot;,
2492 ],
2493 },
2494 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad # Inventory sizes to be included/excluded.
2495 # request. It only applies to Private Auction, AdX Preferred Deals and
2496 # Auction Packages. This targeting does not apply to Programmatic Guaranteed
2497 # and Preferred Deals in Ad Manager.
2498 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
2499 { # Represents size of a single ad slot, or a creative.
2500 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
2501 # This field will be present only when size type is `PIXEL`.
2502 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2503 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
2504 # This field will be present only when size type is `PIXEL`.
2505 },
2506 ],
2507 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
2508 { # Represents size of a single ad slot, or a creative.
2509 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
2510 # This field will be present only when size type is `PIXEL`.
2511 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2512 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
2513 # This field will be present only when size type is `PIXEL`.
2514 },
2515 ],
2516 },
2517 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
2518 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included.
2519 # When the included list is present, the excluded list must be empty.
2520 # When the excluded list is present, the included list must be empty.
2521 &quot;A String&quot;,
2522 ],
2523 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded.
2524 # Position types can either be included or excluded (XOR).
2525 &quot;A String&quot;,
2526 ],
2527 },
2528 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
2529 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device capabilities to be included/excluded.
2530 # included and excluded numeric IDs.
2531 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2532 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002533 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002534 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2535 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002536 ],
2537 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002538 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
2539 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating systems to be included/excluded.
2540 # included and excluded numeric IDs.
2541 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2542 &quot;A String&quot;,
2543 ],
2544 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2545 &quot;A String&quot;,
2546 ],
2547 },
2548 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating system versions to be included/excluded.
2549 # included and excluded numeric IDs.
2550 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2551 &quot;A String&quot;,
2552 ],
2553 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2554 &quot;A String&quot;,
2555 ],
2556 },
2557 },
2558 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device categories to be included/excluded.
2559 # included and excluded numeric IDs.
2560 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2561 &quot;A String&quot;,
2562 ],
2563 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2564 &quot;A String&quot;,
2565 ],
2566 },
2567 },
2568 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or # Placement targeting information, e.g., URL, mobile applications.
2569 # mobile applications.
2570 # Different placement targeting types will be logically OR&#x27;ed.
2571 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). # URLs to be included/excluded.
2572 # For Private Auction and AdX Preferred Deals, URLs are either included or
2573 # excluded.
2574 # For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t
2575 # apply.
2576 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
2577 &quot;A String&quot;,
2578 ],
2579 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
2580 &quot;A String&quot;,
2581 ],
2582 },
2583 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal.
2584 # This doesn&#x27;t apply to Auction Packages.
2585 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that # Publisher owned apps to be targeted or excluded by the publisher to
Dan O'Mearadd494642020-05-01 07:42:23 -07002586 # display the ads in.
2587 # publishers own.
2588 # Mobile application IDs are from App Store and Google Play Store.
2589 # Android App ID, for example, com.google.android.apps.maps, can be found in
2590 # Google Play Store URL.
2591 # iOS App ID (which is a number) can be found at the end of iTunes store URL.
2592 # First party mobile applications is either included or excluded.
Bu Sun Kim65020912020-05-20 12:08:20 -07002593 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
2594 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002595 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002596 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
2597 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002598 ],
2599 },
2600 },
2601 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002602 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002603 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
2604 &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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002605 # to see but are non-negotiable. These are set by the publisher.
Bu Sun Kim65020912020-05-20 12:08:20 -07002606 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
2607 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002608 { # Frequency cap.
Bu Sun Kim65020912020-05-20 12:08:20 -07002609 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002610 # amount of time over which impressions per user are counted and capped.
Bu Sun Kim65020912020-05-20 12:08:20 -07002611 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002612 # specified time period.
Bu Sun Kim65020912020-05-20 12:08:20 -07002613 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over
2614 # which impressions per user are counted and capped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002615 },
2616 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002617 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002618 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002619 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is
2620 # finalized. This is the deal ID that shows up in serving/reporting etc.
2621 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ # Output only. Restricitions about the creatives associated with the deal
Dan O'Mearadd494642020-05-01 07:42:23 -07002622 # (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals
2623 # in Ad Manager.
2624 # Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07002625 # This doesn&#x27;t apply to Private Auction and AdX Preferred Deals.
2626 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
2627 &quot;creativeSpecifications&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -07002628 { # Represents information for a creative that is associated with a Programmatic
2629 # Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07002630 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
2631 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07002632 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002633 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2634 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07002635 # This field will be present only when size type is `PIXEL`.
2636 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002637 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
Dan O'Mearadd494642020-05-01 07:42:23 -07002638 { # Represents size of a single ad slot, or a creative.
Bu Sun Kim65020912020-05-20 12:08:20 -07002639 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07002640 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002641 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2642 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07002643 # This field will be present only when size type is `PIXEL`.
2644 },
2645 ],
2646 },
2647 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002648 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
Dan O'Mearadd494642020-05-01 07:42:23 -07002649 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002650 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
2651 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. # Output only. Tracks which parties (if any) have paused a deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002652 # The deal is considered paused if either hasBuyerPaused or
2653 # hasSellPaused is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07002654 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
2655 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
2656 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
2657 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
2658 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002659 },
2660 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002661 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002662 },
2663 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002664 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07002665 # Each update to the proposal or the deal causes the proposal revision number
2666 # to auto-increment. The buyer keeps track of the last revision number they
2667 # know of and pass it in when making an update. If the head revision number
2668 # on the server has since incremented, then an ABORTED error is returned
2669 # during the update operation to let the buyer know that a subsequent update
2670 # was made.
Bu Sun Kim65020912020-05-20 12:08:20 -07002671 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique # Reference to the seller on the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07002672 #
2673 # Note: This field may be set only when creating the resource. Modifying
2674 # this field while updating the resource will result in an error.
2675 # Ad Manager account ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07002676 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
2677 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field.
Dan O'Mearadd494642020-05-01 07:42:23 -07002678 # The seller account ID is then available to buyer in the product.
2679 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002680}
2681
2682 x__xgafv: string, V1 error format.
2683 Allowed values
2684 1 - v1 error format
2685 2 - v2 error format
2686
2687Returns:
2688 An object of the form:
2689
2690 { # Note: this resource requires whitelisting for access. Please contact your
2691 # account manager for access to Marketplace resources.
2692 #
2693 # Represents a proposal in the Marketplace. A proposal is the unit of
2694 # negotiation between a seller and a buyer and contains deals which
2695 # are served.
2696 #
2697 # Note: you can not update, create, or otherwise modify Private
2698 # Auction or Preferred Deals deals through the API.
2699 #
2700 # Fields are updatable unless noted otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07002701 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Reference to the buyer on the proposal.
2702 #
2703 # Note: This field may be set only when creating the resource. Modifying
2704 # this field while updating the resource will result in an error.
2705 # Authorized Buyers account ID.
2706 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2707 },
2708 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
2709 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
2710 { # A proposal may be associated to several notes.
2711 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach.
2712 # (max-length: 1024 unicode code units)
2713 #
2714 # Note: This field may be set only when creating the resource. Modifying
2715 # this field while updating the resource will result in an error.
2716 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
2717 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
2718 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
2719 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
2720 },
2721 ],
2722 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
2723 # proposal.
2724 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
2725 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
2726 { # Contains information on how a buyer or seller can be reached.
2727 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2728 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2729 },
2730 ],
2731 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction
2732 # proposal.
2733 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
2734 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or
2735 # left a comment.
2736 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
2737 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
2738 # operations (max-length: 1024 unicode code units).
2739 },
2740 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
2741 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
2742 { # Contains information on how a buyer or seller can be reached.
2743 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2744 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2745 },
2746 ],
2747 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Output only. Reference to the buyer that will get billed for this proposal.
2748 # Authorized Buyers account ID.
2749 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2750 },
2751 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
2752 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
2753 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002754 # (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
2755 { # A deal represents a segment of inventory for displaying ads on.
2756 # A proposal can contain multiple deals. A deal contains the terms and
2757 # targeting information that is used for serving.
Bu Sun Kim65020912020-05-20 12:08:20 -07002758 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals.
2759 # PUBLISHER means creative is provided by seller and ADVERTISER means
2760 # creative is provided by buyer.
2761 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
2762 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
2763 # operations (max-length: 1024 unicode code units).
2764 },
2765 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
2766 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
2767 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
2768 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared
2769 # targeting entity is AND&#x27;d together.
2770 { # Advertisers can target different attributes of an ad slot. For example,
2771 # they can choose to show ads only if the user is in the U.S. Such
2772 # targeting criteria can be specified as part of Shared Targeting.
2773 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d
2774 # together.
2775 { # A polymorphic targeting value used as part of Shared Targeting.
2776 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
2777 # Filled in when key = GOOG_CREATIVE_SIZE
2778 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
2779 # of the creative
2780 # height depend on the type of the targeting.
2781 &quot;height&quot;: 42, # The height of the creative.
2782 &quot;width&quot;: 42, # The width of the creative
2783 },
2784 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
2785 # If this repeated field is empty then all formats are allowed.
2786 # For example, if this field contains AllowedFormatType.AUDIO then the
2787 # publisher only allows an audio ad (without any video).
2788 &quot;A String&quot;,
2789 ],
2790 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
2791 # Companion sizes may be filled in only when creative_size_type = VIDEO
2792 { # Message depicting the size of the creative. The units of width and
2793 # height depend on the type of the targeting.
2794 &quot;height&quot;: 42, # The height of the creative.
2795 &quot;width&quot;: 42, # The width of the creative
2796 },
2797 ],
2798 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
2799 # creative_size_type = CreativeSizeType.VIDEO.
2800 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2801 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
2802 # only if creative_size_type = CreativeSizeType.NATIVE.
2803 },
2804 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2805 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2806 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
2807 # Filled in when the key is GOOG_DAYPART_TARGETING.
2808 # The definition of this targeting is derived from the structure
2809 # used by Ad Manager.
2810 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2811 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2812 { # Daypart targeting message that specifies if the ad can be shown
2813 # only during certain parts of a day/week.
2814 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
2815 # The start time is inclusive.
2816 # This field is not available for filtering in PQL queries.
2817 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2818 # types are google.type.Date and `google.protobuf.Timestamp`.
2819 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2820 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2821 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2822 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2823 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2824 # allow the value 60 if it allows leap-seconds.
2825 },
2826 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2827 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
2828 # granularity). The end time is exclusive. This field is not available
2829 # for filtering in PQL queries.
2830 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2831 # types are google.type.Date and `google.protobuf.Timestamp`.
2832 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2833 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2834 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
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
2837 # allow the value 60 if it allows leap-seconds.
2838 },
2839 },
2840 ],
2841 },
2842 },
2843 ],
2844 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion.
2845 # Targeting criteria defined by Google ad servers will begin with GOOG_.
2846 # Third parties may define their own keys.
2847 # A list of permissible keys along with the acceptable values will be
2848 # provided as part of the external documentation.
2849 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d
2850 # together.
2851 { # A polymorphic targeting value used as part of Shared Targeting.
2852 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
2853 # Filled in when key = GOOG_CREATIVE_SIZE
2854 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
2855 # of the creative
2856 # height depend on the type of the targeting.
2857 &quot;height&quot;: 42, # The height of the creative.
2858 &quot;width&quot;: 42, # The width of the creative
2859 },
2860 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
2861 # If this repeated field is empty then all formats are allowed.
2862 # For example, if this field contains AllowedFormatType.AUDIO then the
2863 # publisher only allows an audio ad (without any video).
2864 &quot;A String&quot;,
2865 ],
2866 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
2867 # Companion sizes may be filled in only when creative_size_type = VIDEO
2868 { # Message depicting the size of the creative. The units of width and
2869 # height depend on the type of the targeting.
2870 &quot;height&quot;: 42, # The height of the creative.
2871 &quot;width&quot;: 42, # The width of the creative
2872 },
2873 ],
2874 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
2875 # creative_size_type = CreativeSizeType.VIDEO.
2876 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2877 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
2878 # only if creative_size_type = CreativeSizeType.NATIVE.
2879 },
2880 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2881 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2882 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
2883 # Filled in when the key is GOOG_DAYPART_TARGETING.
2884 # The definition of this targeting is derived from the structure
2885 # used by Ad Manager.
2886 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2887 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2888 { # Daypart targeting message that specifies if the ad can be shown
2889 # only during certain parts of a day/week.
2890 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
2891 # The start time is inclusive.
2892 # This field is not available for filtering in PQL queries.
2893 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2894 # types are google.type.Date and `google.protobuf.Timestamp`.
2895 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2896 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2897 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2898 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2899 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2900 # allow the value 60 if it allows leap-seconds.
2901 },
2902 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2903 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
2904 # granularity). The end time is exclusive. This field is not available
2905 # for filtering in PQL queries.
2906 # or are specified elsewhere. An API may choose to allow leap seconds. Related
2907 # types are google.type.Date and `google.protobuf.Timestamp`.
2908 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2909 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
2910 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2911 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2912 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
2913 # allow the value 60 if it allows leap-seconds.
2914 },
2915 },
2916 ],
2917 },
2918 },
2919 ],
2920 },
2921 ],
2922 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
2923 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
2924 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal.
2925 # This will generally be stored in a granularity of a second.
2926 # A value is not required for Private Auction deals or Preferred Deals.
2927 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal.
2928 #
2929 # Note: This field may be set only when creating the resource. Modifying
2930 # this field while updating the resource will result in an error.
2931 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created.
2932 #
2933 # Note: This field may be set only when creating the resource. Modifying
2934 # this field while updating the resource will result in an error.
2935 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
2936 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
2937 # deal.
2938 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002939 # If present on create, and the server `product_revision` has advanced sinced
2940 # the passed-in `create_product_revision`, an `ABORTED` error will be
2941 # returned.
2942 #
2943 # Note: This field may be set only when creating the resource. Modifying
2944 # this field while updating the resource will result in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07002945 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
2946 { # Contains information on how a buyer or seller can be reached.
2947 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2948 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2949 },
2950 ],
2951 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002952 # This will generally be stored in the granularity of one second since deal
2953 # serving starts at seconds boundary. Any time specified with more
2954 # granularity (e.g., in milliseconds) will be truncated towards the start of
2955 # time in seconds.
Bu Sun Kim65020912020-05-20 12:08:20 -07002956 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
2957 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things # The negotiable terms of the deal.
2958 # like price per buyer, the type of pricing model (e.g., fixed price, auction)
2959 # and expected impressions from the publisher.
2960 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
2961 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via # The terms for non-guaranteed fixed price deals.
2962 # the API at this time, but can be returned in a get or list request.
2963 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2964 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
2965 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
2966 # a particular buyer or buyer/advertiser pair, we look for the most specific
2967 # matching rule - we first look for a rule matching the buyer and advertiser,
2968 # next a rule with the buyer but an empty advertiser list, and otherwise look
2969 # for a matching rule where no buyer is set.
2970 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2971 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2972 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
2973 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
2974 # The value must be between -999,999,999 and +999,999,999 inclusive.
2975 # If `units` is positive, `nanos` must be positive or zero.
2976 # If `units` is zero, `nanos` can be positive, zero, or negative.
2977 # If `units` is negative, `nanos` must be negative or zero.
2978 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2979 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
2980 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2981 },
2982 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2983 },
2984 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
2985 # If empty, all advertisers with this buyer pay this price.
2986 &quot;A String&quot;,
2987 ],
2988 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
2989 # (if the
2990 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
2991 # Authorized Buyers account ID.
2992 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2993 },
2994 },
2995 ],
2996 },
2997 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day.
2998 # Can be set by buyer or seller.
2999 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only # The terms for non-guaranteed auction deals.
3000 # by the seller, but they can be returned in a get or list request.
3001 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers
3002 # in this private auction.
3003 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
3004 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
3005 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
3006 # a particular buyer or buyer/advertiser pair, we look for the most specific
3007 # matching rule - we first look for a rule matching the buyer and advertiser,
3008 # next a rule with the buyer but an empty advertiser list, and otherwise look
3009 # for a matching rule where no buyer is set.
3010 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3011 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3012 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
3013 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
3014 # The value must be between -999,999,999 and +999,999,999 inclusive.
3015 # If `units` is positive, `nanos` must be positive or zero.
3016 # If `units` is zero, `nanos` can be positive, zero, or negative.
3017 # If `units` is negative, `nanos` must be negative or zero.
3018 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3019 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
3020 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3021 },
3022 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3023 },
3024 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
3025 # If empty, all advertisers with this buyer pay this price.
3026 &quot;A String&quot;,
3027 ],
3028 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
3029 # (if the
3030 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
3031 # Authorized Buyers account ID.
3032 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3033 },
3034 },
3035 ],
3036 },
3037 &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.
3038 # Can be set by buyer or seller.
3039 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3040 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
3041 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
3042 # The value must be between -999,999,999 and +999,999,999 inclusive.
3043 # If `units` is positive, `nanos` must be positive or zero.
3044 # If `units` is zero, `nanos` can be positive, zero, or negative.
3045 # If `units` is negative, `nanos` must be negative or zero.
3046 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3047 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
3048 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3049 },
3050 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3051 },
3052 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
3053 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the
3054 # time zone used to mark the boundaries of a day. It should be an
3055 # IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information,
3056 # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
3057 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
3058 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage
3059 # of guaranteed looks that the buyer is guaranteeing to buy.
3060 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
3061 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
3062 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3063 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
3064 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
3065 # a particular buyer or buyer/advertiser pair, we look for the most specific
3066 # matching rule - we first look for a rule matching the buyer and advertiser,
3067 # next a rule with the buyer but an empty advertiser list, and otherwise look
3068 # for a matching rule where no buyer is set.
3069 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3070 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3071 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
3072 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
3073 # The value must be between -999,999,999 and +999,999,999 inclusive.
3074 # If `units` is positive, `nanos` must be positive or zero.
3075 # If `units` is zero, `nanos` can be positive, zero, or negative.
3076 # If `units` is negative, `nanos` must be negative or zero.
3077 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3078 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
3079 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3080 },
3081 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3082 },
3083 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
3084 # If empty, all advertisers with this buyer pay this price.
3085 &quot;A String&quot;,
3086 ],
3087 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
3088 # (if the
3089 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
3090 # Authorized Buyers account ID.
3091 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3092 },
3093 },
3094 ],
3095 },
3096 },
3097 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003098 # target ad inventory. For example, they can choose to target ad requests only
3099 # if the user is in the US.
3100 # Multiple types of targeting are always applied as a logical AND, unless noted
3101 # otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07003102 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # Geo criteria IDs to be included/excluded.
3103 # included and excluded numeric IDs.
3104 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3105 &quot;A String&quot;,
3106 ],
3107 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3108 &quot;A String&quot;,
3109 ],
3110 },
3111 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad # Inventory sizes to be included/excluded.
3112 # request. It only applies to Private Auction, AdX Preferred Deals and
3113 # Auction Packages. This targeting does not apply to Programmatic Guaranteed
3114 # and Preferred Deals in Ad Manager.
3115 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
3116 { # Represents size of a single ad slot, or a creative.
3117 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
3118 # This field will be present only when size type is `PIXEL`.
3119 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3120 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
3121 # This field will be present only when size type is `PIXEL`.
3122 },
3123 ],
3124 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
3125 { # Represents size of a single ad slot, or a creative.
3126 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
3127 # This field will be present only when size type is `PIXEL`.
3128 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3129 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
3130 # This field will be present only when size type is `PIXEL`.
3131 },
3132 ],
3133 },
3134 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
3135 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included.
3136 # When the included list is present, the excluded list must be empty.
3137 # When the excluded list is present, the included list must be empty.
3138 &quot;A String&quot;,
3139 ],
3140 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded.
3141 # Position types can either be included or excluded (XOR).
3142 &quot;A String&quot;,
3143 ],
3144 },
3145 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
3146 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device capabilities to be included/excluded.
3147 # included and excluded numeric IDs.
3148 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3149 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003150 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003151 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3152 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003153 ],
3154 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003155 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
3156 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating systems to be included/excluded.
3157 # included and excluded numeric IDs.
3158 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3159 &quot;A String&quot;,
3160 ],
3161 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3162 &quot;A String&quot;,
3163 ],
3164 },
3165 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating system versions to be included/excluded.
3166 # included and excluded numeric IDs.
3167 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3168 &quot;A String&quot;,
3169 ],
3170 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3171 &quot;A String&quot;,
3172 ],
3173 },
3174 },
3175 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device categories to be included/excluded.
3176 # included and excluded numeric IDs.
3177 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3178 &quot;A String&quot;,
3179 ],
3180 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3181 &quot;A String&quot;,
3182 ],
3183 },
3184 },
3185 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or # Placement targeting information, e.g., URL, mobile applications.
3186 # mobile applications.
3187 # Different placement targeting types will be logically OR&#x27;ed.
3188 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). # URLs to be included/excluded.
3189 # For Private Auction and AdX Preferred Deals, URLs are either included or
3190 # excluded.
3191 # For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t
3192 # apply.
3193 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
3194 &quot;A String&quot;,
3195 ],
3196 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
3197 &quot;A String&quot;,
3198 ],
3199 },
3200 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal.
3201 # This doesn&#x27;t apply to Auction Packages.
3202 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that # Publisher owned apps to be targeted or excluded by the publisher to
Dan O'Mearadd494642020-05-01 07:42:23 -07003203 # display the ads in.
3204 # publishers own.
3205 # Mobile application IDs are from App Store and Google Play Store.
3206 # Android App ID, for example, com.google.android.apps.maps, can be found in
3207 # Google Play Store URL.
3208 # iOS App ID (which is a number) can be found at the end of iTunes store URL.
3209 # First party mobile applications is either included or excluded.
Bu Sun Kim65020912020-05-20 12:08:20 -07003210 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
3211 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003212 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003213 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
3214 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003215 ],
3216 },
3217 },
3218 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003219 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003220 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
3221 &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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003222 # to see but are non-negotiable. These are set by the publisher.
Bu Sun Kim65020912020-05-20 12:08:20 -07003223 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
3224 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003225 { # Frequency cap.
Bu Sun Kim65020912020-05-20 12:08:20 -07003226 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003227 # amount of time over which impressions per user are counted and capped.
Bu Sun Kim65020912020-05-20 12:08:20 -07003228 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003229 # specified time period.
Bu Sun Kim65020912020-05-20 12:08:20 -07003230 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over
3231 # which impressions per user are counted and capped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003232 },
3233 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003234 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003235 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003236 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is
3237 # finalized. This is the deal ID that shows up in serving/reporting etc.
3238 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ # Output only. Restricitions about the creatives associated with the deal
Dan O'Mearadd494642020-05-01 07:42:23 -07003239 # (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals
3240 # in Ad Manager.
3241 # Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07003242 # This doesn&#x27;t apply to Private Auction and AdX Preferred Deals.
3243 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
3244 &quot;creativeSpecifications&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -07003245 { # Represents information for a creative that is associated with a Programmatic
3246 # Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07003247 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
3248 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07003249 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003250 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3251 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07003252 # This field will be present only when size type is `PIXEL`.
3253 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003254 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
Dan O'Mearadd494642020-05-01 07:42:23 -07003255 { # Represents size of a single ad slot, or a creative.
Bu Sun Kim65020912020-05-20 12:08:20 -07003256 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07003257 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003258 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3259 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07003260 # This field will be present only when size type is `PIXEL`.
3261 },
3262 ],
3263 },
3264 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003265 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
Dan O'Mearadd494642020-05-01 07:42:23 -07003266 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003267 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
3268 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. # Output only. Tracks which parties (if any) have paused a deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003269 # The deal is considered paused if either hasBuyerPaused or
3270 # hasSellPaused is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07003271 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
3272 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
3273 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
3274 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
3275 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003276 },
3277 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003278 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003279 },
3280 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003281 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07003282 # Each update to the proposal or the deal causes the proposal revision number
3283 # to auto-increment. The buyer keeps track of the last revision number they
3284 # know of and pass it in when making an update. If the head revision number
3285 # on the server has since incremented, then an ABORTED error is returned
3286 # during the update operation to let the buyer know that a subsequent update
3287 # was made.
Bu Sun Kim65020912020-05-20 12:08:20 -07003288 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique # Reference to the seller on the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07003289 #
3290 # Note: This field may be set only when creating the resource. Modifying
3291 # this field while updating the resource will result in an error.
3292 # Ad Manager account ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07003293 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
3294 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field.
Dan O'Mearadd494642020-05-01 07:42:23 -07003295 # The seller account ID is then available to buyer in the product.
3296 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003297 }</pre>
3298</div>
3299
3300<div class="method">
3301 <code class="details" id="get">get(accountId, proposalId, x__xgafv=None)</code>
3302 <pre>Gets a proposal given its ID. The proposal is returned at its head
3303revision.
3304
3305Args:
3306 accountId: string, Account ID of the buyer. (required)
3307 proposalId: string, The unique ID of the proposal (required)
3308 x__xgafv: string, V1 error format.
3309 Allowed values
3310 1 - v1 error format
3311 2 - v2 error format
3312
3313Returns:
3314 An object of the form:
3315
3316 { # Note: this resource requires whitelisting for access. Please contact your
3317 # account manager for access to Marketplace resources.
3318 #
3319 # Represents a proposal in the Marketplace. A proposal is the unit of
3320 # negotiation between a seller and a buyer and contains deals which
3321 # are served.
3322 #
3323 # Note: you can not update, create, or otherwise modify Private
3324 # Auction or Preferred Deals deals through the API.
3325 #
3326 # Fields are updatable unless noted otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07003327 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Reference to the buyer on the proposal.
3328 #
3329 # Note: This field may be set only when creating the resource. Modifying
3330 # this field while updating the resource will result in an error.
3331 # Authorized Buyers account ID.
3332 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3333 },
3334 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
3335 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
3336 { # A proposal may be associated to several notes.
3337 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach.
3338 # (max-length: 1024 unicode code units)
3339 #
3340 # Note: This field may be set only when creating the resource. Modifying
3341 # this field while updating the resource will result in an error.
3342 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
3343 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
3344 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
3345 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
3346 },
3347 ],
3348 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
3349 # proposal.
3350 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
3351 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
3352 { # Contains information on how a buyer or seller can be reached.
3353 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3354 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3355 },
3356 ],
3357 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction
3358 # proposal.
3359 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
3360 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or
3361 # left a comment.
3362 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
3363 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
3364 # operations (max-length: 1024 unicode code units).
3365 },
3366 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
3367 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
3368 { # Contains information on how a buyer or seller can be reached.
3369 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3370 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3371 },
3372 ],
3373 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Output only. Reference to the buyer that will get billed for this proposal.
3374 # Authorized Buyers account ID.
3375 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3376 },
3377 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
3378 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
3379 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003380 # (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
3381 { # A deal represents a segment of inventory for displaying ads on.
3382 # A proposal can contain multiple deals. A deal contains the terms and
3383 # targeting information that is used for serving.
Bu Sun Kim65020912020-05-20 12:08:20 -07003384 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals.
3385 # PUBLISHER means creative is provided by seller and ADVERTISER means
3386 # creative is provided by buyer.
3387 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
3388 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
3389 # operations (max-length: 1024 unicode code units).
3390 },
3391 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
3392 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
3393 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
3394 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared
3395 # targeting entity is AND&#x27;d together.
3396 { # Advertisers can target different attributes of an ad slot. For example,
3397 # they can choose to show ads only if the user is in the U.S. Such
3398 # targeting criteria can be specified as part of Shared Targeting.
3399 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d
3400 # together.
3401 { # A polymorphic targeting value used as part of Shared Targeting.
3402 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
3403 # Filled in when key = GOOG_CREATIVE_SIZE
3404 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
3405 # of the creative
3406 # height depend on the type of the targeting.
3407 &quot;height&quot;: 42, # The height of the creative.
3408 &quot;width&quot;: 42, # The width of the creative
3409 },
3410 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
3411 # If this repeated field is empty then all formats are allowed.
3412 # For example, if this field contains AllowedFormatType.AUDIO then the
3413 # publisher only allows an audio ad (without any video).
3414 &quot;A String&quot;,
3415 ],
3416 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
3417 # Companion sizes may be filled in only when creative_size_type = VIDEO
3418 { # Message depicting the size of the creative. The units of width and
3419 # height depend on the type of the targeting.
3420 &quot;height&quot;: 42, # The height of the creative.
3421 &quot;width&quot;: 42, # The width of the creative
3422 },
3423 ],
3424 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
3425 # creative_size_type = CreativeSizeType.VIDEO.
3426 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3427 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
3428 # only if creative_size_type = CreativeSizeType.NATIVE.
3429 },
3430 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3431 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3432 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
3433 # Filled in when the key is GOOG_DAYPART_TARGETING.
3434 # The definition of this targeting is derived from the structure
3435 # used by Ad Manager.
3436 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3437 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3438 { # Daypart targeting message that specifies if the ad can be shown
3439 # only during certain parts of a day/week.
3440 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
3441 # The start time is inclusive.
3442 # This field is not available for filtering in PQL queries.
3443 # or are specified elsewhere. An API may choose to allow leap seconds. Related
3444 # types are google.type.Date and `google.protobuf.Timestamp`.
3445 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3446 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
3447 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3448 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3449 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
3450 # allow the value 60 if it allows leap-seconds.
3451 },
3452 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3453 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
3454 # granularity). The end time is exclusive. This field is not available
3455 # for filtering in PQL queries.
3456 # or are specified elsewhere. An API may choose to allow leap seconds. Related
3457 # types are google.type.Date and `google.protobuf.Timestamp`.
3458 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3459 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
3460 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3461 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3462 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
3463 # allow the value 60 if it allows leap-seconds.
3464 },
3465 },
3466 ],
3467 },
3468 },
3469 ],
3470 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion.
3471 # Targeting criteria defined by Google ad servers will begin with GOOG_.
3472 # Third parties may define their own keys.
3473 # A list of permissible keys along with the acceptable values will be
3474 # provided as part of the external documentation.
3475 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d
3476 # together.
3477 { # A polymorphic targeting value used as part of Shared Targeting.
3478 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
3479 # Filled in when key = GOOG_CREATIVE_SIZE
3480 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
3481 # of the creative
3482 # height depend on the type of the targeting.
3483 &quot;height&quot;: 42, # The height of the creative.
3484 &quot;width&quot;: 42, # The width of the creative
3485 },
3486 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
3487 # If this repeated field is empty then all formats are allowed.
3488 # For example, if this field contains AllowedFormatType.AUDIO then the
3489 # publisher only allows an audio ad (without any video).
3490 &quot;A String&quot;,
3491 ],
3492 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
3493 # Companion sizes may be filled in only when creative_size_type = VIDEO
3494 { # Message depicting the size of the creative. The units of width and
3495 # height depend on the type of the targeting.
3496 &quot;height&quot;: 42, # The height of the creative.
3497 &quot;width&quot;: 42, # The width of the creative
3498 },
3499 ],
3500 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
3501 # creative_size_type = CreativeSizeType.VIDEO.
3502 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3503 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
3504 # only if creative_size_type = CreativeSizeType.NATIVE.
3505 },
3506 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3507 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3508 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
3509 # Filled in when the key is GOOG_DAYPART_TARGETING.
3510 # The definition of this targeting is derived from the structure
3511 # used by Ad Manager.
3512 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3513 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3514 { # Daypart targeting message that specifies if the ad can be shown
3515 # only during certain parts of a day/week.
3516 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
3517 # The start time is inclusive.
3518 # This field is not available for filtering in PQL queries.
3519 # or are specified elsewhere. An API may choose to allow leap seconds. Related
3520 # types are google.type.Date and `google.protobuf.Timestamp`.
3521 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3522 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
3523 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3524 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3525 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
3526 # allow the value 60 if it allows leap-seconds.
3527 },
3528 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3529 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
3530 # granularity). The end time is exclusive. This field is not available
3531 # for filtering in PQL queries.
3532 # or are specified elsewhere. An API may choose to allow leap seconds. Related
3533 # types are google.type.Date and `google.protobuf.Timestamp`.
3534 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3535 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
3536 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3537 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3538 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
3539 # allow the value 60 if it allows leap-seconds.
3540 },
3541 },
3542 ],
3543 },
3544 },
3545 ],
3546 },
3547 ],
3548 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
3549 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
3550 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal.
3551 # This will generally be stored in a granularity of a second.
3552 # A value is not required for Private Auction deals or Preferred Deals.
3553 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal.
3554 #
3555 # Note: This field may be set only when creating the resource. Modifying
3556 # this field while updating the resource will result in an error.
3557 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created.
3558 #
3559 # Note: This field may be set only when creating the resource. Modifying
3560 # this field while updating the resource will result in an error.
3561 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
3562 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
3563 # deal.
3564 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003565 # If present on create, and the server `product_revision` has advanced sinced
3566 # the passed-in `create_product_revision`, an `ABORTED` error will be
3567 # returned.
3568 #
3569 # Note: This field may be set only when creating the resource. Modifying
3570 # this field while updating the resource will result in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07003571 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
3572 { # Contains information on how a buyer or seller can be reached.
3573 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3574 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3575 },
3576 ],
3577 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003578 # This will generally be stored in the granularity of one second since deal
3579 # serving starts at seconds boundary. Any time specified with more
3580 # granularity (e.g., in milliseconds) will be truncated towards the start of
3581 # time in seconds.
Bu Sun Kim65020912020-05-20 12:08:20 -07003582 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
3583 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things # The negotiable terms of the deal.
3584 # like price per buyer, the type of pricing model (e.g., fixed price, auction)
3585 # and expected impressions from the publisher.
3586 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
3587 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via # The terms for non-guaranteed fixed price deals.
3588 # the API at this time, but can be returned in a get or list request.
3589 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3590 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
3591 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
3592 # a particular buyer or buyer/advertiser pair, we look for the most specific
3593 # matching rule - we first look for a rule matching the buyer and advertiser,
3594 # next a rule with the buyer but an empty advertiser list, and otherwise look
3595 # for a matching rule where no buyer is set.
3596 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3597 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3598 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
3599 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
3600 # The value must be between -999,999,999 and +999,999,999 inclusive.
3601 # If `units` is positive, `nanos` must be positive or zero.
3602 # If `units` is zero, `nanos` can be positive, zero, or negative.
3603 # If `units` is negative, `nanos` must be negative or zero.
3604 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3605 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
3606 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3607 },
3608 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3609 },
3610 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
3611 # If empty, all advertisers with this buyer pay this price.
3612 &quot;A String&quot;,
3613 ],
3614 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
3615 # (if the
3616 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
3617 # Authorized Buyers account ID.
3618 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3619 },
3620 },
3621 ],
3622 },
3623 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day.
3624 # Can be set by buyer or seller.
3625 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only # The terms for non-guaranteed auction deals.
3626 # by the seller, but they can be returned in a get or list request.
3627 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers
3628 # in this private auction.
3629 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
3630 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
3631 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
3632 # a particular buyer or buyer/advertiser pair, we look for the most specific
3633 # matching rule - we first look for a rule matching the buyer and advertiser,
3634 # next a rule with the buyer but an empty advertiser list, and otherwise look
3635 # for a matching rule where no buyer is set.
3636 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3637 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3638 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
3639 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
3640 # The value must be between -999,999,999 and +999,999,999 inclusive.
3641 # If `units` is positive, `nanos` must be positive or zero.
3642 # If `units` is zero, `nanos` can be positive, zero, or negative.
3643 # If `units` is negative, `nanos` must be negative or zero.
3644 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3645 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
3646 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3647 },
3648 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3649 },
3650 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
3651 # If empty, all advertisers with this buyer pay this price.
3652 &quot;A String&quot;,
3653 ],
3654 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
3655 # (if the
3656 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
3657 # Authorized Buyers account ID.
3658 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3659 },
3660 },
3661 ],
3662 },
3663 &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.
3664 # Can be set by buyer or seller.
3665 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3666 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
3667 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
3668 # The value must be between -999,999,999 and +999,999,999 inclusive.
3669 # If `units` is positive, `nanos` must be positive or zero.
3670 # If `units` is zero, `nanos` can be positive, zero, or negative.
3671 # If `units` is negative, `nanos` must be negative or zero.
3672 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3673 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
3674 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3675 },
3676 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3677 },
3678 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
3679 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the
3680 # time zone used to mark the boundaries of a day. It should be an
3681 # IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information,
3682 # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
3683 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
3684 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage
3685 # of guaranteed looks that the buyer is guaranteeing to buy.
3686 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
3687 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
3688 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3689 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
3690 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
3691 # a particular buyer or buyer/advertiser pair, we look for the most specific
3692 # matching rule - we first look for a rule matching the buyer and advertiser,
3693 # next a rule with the buyer but an empty advertiser list, and otherwise look
3694 # for a matching rule where no buyer is set.
3695 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3696 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3697 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
3698 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
3699 # The value must be between -999,999,999 and +999,999,999 inclusive.
3700 # If `units` is positive, `nanos` must be positive or zero.
3701 # If `units` is zero, `nanos` can be positive, zero, or negative.
3702 # If `units` is negative, `nanos` must be negative or zero.
3703 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3704 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
3705 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3706 },
3707 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3708 },
3709 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
3710 # If empty, all advertisers with this buyer pay this price.
3711 &quot;A String&quot;,
3712 ],
3713 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
3714 # (if the
3715 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
3716 # Authorized Buyers account ID.
3717 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3718 },
3719 },
3720 ],
3721 },
3722 },
3723 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003724 # target ad inventory. For example, they can choose to target ad requests only
3725 # if the user is in the US.
3726 # Multiple types of targeting are always applied as a logical AND, unless noted
3727 # otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07003728 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # Geo criteria IDs to be included/excluded.
3729 # included and excluded numeric IDs.
3730 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3731 &quot;A String&quot;,
3732 ],
3733 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3734 &quot;A String&quot;,
3735 ],
3736 },
3737 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad # Inventory sizes to be included/excluded.
3738 # request. It only applies to Private Auction, AdX Preferred Deals and
3739 # Auction Packages. This targeting does not apply to Programmatic Guaranteed
3740 # and Preferred Deals in Ad Manager.
3741 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
3742 { # Represents size of a single ad slot, or a creative.
3743 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
3744 # This field will be present only when size type is `PIXEL`.
3745 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3746 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
3747 # This field will be present only when size type is `PIXEL`.
3748 },
3749 ],
3750 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
3751 { # Represents size of a single ad slot, or a creative.
3752 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
3753 # This field will be present only when size type is `PIXEL`.
3754 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3755 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
3756 # This field will be present only when size type is `PIXEL`.
3757 },
3758 ],
3759 },
3760 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
3761 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included.
3762 # When the included list is present, the excluded list must be empty.
3763 # When the excluded list is present, the included list must be empty.
3764 &quot;A String&quot;,
3765 ],
3766 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded.
3767 # Position types can either be included or excluded (XOR).
3768 &quot;A String&quot;,
3769 ],
3770 },
3771 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
3772 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device capabilities to be included/excluded.
3773 # included and excluded numeric IDs.
3774 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3775 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003776 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003777 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3778 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003779 ],
3780 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003781 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
3782 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating systems to be included/excluded.
3783 # included and excluded numeric IDs.
3784 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3785 &quot;A String&quot;,
3786 ],
3787 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3788 &quot;A String&quot;,
3789 ],
3790 },
3791 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating system versions to be included/excluded.
3792 # included and excluded numeric IDs.
3793 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3794 &quot;A String&quot;,
3795 ],
3796 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3797 &quot;A String&quot;,
3798 ],
3799 },
3800 },
3801 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device categories to be included/excluded.
3802 # included and excluded numeric IDs.
3803 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3804 &quot;A String&quot;,
3805 ],
3806 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3807 &quot;A String&quot;,
3808 ],
3809 },
3810 },
3811 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or # Placement targeting information, e.g., URL, mobile applications.
3812 # mobile applications.
3813 # Different placement targeting types will be logically OR&#x27;ed.
3814 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). # URLs to be included/excluded.
3815 # For Private Auction and AdX Preferred Deals, URLs are either included or
3816 # excluded.
3817 # For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t
3818 # apply.
3819 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
3820 &quot;A String&quot;,
3821 ],
3822 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
3823 &quot;A String&quot;,
3824 ],
3825 },
3826 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal.
3827 # This doesn&#x27;t apply to Auction Packages.
3828 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that # Publisher owned apps to be targeted or excluded by the publisher to
Dan O'Mearadd494642020-05-01 07:42:23 -07003829 # display the ads in.
3830 # publishers own.
3831 # Mobile application IDs are from App Store and Google Play Store.
3832 # Android App ID, for example, com.google.android.apps.maps, can be found in
3833 # Google Play Store URL.
3834 # iOS App ID (which is a number) can be found at the end of iTunes store URL.
3835 # First party mobile applications is either included or excluded.
Bu Sun Kim65020912020-05-20 12:08:20 -07003836 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
3837 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003838 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003839 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
3840 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003841 ],
3842 },
3843 },
3844 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003845 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003846 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
3847 &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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003848 # to see but are non-negotiable. These are set by the publisher.
Bu Sun Kim65020912020-05-20 12:08:20 -07003849 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
3850 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003851 { # Frequency cap.
Bu Sun Kim65020912020-05-20 12:08:20 -07003852 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003853 # amount of time over which impressions per user are counted and capped.
Bu Sun Kim65020912020-05-20 12:08:20 -07003854 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003855 # specified time period.
Bu Sun Kim65020912020-05-20 12:08:20 -07003856 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over
3857 # which impressions per user are counted and capped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003858 },
3859 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003860 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003861 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003862 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is
3863 # finalized. This is the deal ID that shows up in serving/reporting etc.
3864 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ # Output only. Restricitions about the creatives associated with the deal
Dan O'Mearadd494642020-05-01 07:42:23 -07003865 # (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals
3866 # in Ad Manager.
3867 # Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07003868 # This doesn&#x27;t apply to Private Auction and AdX Preferred Deals.
3869 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
3870 &quot;creativeSpecifications&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -07003871 { # Represents information for a creative that is associated with a Programmatic
3872 # Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07003873 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
3874 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07003875 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003876 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3877 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07003878 # This field will be present only when size type is `PIXEL`.
3879 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003880 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
Dan O'Mearadd494642020-05-01 07:42:23 -07003881 { # Represents size of a single ad slot, or a creative.
Bu Sun Kim65020912020-05-20 12:08:20 -07003882 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07003883 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003884 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3885 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07003886 # This field will be present only when size type is `PIXEL`.
3887 },
3888 ],
3889 },
3890 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003891 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
Dan O'Mearadd494642020-05-01 07:42:23 -07003892 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003893 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
3894 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. # Output only. Tracks which parties (if any) have paused a deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003895 # The deal is considered paused if either hasBuyerPaused or
3896 # hasSellPaused is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07003897 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
3898 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
3899 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
3900 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
3901 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003902 },
3903 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003904 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003905 },
3906 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003907 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07003908 # Each update to the proposal or the deal causes the proposal revision number
3909 # to auto-increment. The buyer keeps track of the last revision number they
3910 # know of and pass it in when making an update. If the head revision number
3911 # on the server has since incremented, then an ABORTED error is returned
3912 # during the update operation to let the buyer know that a subsequent update
3913 # was made.
Bu Sun Kim65020912020-05-20 12:08:20 -07003914 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique # Reference to the seller on the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07003915 #
3916 # Note: This field may be set only when creating the resource. Modifying
3917 # this field while updating the resource will result in an error.
3918 # Ad Manager account ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07003919 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
3920 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field.
Dan O'Mearadd494642020-05-01 07:42:23 -07003921 # The seller account ID is then available to buyer in the product.
3922 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003923 }</pre>
3924</div>
3925
3926<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07003927 <code class="details" id="list">list(accountId, filter=None, pageToken=None, pageSize=None, filterSyntax=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003928 <pre>List proposals. A filter expression (PQL query) may be specified to
3929filter the results. To retrieve all finalized proposals, regardless if a
3930proposal is being renegotiated, see the FinalizedProposals resource.
3931Note that Bidder/ChildSeat relationships differ from the usual behavior.
Bu Sun Kim65020912020-05-20 12:08:20 -07003932A Bidder account can only see its child seats&#x27; proposals by specifying
3933the ChildSeat&#x27;s accountId in the request path.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003934
3935Args:
3936 accountId: string, Account ID of the buyer. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003937 filter: string, An optional PQL filter query used to query for proposals.
3938
3939Nested repeated fields, such as proposal.deals.targetingCriterion,
3940cannot be filtered.
Bu Sun Kim65020912020-05-20 12:08:20 -07003941 pageToken: string, The page token as returned from ListProposalsResponse.
3942 pageSize: integer, Requested page size. The server may return fewer results than requested.
3943If unspecified, the server will pick an appropriate default.
3944 filterSyntax: string, Syntax the filter is written in. Current implementation defaults to PQL
3945but in the future it will be LIST_FILTER.
3946 x__xgafv: string, V1 error format.
3947 Allowed values
3948 1 - v1 error format
3949 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003950
3951Returns:
3952 An object of the form:
3953
3954 { # Response message for listing proposals.
Bu Sun Kim65020912020-05-20 12:08:20 -07003955 &quot;nextPageToken&quot;: &quot;A String&quot;, # Continuation token for fetching the next page of results.
3956 &quot;proposals&quot;: [ # The list of proposals.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003957 { # Note: this resource requires whitelisting for access. Please contact your
3958 # account manager for access to Marketplace resources.
3959 #
3960 # Represents a proposal in the Marketplace. A proposal is the unit of
3961 # negotiation between a seller and a buyer and contains deals which
3962 # are served.
3963 #
3964 # Note: you can not update, create, or otherwise modify Private
3965 # Auction or Preferred Deals deals through the API.
3966 #
3967 # Fields are updatable unless noted otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07003968 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Reference to the buyer on the proposal.
3969 #
3970 # Note: This field may be set only when creating the resource. Modifying
3971 # this field while updating the resource will result in an error.
3972 # Authorized Buyers account ID.
3973 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3974 },
3975 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
3976 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
3977 { # A proposal may be associated to several notes.
3978 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach.
3979 # (max-length: 1024 unicode code units)
3980 #
3981 # Note: This field may be set only when creating the resource. Modifying
3982 # this field while updating the resource will result in an error.
3983 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
3984 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
3985 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
3986 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
3987 },
3988 ],
3989 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
3990 # proposal.
3991 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
3992 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
3993 { # Contains information on how a buyer or seller can be reached.
3994 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3995 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3996 },
3997 ],
3998 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction
3999 # proposal.
4000 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
4001 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or
4002 # left a comment.
4003 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
4004 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
4005 # operations (max-length: 1024 unicode code units).
4006 },
4007 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
4008 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
4009 { # Contains information on how a buyer or seller can be reached.
4010 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4011 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4012 },
4013 ],
4014 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Output only. Reference to the buyer that will get billed for this proposal.
4015 # Authorized Buyers account ID.
4016 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4017 },
4018 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
4019 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
4020 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004021 # (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
4022 { # A deal represents a segment of inventory for displaying ads on.
4023 # A proposal can contain multiple deals. A deal contains the terms and
4024 # targeting information that is used for serving.
Bu Sun Kim65020912020-05-20 12:08:20 -07004025 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals.
4026 # PUBLISHER means creative is provided by seller and ADVERTISER means
4027 # creative is provided by buyer.
4028 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
4029 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
4030 # operations (max-length: 1024 unicode code units).
4031 },
4032 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
4033 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
4034 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
4035 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared
4036 # targeting entity is AND&#x27;d together.
4037 { # Advertisers can target different attributes of an ad slot. For example,
4038 # they can choose to show ads only if the user is in the U.S. Such
4039 # targeting criteria can be specified as part of Shared Targeting.
4040 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d
4041 # together.
4042 { # A polymorphic targeting value used as part of Shared Targeting.
4043 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
4044 # Filled in when key = GOOG_CREATIVE_SIZE
4045 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
4046 # of the creative
4047 # height depend on the type of the targeting.
4048 &quot;height&quot;: 42, # The height of the creative.
4049 &quot;width&quot;: 42, # The width of the creative
4050 },
4051 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
4052 # If this repeated field is empty then all formats are allowed.
4053 # For example, if this field contains AllowedFormatType.AUDIO then the
4054 # publisher only allows an audio ad (without any video).
4055 &quot;A String&quot;,
4056 ],
4057 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
4058 # Companion sizes may be filled in only when creative_size_type = VIDEO
4059 { # Message depicting the size of the creative. The units of width and
4060 # height depend on the type of the targeting.
4061 &quot;height&quot;: 42, # The height of the creative.
4062 &quot;width&quot;: 42, # The width of the creative
4063 },
4064 ],
4065 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
4066 # creative_size_type = CreativeSizeType.VIDEO.
4067 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4068 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
4069 # only if creative_size_type = CreativeSizeType.NATIVE.
4070 },
4071 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4072 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4073 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
4074 # Filled in when the key is GOOG_DAYPART_TARGETING.
4075 # The definition of this targeting is derived from the structure
4076 # used by Ad Manager.
4077 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4078 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4079 { # Daypart targeting message that specifies if the ad can be shown
4080 # only during certain parts of a day/week.
4081 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
4082 # The start time is inclusive.
4083 # This field is not available for filtering in PQL queries.
4084 # or are specified elsewhere. An API may choose to allow leap seconds. Related
4085 # types are google.type.Date and `google.protobuf.Timestamp`.
4086 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4087 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
4088 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4089 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4090 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
4091 # allow the value 60 if it allows leap-seconds.
4092 },
4093 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4094 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
4095 # granularity). The end time is exclusive. This field is not available
4096 # for filtering in PQL queries.
4097 # or are specified elsewhere. An API may choose to allow leap seconds. Related
4098 # types are google.type.Date and `google.protobuf.Timestamp`.
4099 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4100 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
4101 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4102 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4103 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
4104 # allow the value 60 if it allows leap-seconds.
4105 },
4106 },
4107 ],
4108 },
4109 },
4110 ],
4111 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion.
4112 # Targeting criteria defined by Google ad servers will begin with GOOG_.
4113 # Third parties may define their own keys.
4114 # A list of permissible keys along with the acceptable values will be
4115 # provided as part of the external documentation.
4116 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d
4117 # together.
4118 { # A polymorphic targeting value used as part of Shared Targeting.
4119 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
4120 # Filled in when key = GOOG_CREATIVE_SIZE
4121 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
4122 # of the creative
4123 # height depend on the type of the targeting.
4124 &quot;height&quot;: 42, # The height of the creative.
4125 &quot;width&quot;: 42, # The width of the creative
4126 },
4127 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
4128 # If this repeated field is empty then all formats are allowed.
4129 # For example, if this field contains AllowedFormatType.AUDIO then the
4130 # publisher only allows an audio ad (without any video).
4131 &quot;A String&quot;,
4132 ],
4133 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
4134 # Companion sizes may be filled in only when creative_size_type = VIDEO
4135 { # Message depicting the size of the creative. The units of width and
4136 # height depend on the type of the targeting.
4137 &quot;height&quot;: 42, # The height of the creative.
4138 &quot;width&quot;: 42, # The width of the creative
4139 },
4140 ],
4141 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
4142 # creative_size_type = CreativeSizeType.VIDEO.
4143 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4144 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
4145 # only if creative_size_type = CreativeSizeType.NATIVE.
4146 },
4147 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4148 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4149 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
4150 # Filled in when the key is GOOG_DAYPART_TARGETING.
4151 # The definition of this targeting is derived from the structure
4152 # used by Ad Manager.
4153 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4154 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4155 { # Daypart targeting message that specifies if the ad can be shown
4156 # only during certain parts of a day/week.
4157 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
4158 # The start time is inclusive.
4159 # This field is not available for filtering in PQL queries.
4160 # or are specified elsewhere. An API may choose to allow leap seconds. Related
4161 # types are google.type.Date and `google.protobuf.Timestamp`.
4162 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4163 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
4164 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4165 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4166 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
4167 # allow the value 60 if it allows leap-seconds.
4168 },
4169 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4170 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
4171 # granularity). The end time is exclusive. This field is not available
4172 # for filtering in PQL queries.
4173 # or are specified elsewhere. An API may choose to allow leap seconds. Related
4174 # types are google.type.Date and `google.protobuf.Timestamp`.
4175 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4176 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
4177 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4178 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4179 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
4180 # allow the value 60 if it allows leap-seconds.
4181 },
4182 },
4183 ],
4184 },
4185 },
4186 ],
4187 },
4188 ],
4189 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
4190 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
4191 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal.
4192 # This will generally be stored in a granularity of a second.
4193 # A value is not required for Private Auction deals or Preferred Deals.
4194 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal.
4195 #
4196 # Note: This field may be set only when creating the resource. Modifying
4197 # this field while updating the resource will result in an error.
4198 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created.
4199 #
4200 # Note: This field may be set only when creating the resource. Modifying
4201 # this field while updating the resource will result in an error.
4202 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
4203 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
4204 # deal.
4205 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004206 # If present on create, and the server `product_revision` has advanced sinced
4207 # the passed-in `create_product_revision`, an `ABORTED` error will be
4208 # returned.
4209 #
4210 # Note: This field may be set only when creating the resource. Modifying
4211 # this field while updating the resource will result in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07004212 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
4213 { # Contains information on how a buyer or seller can be reached.
4214 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4215 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4216 },
4217 ],
4218 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004219 # This will generally be stored in the granularity of one second since deal
4220 # serving starts at seconds boundary. Any time specified with more
4221 # granularity (e.g., in milliseconds) will be truncated towards the start of
4222 # time in seconds.
Bu Sun Kim65020912020-05-20 12:08:20 -07004223 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
4224 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things # The negotiable terms of the deal.
4225 # like price per buyer, the type of pricing model (e.g., fixed price, auction)
4226 # and expected impressions from the publisher.
4227 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
4228 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via # The terms for non-guaranteed fixed price deals.
4229 # the API at this time, but can be returned in a get or list request.
4230 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
4231 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
4232 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
4233 # a particular buyer or buyer/advertiser pair, we look for the most specific
4234 # matching rule - we first look for a rule matching the buyer and advertiser,
4235 # next a rule with the buyer but an empty advertiser list, and otherwise look
4236 # for a matching rule where no buyer is set.
4237 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4238 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4239 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
4240 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
4241 # The value must be between -999,999,999 and +999,999,999 inclusive.
4242 # If `units` is positive, `nanos` must be positive or zero.
4243 # If `units` is zero, `nanos` can be positive, zero, or negative.
4244 # If `units` is negative, `nanos` must be negative or zero.
4245 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4246 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
4247 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4248 },
4249 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4250 },
4251 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
4252 # If empty, all advertisers with this buyer pay this price.
4253 &quot;A String&quot;,
4254 ],
4255 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
4256 # (if the
4257 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
4258 # Authorized Buyers account ID.
4259 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4260 },
4261 },
4262 ],
4263 },
4264 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day.
4265 # Can be set by buyer or seller.
4266 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only # The terms for non-guaranteed auction deals.
4267 # by the seller, but they can be returned in a get or list request.
4268 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers
4269 # in this private auction.
4270 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
4271 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
4272 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
4273 # a particular buyer or buyer/advertiser pair, we look for the most specific
4274 # matching rule - we first look for a rule matching the buyer and advertiser,
4275 # next a rule with the buyer but an empty advertiser list, and otherwise look
4276 # for a matching rule where no buyer is set.
4277 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4278 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4279 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
4280 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
4281 # The value must be between -999,999,999 and +999,999,999 inclusive.
4282 # If `units` is positive, `nanos` must be positive or zero.
4283 # If `units` is zero, `nanos` can be positive, zero, or negative.
4284 # If `units` is negative, `nanos` must be negative or zero.
4285 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4286 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
4287 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4288 },
4289 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4290 },
4291 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
4292 # If empty, all advertisers with this buyer pay this price.
4293 &quot;A String&quot;,
4294 ],
4295 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
4296 # (if the
4297 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
4298 # Authorized Buyers account ID.
4299 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4300 },
4301 },
4302 ],
4303 },
4304 &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.
4305 # Can be set by buyer or seller.
4306 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4307 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
4308 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
4309 # The value must be between -999,999,999 and +999,999,999 inclusive.
4310 # If `units` is positive, `nanos` must be positive or zero.
4311 # If `units` is zero, `nanos` can be positive, zero, or negative.
4312 # If `units` is negative, `nanos` must be negative or zero.
4313 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4314 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
4315 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4316 },
4317 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4318 },
4319 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
4320 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the
4321 # time zone used to mark the boundaries of a day. It should be an
4322 # IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information,
4323 # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
4324 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
4325 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage
4326 # of guaranteed looks that the buyer is guaranteeing to buy.
4327 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
4328 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
4329 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
4330 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
4331 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
4332 # a particular buyer or buyer/advertiser pair, we look for the most specific
4333 # matching rule - we first look for a rule matching the buyer and advertiser,
4334 # next a rule with the buyer but an empty advertiser list, and otherwise look
4335 # for a matching rule where no buyer is set.
4336 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4337 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4338 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
4339 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
4340 # The value must be between -999,999,999 and +999,999,999 inclusive.
4341 # If `units` is positive, `nanos` must be positive or zero.
4342 # If `units` is zero, `nanos` can be positive, zero, or negative.
4343 # If `units` is negative, `nanos` must be negative or zero.
4344 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4345 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
4346 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4347 },
4348 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4349 },
4350 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
4351 # If empty, all advertisers with this buyer pay this price.
4352 &quot;A String&quot;,
4353 ],
4354 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
4355 # (if the
4356 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
4357 # Authorized Buyers account ID.
4358 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4359 },
4360 },
4361 ],
4362 },
4363 },
4364 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004365 # target ad inventory. For example, they can choose to target ad requests only
4366 # if the user is in the US.
4367 # Multiple types of targeting are always applied as a logical AND, unless noted
4368 # otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07004369 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # Geo criteria IDs to be included/excluded.
4370 # included and excluded numeric IDs.
4371 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4372 &quot;A String&quot;,
4373 ],
4374 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4375 &quot;A String&quot;,
4376 ],
4377 },
4378 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad # Inventory sizes to be included/excluded.
4379 # request. It only applies to Private Auction, AdX Preferred Deals and
4380 # Auction Packages. This targeting does not apply to Programmatic Guaranteed
4381 # and Preferred Deals in Ad Manager.
4382 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
4383 { # Represents size of a single ad slot, or a creative.
4384 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
4385 # This field will be present only when size type is `PIXEL`.
4386 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4387 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
4388 # This field will be present only when size type is `PIXEL`.
4389 },
4390 ],
4391 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
4392 { # Represents size of a single ad slot, or a creative.
4393 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
4394 # This field will be present only when size type is `PIXEL`.
4395 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4396 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
4397 # This field will be present only when size type is `PIXEL`.
4398 },
4399 ],
4400 },
4401 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
4402 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included.
4403 # When the included list is present, the excluded list must be empty.
4404 # When the excluded list is present, the included list must be empty.
4405 &quot;A String&quot;,
4406 ],
4407 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded.
4408 # Position types can either be included or excluded (XOR).
4409 &quot;A String&quot;,
4410 ],
4411 },
4412 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
4413 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device capabilities to be included/excluded.
4414 # included and excluded numeric IDs.
4415 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4416 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07004417 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004418 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4419 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07004420 ],
4421 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004422 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
4423 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating systems to be included/excluded.
4424 # included and excluded numeric IDs.
4425 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4426 &quot;A String&quot;,
4427 ],
4428 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4429 &quot;A String&quot;,
4430 ],
4431 },
4432 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating system versions to be included/excluded.
4433 # included and excluded numeric IDs.
4434 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4435 &quot;A String&quot;,
4436 ],
4437 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4438 &quot;A String&quot;,
4439 ],
4440 },
4441 },
4442 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device categories to be included/excluded.
4443 # included and excluded numeric IDs.
4444 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4445 &quot;A String&quot;,
4446 ],
4447 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4448 &quot;A String&quot;,
4449 ],
4450 },
4451 },
4452 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or # Placement targeting information, e.g., URL, mobile applications.
4453 # mobile applications.
4454 # Different placement targeting types will be logically OR&#x27;ed.
4455 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). # URLs to be included/excluded.
4456 # For Private Auction and AdX Preferred Deals, URLs are either included or
4457 # excluded.
4458 # For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t
4459 # apply.
4460 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
4461 &quot;A String&quot;,
4462 ],
4463 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
4464 &quot;A String&quot;,
4465 ],
4466 },
4467 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal.
4468 # This doesn&#x27;t apply to Auction Packages.
4469 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that # Publisher owned apps to be targeted or excluded by the publisher to
Dan O'Mearadd494642020-05-01 07:42:23 -07004470 # display the ads in.
4471 # publishers own.
4472 # Mobile application IDs are from App Store and Google Play Store.
4473 # Android App ID, for example, com.google.android.apps.maps, can be found in
4474 # Google Play Store URL.
4475 # iOS App ID (which is a number) can be found at the end of iTunes store URL.
4476 # First party mobile applications is either included or excluded.
Bu Sun Kim65020912020-05-20 12:08:20 -07004477 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
4478 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07004479 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004480 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
4481 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07004482 ],
4483 },
4484 },
4485 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004486 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004487 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
4488 &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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004489 # to see but are non-negotiable. These are set by the publisher.
Bu Sun Kim65020912020-05-20 12:08:20 -07004490 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
4491 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004492 { # Frequency cap.
Bu Sun Kim65020912020-05-20 12:08:20 -07004493 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004494 # amount of time over which impressions per user are counted and capped.
Bu Sun Kim65020912020-05-20 12:08:20 -07004495 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004496 # specified time period.
Bu Sun Kim65020912020-05-20 12:08:20 -07004497 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over
4498 # which impressions per user are counted and capped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004499 },
4500 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004501 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004502 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004503 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is
4504 # finalized. This is the deal ID that shows up in serving/reporting etc.
4505 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ # Output only. Restricitions about the creatives associated with the deal
Dan O'Mearadd494642020-05-01 07:42:23 -07004506 # (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals
4507 # in Ad Manager.
4508 # Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07004509 # This doesn&#x27;t apply to Private Auction and AdX Preferred Deals.
4510 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
4511 &quot;creativeSpecifications&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -07004512 { # Represents information for a creative that is associated with a Programmatic
4513 # Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07004514 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
4515 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07004516 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004517 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4518 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07004519 # This field will be present only when size type is `PIXEL`.
4520 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004521 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
Dan O'Mearadd494642020-05-01 07:42:23 -07004522 { # Represents size of a single ad slot, or a creative.
Bu Sun Kim65020912020-05-20 12:08:20 -07004523 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07004524 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004525 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4526 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07004527 # This field will be present only when size type is `PIXEL`.
4528 },
4529 ],
4530 },
4531 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004532 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
Dan O'Mearadd494642020-05-01 07:42:23 -07004533 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004534 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
4535 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. # Output only. Tracks which parties (if any) have paused a deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004536 # The deal is considered paused if either hasBuyerPaused or
4537 # hasSellPaused is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07004538 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
4539 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
4540 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
4541 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
4542 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004543 },
4544 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004545 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004546 },
4547 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004548 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07004549 # Each update to the proposal or the deal causes the proposal revision number
4550 # to auto-increment. The buyer keeps track of the last revision number they
4551 # know of and pass it in when making an update. If the head revision number
4552 # on the server has since incremented, then an ABORTED error is returned
4553 # during the update operation to let the buyer know that a subsequent update
4554 # was made.
Bu Sun Kim65020912020-05-20 12:08:20 -07004555 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique # Reference to the seller on the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07004556 #
4557 # Note: This field may be set only when creating the resource. Modifying
4558 # this field while updating the resource will result in an error.
4559 # Ad Manager account ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07004560 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
4561 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field.
Dan O'Mearadd494642020-05-01 07:42:23 -07004562 # The seller account ID is then available to buyer in the product.
4563 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004564 },
4565 ],
4566 }</pre>
4567</div>
4568
4569<div class="method">
4570 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
4571 <pre>Retrieves the next page of results.
4572
4573Args:
4574 previous_request: The request for the previous page. (required)
4575 previous_response: The response from the request for the previous page. (required)
4576
4577Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07004578 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004579 page. Returns None if there are no more items in the collection.
4580 </pre>
4581</div>
4582
4583<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004584 <code class="details" id="pause">pause(accountId, proposalId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004585 <pre>Update the given proposal to pause serving.
4586This method will set the
4587`DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to true for all
4588deals in the proposal.
4589
4590It is a no-op to pause an already-paused proposal.
4591It is an error to call PauseProposal for a proposal that is not
4592finalized or renegotiating.
4593
4594Args:
4595 accountId: string, Account ID of the buyer. (required)
4596 proposalId: string, The ID of the proposal to pause. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004597 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004598 The object takes the form of:
4599
4600{ # Request message to pause serving for an already-finalized proposal.
Bu Sun Kim65020912020-05-20 12:08:20 -07004601 &quot;reason&quot;: &quot;A String&quot;, # The reason why the proposal is being paused.
4602 # This human readable message will be displayed in the seller&#x27;s UI.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004603 # (Max length: 1000 unicode code units.)
4604 }
4605
4606 x__xgafv: string, V1 error format.
4607 Allowed values
4608 1 - v1 error format
4609 2 - v2 error format
4610
4611Returns:
4612 An object of the form:
4613
4614 { # Note: this resource requires whitelisting for access. Please contact your
4615 # account manager for access to Marketplace resources.
4616 #
4617 # Represents a proposal in the Marketplace. A proposal is the unit of
4618 # negotiation between a seller and a buyer and contains deals which
4619 # are served.
4620 #
4621 # Note: you can not update, create, or otherwise modify Private
4622 # Auction or Preferred Deals deals through the API.
4623 #
4624 # Fields are updatable unless noted otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07004625 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Reference to the buyer on the proposal.
4626 #
4627 # Note: This field may be set only when creating the resource. Modifying
4628 # this field while updating the resource will result in an error.
4629 # Authorized Buyers account ID.
4630 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4631 },
4632 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
4633 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
4634 { # A proposal may be associated to several notes.
4635 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach.
4636 # (max-length: 1024 unicode code units)
4637 #
4638 # Note: This field may be set only when creating the resource. Modifying
4639 # this field while updating the resource will result in an error.
4640 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
4641 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
4642 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
4643 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
4644 },
4645 ],
4646 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
4647 # proposal.
4648 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
4649 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
4650 { # Contains information on how a buyer or seller can be reached.
4651 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4652 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4653 },
4654 ],
4655 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction
4656 # proposal.
4657 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
4658 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or
4659 # left a comment.
4660 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
4661 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
4662 # operations (max-length: 1024 unicode code units).
4663 },
4664 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
4665 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
4666 { # Contains information on how a buyer or seller can be reached.
4667 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4668 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4669 },
4670 ],
4671 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Output only. Reference to the buyer that will get billed for this proposal.
4672 # Authorized Buyers account ID.
4673 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4674 },
4675 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
4676 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
4677 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004678 # (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
4679 { # A deal represents a segment of inventory for displaying ads on.
4680 # A proposal can contain multiple deals. A deal contains the terms and
4681 # targeting information that is used for serving.
Bu Sun Kim65020912020-05-20 12:08:20 -07004682 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals.
4683 # PUBLISHER means creative is provided by seller and ADVERTISER means
4684 # creative is provided by buyer.
4685 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
4686 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
4687 # operations (max-length: 1024 unicode code units).
4688 },
4689 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
4690 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
4691 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
4692 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared
4693 # targeting entity is AND&#x27;d together.
4694 { # Advertisers can target different attributes of an ad slot. For example,
4695 # they can choose to show ads only if the user is in the U.S. Such
4696 # targeting criteria can be specified as part of Shared Targeting.
4697 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d
4698 # together.
4699 { # A polymorphic targeting value used as part of Shared Targeting.
4700 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
4701 # Filled in when key = GOOG_CREATIVE_SIZE
4702 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
4703 # of the creative
4704 # height depend on the type of the targeting.
4705 &quot;height&quot;: 42, # The height of the creative.
4706 &quot;width&quot;: 42, # The width of the creative
4707 },
4708 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
4709 # If this repeated field is empty then all formats are allowed.
4710 # For example, if this field contains AllowedFormatType.AUDIO then the
4711 # publisher only allows an audio ad (without any video).
4712 &quot;A String&quot;,
4713 ],
4714 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
4715 # Companion sizes may be filled in only when creative_size_type = VIDEO
4716 { # Message depicting the size of the creative. The units of width and
4717 # height depend on the type of the targeting.
4718 &quot;height&quot;: 42, # The height of the creative.
4719 &quot;width&quot;: 42, # The width of the creative
4720 },
4721 ],
4722 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
4723 # creative_size_type = CreativeSizeType.VIDEO.
4724 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4725 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
4726 # only if creative_size_type = CreativeSizeType.NATIVE.
4727 },
4728 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4729 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4730 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
4731 # Filled in when the key is GOOG_DAYPART_TARGETING.
4732 # The definition of this targeting is derived from the structure
4733 # used by Ad Manager.
4734 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4735 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4736 { # Daypart targeting message that specifies if the ad can be shown
4737 # only during certain parts of a day/week.
4738 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
4739 # The start time is inclusive.
4740 # This field is not available for filtering in PQL queries.
4741 # or are specified elsewhere. An API may choose to allow leap seconds. Related
4742 # types are google.type.Date and `google.protobuf.Timestamp`.
4743 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4744 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
4745 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4746 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4747 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
4748 # allow the value 60 if it allows leap-seconds.
4749 },
4750 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4751 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
4752 # granularity). The end time is exclusive. This field is not available
4753 # for filtering in PQL queries.
4754 # or are specified elsewhere. An API may choose to allow leap seconds. Related
4755 # types are google.type.Date and `google.protobuf.Timestamp`.
4756 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4757 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
4758 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4759 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4760 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
4761 # allow the value 60 if it allows leap-seconds.
4762 },
4763 },
4764 ],
4765 },
4766 },
4767 ],
4768 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion.
4769 # Targeting criteria defined by Google ad servers will begin with GOOG_.
4770 # Third parties may define their own keys.
4771 # A list of permissible keys along with the acceptable values will be
4772 # provided as part of the external documentation.
4773 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d
4774 # together.
4775 { # A polymorphic targeting value used as part of Shared Targeting.
4776 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
4777 # Filled in when key = GOOG_CREATIVE_SIZE
4778 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
4779 # of the creative
4780 # height depend on the type of the targeting.
4781 &quot;height&quot;: 42, # The height of the creative.
4782 &quot;width&quot;: 42, # The width of the creative
4783 },
4784 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
4785 # If this repeated field is empty then all formats are allowed.
4786 # For example, if this field contains AllowedFormatType.AUDIO then the
4787 # publisher only allows an audio ad (without any video).
4788 &quot;A String&quot;,
4789 ],
4790 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
4791 # Companion sizes may be filled in only when creative_size_type = VIDEO
4792 { # Message depicting the size of the creative. The units of width and
4793 # height depend on the type of the targeting.
4794 &quot;height&quot;: 42, # The height of the creative.
4795 &quot;width&quot;: 42, # The width of the creative
4796 },
4797 ],
4798 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
4799 # creative_size_type = CreativeSizeType.VIDEO.
4800 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4801 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
4802 # only if creative_size_type = CreativeSizeType.NATIVE.
4803 },
4804 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4805 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4806 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
4807 # Filled in when the key is GOOG_DAYPART_TARGETING.
4808 # The definition of this targeting is derived from the structure
4809 # used by Ad Manager.
4810 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4811 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4812 { # Daypart targeting message that specifies if the ad can be shown
4813 # only during certain parts of a day/week.
4814 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
4815 # The start time is inclusive.
4816 # This field is not available for filtering in PQL queries.
4817 # or are specified elsewhere. An API may choose to allow leap seconds. Related
4818 # types are google.type.Date and `google.protobuf.Timestamp`.
4819 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4820 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
4821 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4822 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4823 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
4824 # allow the value 60 if it allows leap-seconds.
4825 },
4826 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4827 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
4828 # granularity). The end time is exclusive. This field is not available
4829 # for filtering in PQL queries.
4830 # or are specified elsewhere. An API may choose to allow leap seconds. Related
4831 # types are google.type.Date and `google.protobuf.Timestamp`.
4832 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4833 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
4834 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4835 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4836 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
4837 # allow the value 60 if it allows leap-seconds.
4838 },
4839 },
4840 ],
4841 },
4842 },
4843 ],
4844 },
4845 ],
4846 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
4847 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
4848 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal.
4849 # This will generally be stored in a granularity of a second.
4850 # A value is not required for Private Auction deals or Preferred Deals.
4851 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal.
4852 #
4853 # Note: This field may be set only when creating the resource. Modifying
4854 # this field while updating the resource will result in an error.
4855 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created.
4856 #
4857 # Note: This field may be set only when creating the resource. Modifying
4858 # this field while updating the resource will result in an error.
4859 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
4860 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
4861 # deal.
4862 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004863 # If present on create, and the server `product_revision` has advanced sinced
4864 # the passed-in `create_product_revision`, an `ABORTED` error will be
4865 # returned.
4866 #
4867 # Note: This field may be set only when creating the resource. Modifying
4868 # this field while updating the resource will result in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07004869 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
4870 { # Contains information on how a buyer or seller can be reached.
4871 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4872 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4873 },
4874 ],
4875 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004876 # This will generally be stored in the granularity of one second since deal
4877 # serving starts at seconds boundary. Any time specified with more
4878 # granularity (e.g., in milliseconds) will be truncated towards the start of
4879 # time in seconds.
Bu Sun Kim65020912020-05-20 12:08:20 -07004880 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
4881 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things # The negotiable terms of the deal.
4882 # like price per buyer, the type of pricing model (e.g., fixed price, auction)
4883 # and expected impressions from the publisher.
4884 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
4885 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via # The terms for non-guaranteed fixed price deals.
4886 # the API at this time, but can be returned in a get or list request.
4887 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
4888 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
4889 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
4890 # a particular buyer or buyer/advertiser pair, we look for the most specific
4891 # matching rule - we first look for a rule matching the buyer and advertiser,
4892 # next a rule with the buyer but an empty advertiser list, and otherwise look
4893 # for a matching rule where no buyer is set.
4894 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4895 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4896 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
4897 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
4898 # The value must be between -999,999,999 and +999,999,999 inclusive.
4899 # If `units` is positive, `nanos` must be positive or zero.
4900 # If `units` is zero, `nanos` can be positive, zero, or negative.
4901 # If `units` is negative, `nanos` must be negative or zero.
4902 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4903 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
4904 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4905 },
4906 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4907 },
4908 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
4909 # If empty, all advertisers with this buyer pay this price.
4910 &quot;A String&quot;,
4911 ],
4912 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
4913 # (if the
4914 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
4915 # Authorized Buyers account ID.
4916 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4917 },
4918 },
4919 ],
4920 },
4921 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day.
4922 # Can be set by buyer or seller.
4923 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only # The terms for non-guaranteed auction deals.
4924 # by the seller, but they can be returned in a get or list request.
4925 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers
4926 # in this private auction.
4927 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
4928 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
4929 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
4930 # a particular buyer or buyer/advertiser pair, we look for the most specific
4931 # matching rule - we first look for a rule matching the buyer and advertiser,
4932 # next a rule with the buyer but an empty advertiser list, and otherwise look
4933 # for a matching rule where no buyer is set.
4934 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4935 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4936 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
4937 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
4938 # The value must be between -999,999,999 and +999,999,999 inclusive.
4939 # If `units` is positive, `nanos` must be positive or zero.
4940 # If `units` is zero, `nanos` can be positive, zero, or negative.
4941 # If `units` is negative, `nanos` must be negative or zero.
4942 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4943 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
4944 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4945 },
4946 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4947 },
4948 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
4949 # If empty, all advertisers with this buyer pay this price.
4950 &quot;A String&quot;,
4951 ],
4952 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
4953 # (if the
4954 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
4955 # Authorized Buyers account ID.
4956 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4957 },
4958 },
4959 ],
4960 },
4961 &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.
4962 # Can be set by buyer or seller.
4963 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4964 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
4965 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
4966 # The value must be between -999,999,999 and +999,999,999 inclusive.
4967 # If `units` is positive, `nanos` must be positive or zero.
4968 # If `units` is zero, `nanos` can be positive, zero, or negative.
4969 # If `units` is negative, `nanos` must be negative or zero.
4970 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4971 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
4972 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4973 },
4974 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4975 },
4976 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
4977 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the
4978 # time zone used to mark the boundaries of a day. It should be an
4979 # IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information,
4980 # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
4981 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
4982 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage
4983 # of guaranteed looks that the buyer is guaranteeing to buy.
4984 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
4985 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
4986 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
4987 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
4988 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
4989 # a particular buyer or buyer/advertiser pair, we look for the most specific
4990 # matching rule - we first look for a rule matching the buyer and advertiser,
4991 # next a rule with the buyer but an empty advertiser list, and otherwise look
4992 # for a matching rule where no buyer is set.
4993 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4994 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4995 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
4996 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
4997 # The value must be between -999,999,999 and +999,999,999 inclusive.
4998 # If `units` is positive, `nanos` must be positive or zero.
4999 # If `units` is zero, `nanos` can be positive, zero, or negative.
5000 # If `units` is negative, `nanos` must be negative or zero.
5001 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
5002 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
5003 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
5004 },
5005 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
5006 },
5007 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
5008 # If empty, all advertisers with this buyer pay this price.
5009 &quot;A String&quot;,
5010 ],
5011 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
5012 # (if the
5013 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
5014 # Authorized Buyers account ID.
5015 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
5016 },
5017 },
5018 ],
5019 },
5020 },
5021 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005022 # target ad inventory. For example, they can choose to target ad requests only
5023 # if the user is in the US.
5024 # Multiple types of targeting are always applied as a logical AND, unless noted
5025 # otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07005026 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # Geo criteria IDs to be included/excluded.
5027 # included and excluded numeric IDs.
5028 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
5029 &quot;A String&quot;,
5030 ],
5031 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
5032 &quot;A String&quot;,
5033 ],
5034 },
5035 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad # Inventory sizes to be included/excluded.
5036 # request. It only applies to Private Auction, AdX Preferred Deals and
5037 # Auction Packages. This targeting does not apply to Programmatic Guaranteed
5038 # and Preferred Deals in Ad Manager.
5039 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
5040 { # Represents size of a single ad slot, or a creative.
5041 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
5042 # This field will be present only when size type is `PIXEL`.
5043 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
5044 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
5045 # This field will be present only when size type is `PIXEL`.
5046 },
5047 ],
5048 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
5049 { # Represents size of a single ad slot, or a creative.
5050 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
5051 # This field will be present only when size type is `PIXEL`.
5052 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
5053 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
5054 # This field will be present only when size type is `PIXEL`.
5055 },
5056 ],
5057 },
5058 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
5059 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included.
5060 # When the included list is present, the excluded list must be empty.
5061 # When the excluded list is present, the included list must be empty.
5062 &quot;A String&quot;,
5063 ],
5064 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded.
5065 # Position types can either be included or excluded (XOR).
5066 &quot;A String&quot;,
5067 ],
5068 },
5069 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
5070 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device capabilities to be included/excluded.
5071 # included and excluded numeric IDs.
5072 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
5073 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07005074 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005075 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
5076 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07005077 ],
5078 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005079 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
5080 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating systems to be included/excluded.
5081 # included and excluded numeric IDs.
5082 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
5083 &quot;A String&quot;,
5084 ],
5085 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
5086 &quot;A String&quot;,
5087 ],
5088 },
5089 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating system versions to be included/excluded.
5090 # included and excluded numeric IDs.
5091 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
5092 &quot;A String&quot;,
5093 ],
5094 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
5095 &quot;A String&quot;,
5096 ],
5097 },
5098 },
5099 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device categories to be included/excluded.
5100 # included and excluded numeric IDs.
5101 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
5102 &quot;A String&quot;,
5103 ],
5104 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
5105 &quot;A String&quot;,
5106 ],
5107 },
5108 },
5109 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or # Placement targeting information, e.g., URL, mobile applications.
5110 # mobile applications.
5111 # Different placement targeting types will be logically OR&#x27;ed.
5112 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). # URLs to be included/excluded.
5113 # For Private Auction and AdX Preferred Deals, URLs are either included or
5114 # excluded.
5115 # For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t
5116 # apply.
5117 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
5118 &quot;A String&quot;,
5119 ],
5120 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
5121 &quot;A String&quot;,
5122 ],
5123 },
5124 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal.
5125 # This doesn&#x27;t apply to Auction Packages.
5126 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that # Publisher owned apps to be targeted or excluded by the publisher to
Dan O'Mearadd494642020-05-01 07:42:23 -07005127 # display the ads in.
5128 # publishers own.
5129 # Mobile application IDs are from App Store and Google Play Store.
5130 # Android App ID, for example, com.google.android.apps.maps, can be found in
5131 # Google Play Store URL.
5132 # iOS App ID (which is a number) can be found at the end of iTunes store URL.
5133 # First party mobile applications is either included or excluded.
Bu Sun Kim65020912020-05-20 12:08:20 -07005134 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
5135 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07005136 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005137 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
5138 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07005139 ],
5140 },
5141 },
5142 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005143 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005144 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
5145 &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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005146 # to see but are non-negotiable. These are set by the publisher.
Bu Sun Kim65020912020-05-20 12:08:20 -07005147 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
5148 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005149 { # Frequency cap.
Bu Sun Kim65020912020-05-20 12:08:20 -07005150 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005151 # amount of time over which impressions per user are counted and capped.
Bu Sun Kim65020912020-05-20 12:08:20 -07005152 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005153 # specified time period.
Bu Sun Kim65020912020-05-20 12:08:20 -07005154 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over
5155 # which impressions per user are counted and capped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005156 },
5157 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005158 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005159 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005160 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is
5161 # finalized. This is the deal ID that shows up in serving/reporting etc.
5162 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ # Output only. Restricitions about the creatives associated with the deal
Dan O'Mearadd494642020-05-01 07:42:23 -07005163 # (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals
5164 # in Ad Manager.
5165 # Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07005166 # This doesn&#x27;t apply to Private Auction and AdX Preferred Deals.
5167 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
5168 &quot;creativeSpecifications&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -07005169 { # Represents information for a creative that is associated with a Programmatic
5170 # Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07005171 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
5172 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07005173 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07005174 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
5175 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07005176 # This field will be present only when size type is `PIXEL`.
5177 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005178 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
Dan O'Mearadd494642020-05-01 07:42:23 -07005179 { # Represents size of a single ad slot, or a creative.
Bu Sun Kim65020912020-05-20 12:08:20 -07005180 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07005181 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07005182 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
5183 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07005184 # This field will be present only when size type is `PIXEL`.
5185 },
5186 ],
5187 },
5188 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005189 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
Dan O'Mearadd494642020-05-01 07:42:23 -07005190 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005191 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
5192 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. # Output only. Tracks which parties (if any) have paused a deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005193 # The deal is considered paused if either hasBuyerPaused or
5194 # hasSellPaused is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07005195 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
5196 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
5197 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
5198 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
5199 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005200 },
5201 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005202 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005203 },
5204 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005205 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07005206 # Each update to the proposal or the deal causes the proposal revision number
5207 # to auto-increment. The buyer keeps track of the last revision number they
5208 # know of and pass it in when making an update. If the head revision number
5209 # on the server has since incremented, then an ABORTED error is returned
5210 # during the update operation to let the buyer know that a subsequent update
5211 # was made.
Bu Sun Kim65020912020-05-20 12:08:20 -07005212 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique # Reference to the seller on the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07005213 #
5214 # Note: This field may be set only when creating the resource. Modifying
5215 # this field while updating the resource will result in an error.
5216 # Ad Manager account ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07005217 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
5218 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field.
Dan O'Mearadd494642020-05-01 07:42:23 -07005219 # The seller account ID is then available to buyer in the product.
5220 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005221 }</pre>
5222</div>
5223
5224<div class="method">
5225 <code class="details" id="resume">resume(accountId, proposalId, body=None, x__xgafv=None)</code>
5226 <pre>Update the given proposal to resume serving.
5227This method will set the
5228`DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to false for all
5229deals in the proposal.
5230
5231Note that if the `has_seller_paused` bit is also set, serving will not
5232resume until the seller also resumes.
5233
5234It is a no-op to resume an already-running proposal.
5235It is an error to call ResumeProposal for a proposal that is not
5236finalized or renegotiating.
5237
5238Args:
5239 accountId: string, Account ID of the buyer. (required)
5240 proposalId: string, The ID of the proposal to resume. (required)
5241 body: object, The request body.
5242 The object takes the form of:
5243
5244{ # Request message to resume (unpause) serving for an already-finalized
5245 # proposal.
5246 }
5247
5248 x__xgafv: string, V1 error format.
5249 Allowed values
5250 1 - v1 error format
5251 2 - v2 error format
5252
5253Returns:
5254 An object of the form:
5255
5256 { # Note: this resource requires whitelisting for access. Please contact your
5257 # account manager for access to Marketplace resources.
5258 #
5259 # Represents a proposal in the Marketplace. A proposal is the unit of
5260 # negotiation between a seller and a buyer and contains deals which
5261 # are served.
5262 #
5263 # Note: you can not update, create, or otherwise modify Private
5264 # Auction or Preferred Deals deals through the API.
5265 #
5266 # Fields are updatable unless noted otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07005267 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Reference to the buyer on the proposal.
5268 #
5269 # Note: This field may be set only when creating the resource. Modifying
5270 # this field while updating the resource will result in an error.
5271 # Authorized Buyers account ID.
5272 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
5273 },
5274 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
5275 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
5276 { # A proposal may be associated to several notes.
5277 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach.
5278 # (max-length: 1024 unicode code units)
5279 #
5280 # Note: This field may be set only when creating the resource. Modifying
5281 # this field while updating the resource will result in an error.
5282 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
5283 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
5284 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
5285 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
5286 },
5287 ],
5288 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
5289 # proposal.
5290 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
5291 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
5292 { # Contains information on how a buyer or seller can be reached.
5293 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
5294 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
5295 },
5296 ],
5297 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction
5298 # proposal.
5299 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
5300 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or
5301 # left a comment.
5302 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
5303 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
5304 # operations (max-length: 1024 unicode code units).
5305 },
5306 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
5307 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
5308 { # Contains information on how a buyer or seller can be reached.
5309 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
5310 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
5311 },
5312 ],
5313 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Output only. Reference to the buyer that will get billed for this proposal.
5314 # Authorized Buyers account ID.
5315 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
5316 },
5317 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
5318 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
5319 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005320 # (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
5321 { # A deal represents a segment of inventory for displaying ads on.
5322 # A proposal can contain multiple deals. A deal contains the terms and
5323 # targeting information that is used for serving.
Bu Sun Kim65020912020-05-20 12:08:20 -07005324 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals.
5325 # PUBLISHER means creative is provided by seller and ADVERTISER means
5326 # creative is provided by buyer.
5327 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
5328 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
5329 # operations (max-length: 1024 unicode code units).
5330 },
5331 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
5332 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
5333 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
5334 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared
5335 # targeting entity is AND&#x27;d together.
5336 { # Advertisers can target different attributes of an ad slot. For example,
5337 # they can choose to show ads only if the user is in the U.S. Such
5338 # targeting criteria can be specified as part of Shared Targeting.
5339 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d
5340 # together.
5341 { # A polymorphic targeting value used as part of Shared Targeting.
5342 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
5343 # Filled in when key = GOOG_CREATIVE_SIZE
5344 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
5345 # of the creative
5346 # height depend on the type of the targeting.
5347 &quot;height&quot;: 42, # The height of the creative.
5348 &quot;width&quot;: 42, # The width of the creative
5349 },
5350 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
5351 # If this repeated field is empty then all formats are allowed.
5352 # For example, if this field contains AllowedFormatType.AUDIO then the
5353 # publisher only allows an audio ad (without any video).
5354 &quot;A String&quot;,
5355 ],
5356 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
5357 # Companion sizes may be filled in only when creative_size_type = VIDEO
5358 { # Message depicting the size of the creative. The units of width and
5359 # height depend on the type of the targeting.
5360 &quot;height&quot;: 42, # The height of the creative.
5361 &quot;width&quot;: 42, # The width of the creative
5362 },
5363 ],
5364 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
5365 # creative_size_type = CreativeSizeType.VIDEO.
5366 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
5367 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
5368 # only if creative_size_type = CreativeSizeType.NATIVE.
5369 },
5370 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
5371 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
5372 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
5373 # Filled in when the key is GOOG_DAYPART_TARGETING.
5374 # The definition of this targeting is derived from the structure
5375 # used by Ad Manager.
5376 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
5377 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
5378 { # Daypart targeting message that specifies if the ad can be shown
5379 # only during certain parts of a day/week.
5380 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
5381 # The start time is inclusive.
5382 # This field is not available for filtering in PQL queries.
5383 # or are specified elsewhere. An API may choose to allow leap seconds. Related
5384 # types are google.type.Date and `google.protobuf.Timestamp`.
5385 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
5386 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
5387 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
5388 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
5389 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
5390 # allow the value 60 if it allows leap-seconds.
5391 },
5392 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
5393 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
5394 # granularity). The end time is exclusive. This field is not available
5395 # for filtering in PQL queries.
5396 # or are specified elsewhere. An API may choose to allow leap seconds. Related
5397 # types are google.type.Date and `google.protobuf.Timestamp`.
5398 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
5399 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
5400 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
5401 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
5402 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
5403 # allow the value 60 if it allows leap-seconds.
5404 },
5405 },
5406 ],
5407 },
5408 },
5409 ],
5410 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion.
5411 # Targeting criteria defined by Google ad servers will begin with GOOG_.
5412 # Third parties may define their own keys.
5413 # A list of permissible keys along with the acceptable values will be
5414 # provided as part of the external documentation.
5415 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d
5416 # together.
5417 { # A polymorphic targeting value used as part of Shared Targeting.
5418 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
5419 # Filled in when key = GOOG_CREATIVE_SIZE
5420 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
5421 # of the creative
5422 # height depend on the type of the targeting.
5423 &quot;height&quot;: 42, # The height of the creative.
5424 &quot;width&quot;: 42, # The width of the creative
5425 },
5426 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
5427 # If this repeated field is empty then all formats are allowed.
5428 # For example, if this field contains AllowedFormatType.AUDIO then the
5429 # publisher only allows an audio ad (without any video).
5430 &quot;A String&quot;,
5431 ],
5432 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
5433 # Companion sizes may be filled in only when creative_size_type = VIDEO
5434 { # Message depicting the size of the creative. The units of width and
5435 # height depend on the type of the targeting.
5436 &quot;height&quot;: 42, # The height of the creative.
5437 &quot;width&quot;: 42, # The width of the creative
5438 },
5439 ],
5440 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
5441 # creative_size_type = CreativeSizeType.VIDEO.
5442 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
5443 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
5444 # only if creative_size_type = CreativeSizeType.NATIVE.
5445 },
5446 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
5447 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
5448 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
5449 # Filled in when the key is GOOG_DAYPART_TARGETING.
5450 # The definition of this targeting is derived from the structure
5451 # used by Ad Manager.
5452 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
5453 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
5454 { # Daypart targeting message that specifies if the ad can be shown
5455 # only during certain parts of a day/week.
5456 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
5457 # The start time is inclusive.
5458 # This field is not available for filtering in PQL queries.
5459 # or are specified elsewhere. An API may choose to allow leap seconds. Related
5460 # types are google.type.Date and `google.protobuf.Timestamp`.
5461 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
5462 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
5463 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
5464 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
5465 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
5466 # allow the value 60 if it allows leap-seconds.
5467 },
5468 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
5469 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
5470 # granularity). The end time is exclusive. This field is not available
5471 # for filtering in PQL queries.
5472 # or are specified elsewhere. An API may choose to allow leap seconds. Related
5473 # types are google.type.Date and `google.protobuf.Timestamp`.
5474 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
5475 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
5476 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
5477 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
5478 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
5479 # allow the value 60 if it allows leap-seconds.
5480 },
5481 },
5482 ],
5483 },
5484 },
5485 ],
5486 },
5487 ],
5488 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
5489 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
5490 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal.
5491 # This will generally be stored in a granularity of a second.
5492 # A value is not required for Private Auction deals or Preferred Deals.
5493 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal.
5494 #
5495 # Note: This field may be set only when creating the resource. Modifying
5496 # this field while updating the resource will result in an error.
5497 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created.
5498 #
5499 # Note: This field may be set only when creating the resource. Modifying
5500 # this field while updating the resource will result in an error.
5501 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
5502 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
5503 # deal.
5504 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005505 # If present on create, and the server `product_revision` has advanced sinced
5506 # the passed-in `create_product_revision`, an `ABORTED` error will be
5507 # returned.
5508 #
5509 # Note: This field may be set only when creating the resource. Modifying
5510 # this field while updating the resource will result in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07005511 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
5512 { # Contains information on how a buyer or seller can be reached.
5513 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
5514 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
5515 },
5516 ],
5517 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005518 # This will generally be stored in the granularity of one second since deal
5519 # serving starts at seconds boundary. Any time specified with more
5520 # granularity (e.g., in milliseconds) will be truncated towards the start of
5521 # time in seconds.
Bu Sun Kim65020912020-05-20 12:08:20 -07005522 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
5523 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things # The negotiable terms of the deal.
5524 # like price per buyer, the type of pricing model (e.g., fixed price, auction)
5525 # and expected impressions from the publisher.
5526 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
5527 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via # The terms for non-guaranteed fixed price deals.
5528 # the API at this time, but can be returned in a get or list request.
5529 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
5530 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
5531 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
5532 # a particular buyer or buyer/advertiser pair, we look for the most specific
5533 # matching rule - we first look for a rule matching the buyer and advertiser,
5534 # next a rule with the buyer but an empty advertiser list, and otherwise look
5535 # for a matching rule where no buyer is set.
5536 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
5537 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
5538 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
5539 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
5540 # The value must be between -999,999,999 and +999,999,999 inclusive.
5541 # If `units` is positive, `nanos` must be positive or zero.
5542 # If `units` is zero, `nanos` can be positive, zero, or negative.
5543 # If `units` is negative, `nanos` must be negative or zero.
5544 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
5545 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
5546 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
5547 },
5548 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
5549 },
5550 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
5551 # If empty, all advertisers with this buyer pay this price.
5552 &quot;A String&quot;,
5553 ],
5554 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
5555 # (if the
5556 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
5557 # Authorized Buyers account ID.
5558 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
5559 },
5560 },
5561 ],
5562 },
5563 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day.
5564 # Can be set by buyer or seller.
5565 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only # The terms for non-guaranteed auction deals.
5566 # by the seller, but they can be returned in a get or list request.
5567 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers
5568 # in this private auction.
5569 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
5570 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
5571 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
5572 # a particular buyer or buyer/advertiser pair, we look for the most specific
5573 # matching rule - we first look for a rule matching the buyer and advertiser,
5574 # next a rule with the buyer but an empty advertiser list, and otherwise look
5575 # for a matching rule where no buyer is set.
5576 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
5577 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
5578 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
5579 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
5580 # The value must be between -999,999,999 and +999,999,999 inclusive.
5581 # If `units` is positive, `nanos` must be positive or zero.
5582 # If `units` is zero, `nanos` can be positive, zero, or negative.
5583 # If `units` is negative, `nanos` must be negative or zero.
5584 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
5585 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
5586 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
5587 },
5588 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
5589 },
5590 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
5591 # If empty, all advertisers with this buyer pay this price.
5592 &quot;A String&quot;,
5593 ],
5594 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
5595 # (if the
5596 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
5597 # Authorized Buyers account ID.
5598 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
5599 },
5600 },
5601 ],
5602 },
5603 &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.
5604 # Can be set by buyer or seller.
5605 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
5606 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
5607 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
5608 # The value must be between -999,999,999 and +999,999,999 inclusive.
5609 # If `units` is positive, `nanos` must be positive or zero.
5610 # If `units` is zero, `nanos` can be positive, zero, or negative.
5611 # If `units` is negative, `nanos` must be negative or zero.
5612 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
5613 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
5614 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
5615 },
5616 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
5617 },
5618 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
5619 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the
5620 # time zone used to mark the boundaries of a day. It should be an
5621 # IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information,
5622 # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
5623 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
5624 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage
5625 # of guaranteed looks that the buyer is guaranteeing to buy.
5626 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
5627 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
5628 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
5629 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
5630 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
5631 # a particular buyer or buyer/advertiser pair, we look for the most specific
5632 # matching rule - we first look for a rule matching the buyer and advertiser,
5633 # next a rule with the buyer but an empty advertiser list, and otherwise look
5634 # for a matching rule where no buyer is set.
5635 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
5636 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
5637 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
5638 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
5639 # The value must be between -999,999,999 and +999,999,999 inclusive.
5640 # If `units` is positive, `nanos` must be positive or zero.
5641 # If `units` is zero, `nanos` can be positive, zero, or negative.
5642 # If `units` is negative, `nanos` must be negative or zero.
5643 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
5644 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
5645 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
5646 },
5647 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
5648 },
5649 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
5650 # If empty, all advertisers with this buyer pay this price.
5651 &quot;A String&quot;,
5652 ],
5653 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
5654 # (if the
5655 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
5656 # Authorized Buyers account ID.
5657 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
5658 },
5659 },
5660 ],
5661 },
5662 },
5663 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005664 # target ad inventory. For example, they can choose to target ad requests only
5665 # if the user is in the US.
5666 # Multiple types of targeting are always applied as a logical AND, unless noted
5667 # otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07005668 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # Geo criteria IDs to be included/excluded.
5669 # included and excluded numeric IDs.
5670 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
5671 &quot;A String&quot;,
5672 ],
5673 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
5674 &quot;A String&quot;,
5675 ],
5676 },
5677 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad # Inventory sizes to be included/excluded.
5678 # request. It only applies to Private Auction, AdX Preferred Deals and
5679 # Auction Packages. This targeting does not apply to Programmatic Guaranteed
5680 # and Preferred Deals in Ad Manager.
5681 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
5682 { # Represents size of a single ad slot, or a creative.
5683 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
5684 # This field will be present only when size type is `PIXEL`.
5685 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
5686 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
5687 # This field will be present only when size type is `PIXEL`.
5688 },
5689 ],
5690 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
5691 { # Represents size of a single ad slot, or a creative.
5692 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
5693 # This field will be present only when size type is `PIXEL`.
5694 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
5695 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
5696 # This field will be present only when size type is `PIXEL`.
5697 },
5698 ],
5699 },
5700 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
5701 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included.
5702 # When the included list is present, the excluded list must be empty.
5703 # When the excluded list is present, the included list must be empty.
5704 &quot;A String&quot;,
5705 ],
5706 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded.
5707 # Position types can either be included or excluded (XOR).
5708 &quot;A String&quot;,
5709 ],
5710 },
5711 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
5712 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device capabilities to be included/excluded.
5713 # included and excluded numeric IDs.
5714 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
5715 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07005716 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005717 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
5718 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07005719 ],
5720 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005721 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
5722 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating systems to be included/excluded.
5723 # included and excluded numeric IDs.
5724 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
5725 &quot;A String&quot;,
5726 ],
5727 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
5728 &quot;A String&quot;,
5729 ],
5730 },
5731 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating system versions to be included/excluded.
5732 # included and excluded numeric IDs.
5733 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
5734 &quot;A String&quot;,
5735 ],
5736 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
5737 &quot;A String&quot;,
5738 ],
5739 },
5740 },
5741 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device categories to be included/excluded.
5742 # included and excluded numeric IDs.
5743 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
5744 &quot;A String&quot;,
5745 ],
5746 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
5747 &quot;A String&quot;,
5748 ],
5749 },
5750 },
5751 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or # Placement targeting information, e.g., URL, mobile applications.
5752 # mobile applications.
5753 # Different placement targeting types will be logically OR&#x27;ed.
5754 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). # URLs to be included/excluded.
5755 # For Private Auction and AdX Preferred Deals, URLs are either included or
5756 # excluded.
5757 # For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t
5758 # apply.
5759 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
5760 &quot;A String&quot;,
5761 ],
5762 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
5763 &quot;A String&quot;,
5764 ],
5765 },
5766 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal.
5767 # This doesn&#x27;t apply to Auction Packages.
5768 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that # Publisher owned apps to be targeted or excluded by the publisher to
Dan O'Mearadd494642020-05-01 07:42:23 -07005769 # display the ads in.
5770 # publishers own.
5771 # Mobile application IDs are from App Store and Google Play Store.
5772 # Android App ID, for example, com.google.android.apps.maps, can be found in
5773 # Google Play Store URL.
5774 # iOS App ID (which is a number) can be found at the end of iTunes store URL.
5775 # First party mobile applications is either included or excluded.
Bu Sun Kim65020912020-05-20 12:08:20 -07005776 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
5777 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07005778 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005779 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
5780 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07005781 ],
5782 },
5783 },
5784 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005785 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005786 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
5787 &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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005788 # to see but are non-negotiable. These are set by the publisher.
Bu Sun Kim65020912020-05-20 12:08:20 -07005789 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
5790 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005791 { # Frequency cap.
Bu Sun Kim65020912020-05-20 12:08:20 -07005792 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005793 # amount of time over which impressions per user are counted and capped.
Bu Sun Kim65020912020-05-20 12:08:20 -07005794 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005795 # specified time period.
Bu Sun Kim65020912020-05-20 12:08:20 -07005796 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over
5797 # which impressions per user are counted and capped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005798 },
5799 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005800 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005801 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005802 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is
5803 # finalized. This is the deal ID that shows up in serving/reporting etc.
5804 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ # Output only. Restricitions about the creatives associated with the deal
Dan O'Mearadd494642020-05-01 07:42:23 -07005805 # (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals
5806 # in Ad Manager.
5807 # Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07005808 # This doesn&#x27;t apply to Private Auction and AdX Preferred Deals.
5809 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
5810 &quot;creativeSpecifications&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -07005811 { # Represents information for a creative that is associated with a Programmatic
5812 # Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07005813 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
5814 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07005815 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07005816 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
5817 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07005818 # This field will be present only when size type is `PIXEL`.
5819 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005820 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
Dan O'Mearadd494642020-05-01 07:42:23 -07005821 { # Represents size of a single ad slot, or a creative.
Bu Sun Kim65020912020-05-20 12:08:20 -07005822 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07005823 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07005824 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
5825 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07005826 # This field will be present only when size type is `PIXEL`.
5827 },
5828 ],
5829 },
5830 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005831 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
Dan O'Mearadd494642020-05-01 07:42:23 -07005832 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005833 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
5834 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. # Output only. Tracks which parties (if any) have paused a deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005835 # The deal is considered paused if either hasBuyerPaused or
5836 # hasSellPaused is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07005837 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
5838 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
5839 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
5840 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
5841 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005842 },
5843 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005844 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005845 },
5846 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005847 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07005848 # Each update to the proposal or the deal causes the proposal revision number
5849 # to auto-increment. The buyer keeps track of the last revision number they
5850 # know of and pass it in when making an update. If the head revision number
5851 # on the server has since incremented, then an ABORTED error is returned
5852 # during the update operation to let the buyer know that a subsequent update
5853 # was made.
Bu Sun Kim65020912020-05-20 12:08:20 -07005854 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique # Reference to the seller on the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07005855 #
5856 # Note: This field may be set only when creating the resource. Modifying
5857 # this field while updating the resource will result in an error.
5858 # Ad Manager account ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07005859 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
5860 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field.
Dan O'Mearadd494642020-05-01 07:42:23 -07005861 # The seller account ID is then available to buyer in the product.
5862 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005863 }</pre>
5864</div>
5865
5866<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07005867 <code class="details" id="update">update(accountId, proposalId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005868 <pre>Update the given proposal at the client known revision number. If the
5869server revision has advanced since the passed-in
5870`proposal.proposal_revision`, an `ABORTED` error message will be returned.
5871Only the buyer-modifiable fields of the proposal will be updated.
5872
5873Note that the deals in the proposal will be updated to match the passed-in
5874copy.
5875If a passed-in deal does not have a `deal_id`, the server will assign a new
5876unique ID and create the deal.
5877If passed-in deal has a `deal_id`, it will be updated to match the
5878passed-in copy.
5879Any existing deals not present in the passed-in proposal will be deleted.
5880It is an error to pass in a deal with a `deal_id` not present at head.
5881
5882Args:
5883 accountId: string, Account ID of the buyer. (required)
5884 proposalId: string, The unique ID of the proposal. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07005885 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005886 The object takes the form of:
5887
5888{ # Note: this resource requires whitelisting for access. Please contact your
5889 # account manager for access to Marketplace resources.
5890 #
5891 # Represents a proposal in the Marketplace. A proposal is the unit of
5892 # negotiation between a seller and a buyer and contains deals which
5893 # are served.
5894 #
5895 # Note: you can not update, create, or otherwise modify Private
5896 # Auction or Preferred Deals deals through the API.
5897 #
5898 # Fields are updatable unless noted otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07005899 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Reference to the buyer on the proposal.
5900 #
5901 # Note: This field may be set only when creating the resource. Modifying
5902 # this field while updating the resource will result in an error.
5903 # Authorized Buyers account ID.
5904 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
5905 },
5906 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
5907 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
5908 { # A proposal may be associated to several notes.
5909 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach.
5910 # (max-length: 1024 unicode code units)
5911 #
5912 # Note: This field may be set only when creating the resource. Modifying
5913 # this field while updating the resource will result in an error.
5914 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
5915 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
5916 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
5917 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
5918 },
5919 ],
5920 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
5921 # proposal.
5922 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
5923 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
5924 { # Contains information on how a buyer or seller can be reached.
5925 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
5926 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
5927 },
5928 ],
5929 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction
5930 # proposal.
5931 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
5932 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or
5933 # left a comment.
5934 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
5935 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
5936 # operations (max-length: 1024 unicode code units).
5937 },
5938 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
5939 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
5940 { # Contains information on how a buyer or seller can be reached.
5941 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
5942 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
5943 },
5944 ],
5945 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Output only. Reference to the buyer that will get billed for this proposal.
5946 # Authorized Buyers account ID.
5947 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
5948 },
5949 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
5950 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
5951 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005952 # (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
5953 { # A deal represents a segment of inventory for displaying ads on.
5954 # A proposal can contain multiple deals. A deal contains the terms and
5955 # targeting information that is used for serving.
Bu Sun Kim65020912020-05-20 12:08:20 -07005956 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals.
5957 # PUBLISHER means creative is provided by seller and ADVERTISER means
5958 # creative is provided by buyer.
5959 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
5960 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
5961 # operations (max-length: 1024 unicode code units).
5962 },
5963 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
5964 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
5965 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
5966 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared
5967 # targeting entity is AND&#x27;d together.
5968 { # Advertisers can target different attributes of an ad slot. For example,
5969 # they can choose to show ads only if the user is in the U.S. Such
5970 # targeting criteria can be specified as part of Shared Targeting.
5971 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d
5972 # together.
5973 { # A polymorphic targeting value used as part of Shared Targeting.
5974 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
5975 # Filled in when key = GOOG_CREATIVE_SIZE
5976 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
5977 # of the creative
5978 # height depend on the type of the targeting.
5979 &quot;height&quot;: 42, # The height of the creative.
5980 &quot;width&quot;: 42, # The width of the creative
5981 },
5982 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
5983 # If this repeated field is empty then all formats are allowed.
5984 # For example, if this field contains AllowedFormatType.AUDIO then the
5985 # publisher only allows an audio ad (without any video).
5986 &quot;A String&quot;,
5987 ],
5988 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
5989 # Companion sizes may be filled in only when creative_size_type = VIDEO
5990 { # Message depicting the size of the creative. The units of width and
5991 # height depend on the type of the targeting.
5992 &quot;height&quot;: 42, # The height of the creative.
5993 &quot;width&quot;: 42, # The width of the creative
5994 },
5995 ],
5996 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
5997 # creative_size_type = CreativeSizeType.VIDEO.
5998 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
5999 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
6000 # only if creative_size_type = CreativeSizeType.NATIVE.
6001 },
6002 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
6003 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
6004 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
6005 # Filled in when the key is GOOG_DAYPART_TARGETING.
6006 # The definition of this targeting is derived from the structure
6007 # used by Ad Manager.
6008 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
6009 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
6010 { # Daypart targeting message that specifies if the ad can be shown
6011 # only during certain parts of a day/week.
6012 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
6013 # The start time is inclusive.
6014 # This field is not available for filtering in PQL queries.
6015 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6016 # types are google.type.Date and `google.protobuf.Timestamp`.
6017 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
6018 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6019 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6020 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
6021 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6022 # allow the value 60 if it allows leap-seconds.
6023 },
6024 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
6025 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
6026 # granularity). The end time is exclusive. This field is not available
6027 # for filtering in PQL queries.
6028 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6029 # types are google.type.Date and `google.protobuf.Timestamp`.
6030 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
6031 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6032 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6033 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
6034 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6035 # allow the value 60 if it allows leap-seconds.
6036 },
6037 },
6038 ],
6039 },
6040 },
6041 ],
6042 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion.
6043 # Targeting criteria defined by Google ad servers will begin with GOOG_.
6044 # Third parties may define their own keys.
6045 # A list of permissible keys along with the acceptable values will be
6046 # provided as part of the external documentation.
6047 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d
6048 # together.
6049 { # A polymorphic targeting value used as part of Shared Targeting.
6050 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
6051 # Filled in when key = GOOG_CREATIVE_SIZE
6052 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
6053 # of the creative
6054 # height depend on the type of the targeting.
6055 &quot;height&quot;: 42, # The height of the creative.
6056 &quot;width&quot;: 42, # The width of the creative
6057 },
6058 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
6059 # If this repeated field is empty then all formats are allowed.
6060 # For example, if this field contains AllowedFormatType.AUDIO then the
6061 # publisher only allows an audio ad (without any video).
6062 &quot;A String&quot;,
6063 ],
6064 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
6065 # Companion sizes may be filled in only when creative_size_type = VIDEO
6066 { # Message depicting the size of the creative. The units of width and
6067 # height depend on the type of the targeting.
6068 &quot;height&quot;: 42, # The height of the creative.
6069 &quot;width&quot;: 42, # The width of the creative
6070 },
6071 ],
6072 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
6073 # creative_size_type = CreativeSizeType.VIDEO.
6074 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
6075 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
6076 # only if creative_size_type = CreativeSizeType.NATIVE.
6077 },
6078 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
6079 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
6080 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
6081 # Filled in when the key is GOOG_DAYPART_TARGETING.
6082 # The definition of this targeting is derived from the structure
6083 # used by Ad Manager.
6084 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
6085 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
6086 { # Daypart targeting message that specifies if the ad can be shown
6087 # only during certain parts of a day/week.
6088 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
6089 # The start time is inclusive.
6090 # This field is not available for filtering in PQL queries.
6091 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6092 # types are google.type.Date and `google.protobuf.Timestamp`.
6093 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
6094 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6095 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6096 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
6097 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6098 # allow the value 60 if it allows leap-seconds.
6099 },
6100 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
6101 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
6102 # granularity). The end time is exclusive. This field is not available
6103 # for filtering in PQL queries.
6104 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6105 # types are google.type.Date and `google.protobuf.Timestamp`.
6106 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
6107 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6108 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6109 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
6110 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6111 # allow the value 60 if it allows leap-seconds.
6112 },
6113 },
6114 ],
6115 },
6116 },
6117 ],
6118 },
6119 ],
6120 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
6121 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
6122 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal.
6123 # This will generally be stored in a granularity of a second.
6124 # A value is not required for Private Auction deals or Preferred Deals.
6125 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal.
6126 #
6127 # Note: This field may be set only when creating the resource. Modifying
6128 # this field while updating the resource will result in an error.
6129 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created.
6130 #
6131 # Note: This field may be set only when creating the resource. Modifying
6132 # this field while updating the resource will result in an error.
6133 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
6134 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
6135 # deal.
6136 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006137 # If present on create, and the server `product_revision` has advanced sinced
6138 # the passed-in `create_product_revision`, an `ABORTED` error will be
6139 # returned.
6140 #
6141 # Note: This field may be set only when creating the resource. Modifying
6142 # this field while updating the resource will result in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07006143 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
6144 { # Contains information on how a buyer or seller can be reached.
6145 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
6146 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
6147 },
6148 ],
6149 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006150 # This will generally be stored in the granularity of one second since deal
6151 # serving starts at seconds boundary. Any time specified with more
6152 # granularity (e.g., in milliseconds) will be truncated towards the start of
6153 # time in seconds.
Bu Sun Kim65020912020-05-20 12:08:20 -07006154 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
6155 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things # The negotiable terms of the deal.
6156 # like price per buyer, the type of pricing model (e.g., fixed price, auction)
6157 # and expected impressions from the publisher.
6158 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
6159 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via # The terms for non-guaranteed fixed price deals.
6160 # the API at this time, but can be returned in a get or list request.
6161 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
6162 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
6163 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
6164 # a particular buyer or buyer/advertiser pair, we look for the most specific
6165 # matching rule - we first look for a rule matching the buyer and advertiser,
6166 # next a rule with the buyer but an empty advertiser list, and otherwise look
6167 # for a matching rule where no buyer is set.
6168 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
6169 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
6170 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
6171 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
6172 # The value must be between -999,999,999 and +999,999,999 inclusive.
6173 # If `units` is positive, `nanos` must be positive or zero.
6174 # If `units` is zero, `nanos` can be positive, zero, or negative.
6175 # If `units` is negative, `nanos` must be negative or zero.
6176 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
6177 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
6178 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
6179 },
6180 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
6181 },
6182 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
6183 # If empty, all advertisers with this buyer pay this price.
6184 &quot;A String&quot;,
6185 ],
6186 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
6187 # (if the
6188 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
6189 # Authorized Buyers account ID.
6190 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
6191 },
6192 },
6193 ],
6194 },
6195 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day.
6196 # Can be set by buyer or seller.
6197 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only # The terms for non-guaranteed auction deals.
6198 # by the seller, but they can be returned in a get or list request.
6199 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers
6200 # in this private auction.
6201 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
6202 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
6203 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
6204 # a particular buyer or buyer/advertiser pair, we look for the most specific
6205 # matching rule - we first look for a rule matching the buyer and advertiser,
6206 # next a rule with the buyer but an empty advertiser list, and otherwise look
6207 # for a matching rule where no buyer is set.
6208 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
6209 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
6210 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
6211 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
6212 # The value must be between -999,999,999 and +999,999,999 inclusive.
6213 # If `units` is positive, `nanos` must be positive or zero.
6214 # If `units` is zero, `nanos` can be positive, zero, or negative.
6215 # If `units` is negative, `nanos` must be negative or zero.
6216 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
6217 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
6218 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
6219 },
6220 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
6221 },
6222 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
6223 # If empty, all advertisers with this buyer pay this price.
6224 &quot;A String&quot;,
6225 ],
6226 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
6227 # (if the
6228 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
6229 # Authorized Buyers account ID.
6230 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
6231 },
6232 },
6233 ],
6234 },
6235 &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.
6236 # Can be set by buyer or seller.
6237 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
6238 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
6239 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
6240 # The value must be between -999,999,999 and +999,999,999 inclusive.
6241 # If `units` is positive, `nanos` must be positive or zero.
6242 # If `units` is zero, `nanos` can be positive, zero, or negative.
6243 # If `units` is negative, `nanos` must be negative or zero.
6244 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
6245 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
6246 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
6247 },
6248 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
6249 },
6250 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
6251 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the
6252 # time zone used to mark the boundaries of a day. It should be an
6253 # IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information,
6254 # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
6255 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
6256 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage
6257 # of guaranteed looks that the buyer is guaranteeing to buy.
6258 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
6259 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
6260 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
6261 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
6262 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
6263 # a particular buyer or buyer/advertiser pair, we look for the most specific
6264 # matching rule - we first look for a rule matching the buyer and advertiser,
6265 # next a rule with the buyer but an empty advertiser list, and otherwise look
6266 # for a matching rule where no buyer is set.
6267 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
6268 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
6269 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
6270 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
6271 # The value must be between -999,999,999 and +999,999,999 inclusive.
6272 # If `units` is positive, `nanos` must be positive or zero.
6273 # If `units` is zero, `nanos` can be positive, zero, or negative.
6274 # If `units` is negative, `nanos` must be negative or zero.
6275 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
6276 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
6277 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
6278 },
6279 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
6280 },
6281 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
6282 # If empty, all advertisers with this buyer pay this price.
6283 &quot;A String&quot;,
6284 ],
6285 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
6286 # (if the
6287 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
6288 # Authorized Buyers account ID.
6289 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
6290 },
6291 },
6292 ],
6293 },
6294 },
6295 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006296 # target ad inventory. For example, they can choose to target ad requests only
6297 # if the user is in the US.
6298 # Multiple types of targeting are always applied as a logical AND, unless noted
6299 # otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07006300 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # Geo criteria IDs to be included/excluded.
6301 # included and excluded numeric IDs.
6302 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
6303 &quot;A String&quot;,
6304 ],
6305 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
6306 &quot;A String&quot;,
6307 ],
6308 },
6309 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad # Inventory sizes to be included/excluded.
6310 # request. It only applies to Private Auction, AdX Preferred Deals and
6311 # Auction Packages. This targeting does not apply to Programmatic Guaranteed
6312 # and Preferred Deals in Ad Manager.
6313 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
6314 { # Represents size of a single ad slot, or a creative.
6315 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
6316 # This field will be present only when size type is `PIXEL`.
6317 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
6318 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
6319 # This field will be present only when size type is `PIXEL`.
6320 },
6321 ],
6322 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
6323 { # Represents size of a single ad slot, or a creative.
6324 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
6325 # This field will be present only when size type is `PIXEL`.
6326 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
6327 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
6328 # This field will be present only when size type is `PIXEL`.
6329 },
6330 ],
6331 },
6332 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
6333 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included.
6334 # When the included list is present, the excluded list must be empty.
6335 # When the excluded list is present, the included list must be empty.
6336 &quot;A String&quot;,
6337 ],
6338 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded.
6339 # Position types can either be included or excluded (XOR).
6340 &quot;A String&quot;,
6341 ],
6342 },
6343 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
6344 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device capabilities to be included/excluded.
6345 # included and excluded numeric IDs.
6346 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
6347 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07006348 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07006349 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
6350 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07006351 ],
6352 },
Bu Sun Kim65020912020-05-20 12:08:20 -07006353 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
6354 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating systems to be included/excluded.
6355 # included and excluded numeric IDs.
6356 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
6357 &quot;A String&quot;,
6358 ],
6359 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
6360 &quot;A String&quot;,
6361 ],
6362 },
6363 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating system versions to be included/excluded.
6364 # included and excluded numeric IDs.
6365 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
6366 &quot;A String&quot;,
6367 ],
6368 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
6369 &quot;A String&quot;,
6370 ],
6371 },
6372 },
6373 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device categories to be included/excluded.
6374 # included and excluded numeric IDs.
6375 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
6376 &quot;A String&quot;,
6377 ],
6378 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
6379 &quot;A String&quot;,
6380 ],
6381 },
6382 },
6383 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or # Placement targeting information, e.g., URL, mobile applications.
6384 # mobile applications.
6385 # Different placement targeting types will be logically OR&#x27;ed.
6386 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). # URLs to be included/excluded.
6387 # For Private Auction and AdX Preferred Deals, URLs are either included or
6388 # excluded.
6389 # For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t
6390 # apply.
6391 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
6392 &quot;A String&quot;,
6393 ],
6394 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
6395 &quot;A String&quot;,
6396 ],
6397 },
6398 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal.
6399 # This doesn&#x27;t apply to Auction Packages.
6400 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that # Publisher owned apps to be targeted or excluded by the publisher to
Dan O'Mearadd494642020-05-01 07:42:23 -07006401 # display the ads in.
6402 # publishers own.
6403 # Mobile application IDs are from App Store and Google Play Store.
6404 # Android App ID, for example, com.google.android.apps.maps, can be found in
6405 # Google Play Store URL.
6406 # iOS App ID (which is a number) can be found at the end of iTunes store URL.
6407 # First party mobile applications is either included or excluded.
Bu Sun Kim65020912020-05-20 12:08:20 -07006408 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
6409 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07006410 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07006411 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
6412 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07006413 ],
6414 },
6415 },
6416 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006417 },
Bu Sun Kim65020912020-05-20 12:08:20 -07006418 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
6419 &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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006420 # to see but are non-negotiable. These are set by the publisher.
Bu Sun Kim65020912020-05-20 12:08:20 -07006421 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
6422 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006423 { # Frequency cap.
Bu Sun Kim65020912020-05-20 12:08:20 -07006424 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006425 # amount of time over which impressions per user are counted and capped.
Bu Sun Kim65020912020-05-20 12:08:20 -07006426 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006427 # specified time period.
Bu Sun Kim65020912020-05-20 12:08:20 -07006428 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over
6429 # which impressions per user are counted and capped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006430 },
6431 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07006432 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006433 },
Bu Sun Kim65020912020-05-20 12:08:20 -07006434 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is
6435 # finalized. This is the deal ID that shows up in serving/reporting etc.
6436 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ # Output only. Restricitions about the creatives associated with the deal
Dan O'Mearadd494642020-05-01 07:42:23 -07006437 # (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals
6438 # in Ad Manager.
6439 # Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07006440 # This doesn&#x27;t apply to Private Auction and AdX Preferred Deals.
6441 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
6442 &quot;creativeSpecifications&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -07006443 { # Represents information for a creative that is associated with a Programmatic
6444 # Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07006445 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
6446 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07006447 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07006448 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
6449 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07006450 # This field will be present only when size type is `PIXEL`.
6451 },
Bu Sun Kim65020912020-05-20 12:08:20 -07006452 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
Dan O'Mearadd494642020-05-01 07:42:23 -07006453 { # Represents size of a single ad slot, or a creative.
Bu Sun Kim65020912020-05-20 12:08:20 -07006454 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07006455 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07006456 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
6457 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07006458 # This field will be present only when size type is `PIXEL`.
6459 },
6460 ],
6461 },
6462 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07006463 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
Dan O'Mearadd494642020-05-01 07:42:23 -07006464 },
Bu Sun Kim65020912020-05-20 12:08:20 -07006465 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
6466 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. # Output only. Tracks which parties (if any) have paused a deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006467 # The deal is considered paused if either hasBuyerPaused or
6468 # hasSellPaused is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07006469 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
6470 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
6471 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
6472 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
6473 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006474 },
6475 },
Bu Sun Kim65020912020-05-20 12:08:20 -07006476 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006477 },
6478 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07006479 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07006480 # Each update to the proposal or the deal causes the proposal revision number
6481 # to auto-increment. The buyer keeps track of the last revision number they
6482 # know of and pass it in when making an update. If the head revision number
6483 # on the server has since incremented, then an ABORTED error is returned
6484 # during the update operation to let the buyer know that a subsequent update
6485 # was made.
Bu Sun Kim65020912020-05-20 12:08:20 -07006486 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique # Reference to the seller on the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07006487 #
6488 # Note: This field may be set only when creating the resource. Modifying
6489 # this field while updating the resource will result in an error.
6490 # Ad Manager account ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07006491 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
6492 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field.
Dan O'Mearadd494642020-05-01 07:42:23 -07006493 # The seller account ID is then available to buyer in the product.
6494 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006495}
6496
6497 x__xgafv: string, V1 error format.
6498 Allowed values
6499 1 - v1 error format
6500 2 - v2 error format
6501
6502Returns:
6503 An object of the form:
6504
6505 { # Note: this resource requires whitelisting for access. Please contact your
6506 # account manager for access to Marketplace resources.
6507 #
6508 # Represents a proposal in the Marketplace. A proposal is the unit of
6509 # negotiation between a seller and a buyer and contains deals which
6510 # are served.
6511 #
6512 # Note: you can not update, create, or otherwise modify Private
6513 # Auction or Preferred Deals deals through the API.
6514 #
6515 # Fields are updatable unless noted otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07006516 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Reference to the buyer on the proposal.
6517 #
6518 # Note: This field may be set only when creating the resource. Modifying
6519 # this field while updating the resource will result in an error.
6520 # Authorized Buyers account ID.
6521 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
6522 },
6523 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
6524 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
6525 { # A proposal may be associated to several notes.
6526 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach.
6527 # (max-length: 1024 unicode code units)
6528 #
6529 # Note: This field may be set only when creating the resource. Modifying
6530 # this field while updating the resource will result in an error.
6531 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
6532 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
6533 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
6534 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
6535 },
6536 ],
6537 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
6538 # proposal.
6539 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
6540 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
6541 { # Contains information on how a buyer or seller can be reached.
6542 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
6543 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
6544 },
6545 ],
6546 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction
6547 # proposal.
6548 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
6549 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or
6550 # left a comment.
6551 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
6552 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
6553 # operations (max-length: 1024 unicode code units).
6554 },
6555 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
6556 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
6557 { # Contains information on how a buyer or seller can be reached.
6558 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
6559 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
6560 },
6561 ],
6562 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # Output only. Reference to the buyer that will get billed for this proposal.
6563 # Authorized Buyers account ID.
6564 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
6565 },
6566 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
6567 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
6568 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006569 # (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
6570 { # A deal represents a segment of inventory for displaying ads on.
6571 # A proposal can contain multiple deals. A deal contains the terms and
6572 # targeting information that is used for serving.
Bu Sun Kim65020912020-05-20 12:08:20 -07006573 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals.
6574 # PUBLISHER means creative is provided by seller and ADVERTISER means
6575 # creative is provided by buyer.
6576 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
6577 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list
6578 # operations (max-length: 1024 unicode code units).
6579 },
6580 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
6581 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
6582 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
6583 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared
6584 # targeting entity is AND&#x27;d together.
6585 { # Advertisers can target different attributes of an ad slot. For example,
6586 # they can choose to show ads only if the user is in the U.S. Such
6587 # targeting criteria can be specified as part of Shared Targeting.
6588 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d
6589 # together.
6590 { # A polymorphic targeting value used as part of Shared Targeting.
6591 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
6592 # Filled in when key = GOOG_CREATIVE_SIZE
6593 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
6594 # of the creative
6595 # height depend on the type of the targeting.
6596 &quot;height&quot;: 42, # The height of the creative.
6597 &quot;width&quot;: 42, # The width of the creative
6598 },
6599 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
6600 # If this repeated field is empty then all formats are allowed.
6601 # For example, if this field contains AllowedFormatType.AUDIO then the
6602 # publisher only allows an audio ad (without any video).
6603 &quot;A String&quot;,
6604 ],
6605 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
6606 # Companion sizes may be filled in only when creative_size_type = VIDEO
6607 { # Message depicting the size of the creative. The units of width and
6608 # height depend on the type of the targeting.
6609 &quot;height&quot;: 42, # The height of the creative.
6610 &quot;width&quot;: 42, # The width of the creative
6611 },
6612 ],
6613 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
6614 # creative_size_type = CreativeSizeType.VIDEO.
6615 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
6616 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
6617 # only if creative_size_type = CreativeSizeType.NATIVE.
6618 },
6619 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
6620 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
6621 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
6622 # Filled in when the key is GOOG_DAYPART_TARGETING.
6623 # The definition of this targeting is derived from the structure
6624 # used by Ad Manager.
6625 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
6626 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
6627 { # Daypart targeting message that specifies if the ad can be shown
6628 # only during certain parts of a day/week.
6629 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
6630 # The start time is inclusive.
6631 # This field is not available for filtering in PQL queries.
6632 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6633 # types are google.type.Date and `google.protobuf.Timestamp`.
6634 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
6635 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6636 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6637 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
6638 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6639 # allow the value 60 if it allows leap-seconds.
6640 },
6641 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
6642 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
6643 # granularity). The end time is exclusive. This field is not available
6644 # for filtering in PQL queries.
6645 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6646 # types are google.type.Date and `google.protobuf.Timestamp`.
6647 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
6648 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6649 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6650 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
6651 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6652 # allow the value 60 if it allows leap-seconds.
6653 },
6654 },
6655 ],
6656 },
6657 },
6658 ],
6659 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion.
6660 # Targeting criteria defined by Google ad servers will begin with GOOG_.
6661 # Third parties may define their own keys.
6662 # A list of permissible keys along with the acceptable values will be
6663 # provided as part of the external documentation.
6664 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d
6665 # together.
6666 { # A polymorphic targeting value used as part of Shared Targeting.
6667 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude.
6668 # Filled in when key = GOOG_CREATIVE_SIZE
6669 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and # For regular or video creative size type, specifies the size
6670 # of the creative
6671 # height depend on the type of the targeting.
6672 &quot;height&quot;: 42, # The height of the creative.
6673 &quot;width&quot;: 42, # The width of the creative
6674 },
6675 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher.
6676 # If this repeated field is empty then all formats are allowed.
6677 # For example, if this field contains AllowedFormatType.AUDIO then the
6678 # publisher only allows an audio ad (without any video).
6679 &quot;A String&quot;,
6680 ],
6681 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present).
6682 # Companion sizes may be filled in only when creative_size_type = VIDEO
6683 { # Message depicting the size of the creative. The units of width and
6684 # height depend on the type of the targeting.
6685 &quot;height&quot;: 42, # The height of the creative.
6686 &quot;width&quot;: 42, # The width of the creative
6687 },
6688 ],
6689 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if
6690 # creative_size_type = CreativeSizeType.VIDEO.
6691 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
6692 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value
6693 # only if creative_size_type = CreativeSizeType.NATIVE.
6694 },
6695 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
6696 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
6697 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude.
6698 # Filled in when the key is GOOG_DAYPART_TARGETING.
6699 # The definition of this targeting is derived from the structure
6700 # used by Ad Manager.
6701 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
6702 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
6703 { # Daypart targeting message that specifies if the ad can be shown
6704 # only during certain parts of a day/week.
6705 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The starting time of day for the ad to show (minute level granularity).
6706 # The start time is inclusive.
6707 # This field is not available for filtering in PQL queries.
6708 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6709 # types are google.type.Date and `google.protobuf.Timestamp`.
6710 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
6711 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6712 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6713 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
6714 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6715 # allow the value 60 if it allows leap-seconds.
6716 },
6717 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
6718 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant # The ending time of the day for the ad to show (minute level
6719 # granularity). The end time is exclusive. This field is not available
6720 # for filtering in PQL queries.
6721 # or are specified elsewhere. An API may choose to allow leap seconds. Related
6722 # types are google.type.Date and `google.protobuf.Timestamp`.
6723 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
6724 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
6725 # to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
6726 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
6727 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
6728 # allow the value 60 if it allows leap-seconds.
6729 },
6730 },
6731 ],
6732 },
6733 },
6734 ],
6735 },
6736 ],
6737 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
6738 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
6739 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal.
6740 # This will generally be stored in a granularity of a second.
6741 # A value is not required for Private Auction deals or Preferred Deals.
6742 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal.
6743 #
6744 # Note: This field may be set only when creating the resource. Modifying
6745 # this field while updating the resource will result in an error.
6746 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created.
6747 #
6748 # Note: This field may be set only when creating the resource. Modifying
6749 # this field while updating the resource will result in an error.
6750 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
6751 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this
6752 # deal.
6753 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006754 # If present on create, and the server `product_revision` has advanced sinced
6755 # the passed-in `create_product_revision`, an `ABORTED` error will be
6756 # returned.
6757 #
6758 # Note: This field may be set only when creating the resource. Modifying
6759 # this field while updating the resource will result in an error.
Bu Sun Kim65020912020-05-20 12:08:20 -07006760 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
6761 { # Contains information on how a buyer or seller can be reached.
6762 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
6763 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
6764 },
6765 ],
6766 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006767 # This will generally be stored in the granularity of one second since deal
6768 # serving starts at seconds boundary. Any time specified with more
6769 # granularity (e.g., in milliseconds) will be truncated towards the start of
6770 # time in seconds.
Bu Sun Kim65020912020-05-20 12:08:20 -07006771 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
6772 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things # The negotiable terms of the deal.
6773 # like price per buyer, the type of pricing model (e.g., fixed price, auction)
6774 # and expected impressions from the publisher.
6775 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
6776 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via # The terms for non-guaranteed fixed price deals.
6777 # the API at this time, but can be returned in a get or list request.
6778 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
6779 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
6780 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
6781 # a particular buyer or buyer/advertiser pair, we look for the most specific
6782 # matching rule - we first look for a rule matching the buyer and advertiser,
6783 # next a rule with the buyer but an empty advertiser list, and otherwise look
6784 # for a matching rule where no buyer is set.
6785 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
6786 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
6787 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
6788 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
6789 # The value must be between -999,999,999 and +999,999,999 inclusive.
6790 # If `units` is positive, `nanos` must be positive or zero.
6791 # If `units` is zero, `nanos` can be positive, zero, or negative.
6792 # If `units` is negative, `nanos` must be negative or zero.
6793 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
6794 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
6795 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
6796 },
6797 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
6798 },
6799 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
6800 # If empty, all advertisers with this buyer pay this price.
6801 &quot;A String&quot;,
6802 ],
6803 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
6804 # (if the
6805 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
6806 # Authorized Buyers account ID.
6807 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
6808 },
6809 },
6810 ],
6811 },
6812 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day.
6813 # Can be set by buyer or seller.
6814 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only # The terms for non-guaranteed auction deals.
6815 # by the seller, but they can be returned in a get or list request.
6816 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers
6817 # in this private auction.
6818 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
6819 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
6820 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
6821 # a particular buyer or buyer/advertiser pair, we look for the most specific
6822 # matching rule - we first look for a rule matching the buyer and advertiser,
6823 # next a rule with the buyer but an empty advertiser list, and otherwise look
6824 # for a matching rule where no buyer is set.
6825 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
6826 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
6827 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
6828 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
6829 # The value must be between -999,999,999 and +999,999,999 inclusive.
6830 # If `units` is positive, `nanos` must be positive or zero.
6831 # If `units` is zero, `nanos` can be positive, zero, or negative.
6832 # If `units` is negative, `nanos` must be negative or zero.
6833 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
6834 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
6835 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
6836 },
6837 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
6838 },
6839 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
6840 # If empty, all advertisers with this buyer pay this price.
6841 &quot;A String&quot;,
6842 ],
6843 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
6844 # (if the
6845 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
6846 # Authorized Buyers account ID.
6847 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
6848 },
6849 },
6850 ],
6851 },
6852 &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.
6853 # Can be set by buyer or seller.
6854 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
6855 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
6856 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
6857 # The value must be between -999,999,999 and +999,999,999 inclusive.
6858 # If `units` is positive, `nanos` must be positive or zero.
6859 # If `units` is zero, `nanos` can be positive, zero, or negative.
6860 # If `units` is negative, `nanos` must be negative or zero.
6861 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
6862 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
6863 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
6864 },
6865 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
6866 },
6867 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
6868 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the
6869 # time zone used to mark the boundaries of a day. It should be an
6870 # IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information,
6871 # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
6872 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
6873 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage
6874 # of guaranteed looks that the buyer is guaranteeing to buy.
6875 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
6876 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
6877 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
6878 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in
6879 # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for
6880 # a particular buyer or buyer/advertiser pair, we look for the most specific
6881 # matching rule - we first look for a rule matching the buyer and advertiser,
6882 # next a rule with the buyer but an empty advertiser list, and otherwise look
6883 # for a matching rule where no buyer is set.
6884 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
6885 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
6886 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
6887 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
6888 # The value must be between -999,999,999 and +999,999,999 inclusive.
6889 # If `units` is positive, `nanos` must be positive or zero.
6890 # If `units` is zero, `nanos` can be positive, zero, or negative.
6891 # If `units` is negative, `nanos` must be negative or zero.
6892 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
6893 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
6894 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
6895 },
6896 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
6897 },
6898 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer.
6899 # If empty, all advertisers with this buyer pay this price.
6900 &quot;A String&quot;,
6901 ],
6902 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique # The buyer who will pay this price. If unset, all buyers can pay this price
6903 # (if the
6904 # advertisers match, and there&#x27;s no more specific rule matching the buyer).
6905 # Authorized Buyers account ID.
6906 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
6907 },
6908 },
6909 ],
6910 },
6911 },
6912 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07006913 # target ad inventory. For example, they can choose to target ad requests only
6914 # if the user is in the US.
6915 # Multiple types of targeting are always applied as a logical AND, unless noted
6916 # otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07006917 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # Geo criteria IDs to be included/excluded.
6918 # included and excluded numeric IDs.
6919 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
6920 &quot;A String&quot;,
6921 ],
6922 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
6923 &quot;A String&quot;,
6924 ],
6925 },
6926 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad # Inventory sizes to be included/excluded.
6927 # request. It only applies to Private Auction, AdX Preferred Deals and
6928 # Auction Packages. This targeting does not apply to Programmatic Guaranteed
6929 # and Preferred Deals in Ad Manager.
6930 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
6931 { # Represents size of a single ad slot, or a creative.
6932 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
6933 # This field will be present only when size type is `PIXEL`.
6934 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
6935 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
6936 # This field will be present only when size type is `PIXEL`.
6937 },
6938 ],
6939 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
6940 { # Represents size of a single ad slot, or a creative.
6941 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
6942 # This field will be present only when size type is `PIXEL`.
6943 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
6944 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
6945 # This field will be present only when size type is `PIXEL`.
6946 },
6947 ],
6948 },
6949 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
6950 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included.
6951 # When the included list is present, the excluded list must be empty.
6952 # When the excluded list is present, the included list must be empty.
6953 &quot;A String&quot;,
6954 ],
6955 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded.
6956 # Position types can either be included or excluded (XOR).
6957 &quot;A String&quot;,
6958 ],
6959 },
6960 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
6961 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device capabilities to be included/excluded.
6962 # included and excluded numeric IDs.
6963 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
6964 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07006965 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07006966 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
6967 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07006968 ],
6969 },
Bu Sun Kim65020912020-05-20 12:08:20 -07006970 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
6971 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating systems to be included/excluded.
6972 # included and excluded numeric IDs.
6973 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
6974 &quot;A String&quot;,
6975 ],
6976 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
6977 &quot;A String&quot;,
6978 ],
6979 },
6980 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of operating system versions to be included/excluded.
6981 # included and excluded numeric IDs.
6982 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
6983 &quot;A String&quot;,
6984 ],
6985 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
6986 &quot;A String&quot;,
6987 ],
6988 },
6989 },
6990 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of # IDs of device categories to be included/excluded.
6991 # included and excluded numeric IDs.
6992 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
6993 &quot;A String&quot;,
6994 ],
6995 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
6996 &quot;A String&quot;,
6997 ],
6998 },
6999 },
7000 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or # Placement targeting information, e.g., URL, mobile applications.
7001 # mobile applications.
7002 # Different placement targeting types will be logically OR&#x27;ed.
7003 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). # URLs to be included/excluded.
7004 # For Private Auction and AdX Preferred Deals, URLs are either included or
7005 # excluded.
7006 # For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t
7007 # apply.
7008 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
7009 &quot;A String&quot;,
7010 ],
7011 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
7012 &quot;A String&quot;,
7013 ],
7014 },
7015 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal.
7016 # This doesn&#x27;t apply to Auction Packages.
7017 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that # Publisher owned apps to be targeted or excluded by the publisher to
Dan O'Mearadd494642020-05-01 07:42:23 -07007018 # display the ads in.
7019 # publishers own.
7020 # Mobile application IDs are from App Store and Google Play Store.
7021 # Android App ID, for example, com.google.android.apps.maps, can be found in
7022 # Google Play Store URL.
7023 # iOS App ID (which is a number) can be found at the end of iTunes store URL.
7024 # First party mobile applications is either included or excluded.
Bu Sun Kim65020912020-05-20 12:08:20 -07007025 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
7026 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07007027 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07007028 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
7029 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07007030 ],
7031 },
7032 },
7033 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07007034 },
Bu Sun Kim65020912020-05-20 12:08:20 -07007035 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
7036 &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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07007037 # to see but are non-negotiable. These are set by the publisher.
Bu Sun Kim65020912020-05-20 12:08:20 -07007038 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
7039 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07007040 { # Frequency cap.
Bu Sun Kim65020912020-05-20 12:08:20 -07007041 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07007042 # amount of time over which impressions per user are counted and capped.
Bu Sun Kim65020912020-05-20 12:08:20 -07007043 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07007044 # specified time period.
Bu Sun Kim65020912020-05-20 12:08:20 -07007045 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over
7046 # which impressions per user are counted and capped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07007047 },
7048 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07007049 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07007050 },
Bu Sun Kim65020912020-05-20 12:08:20 -07007051 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is
7052 # finalized. This is the deal ID that shows up in serving/reporting etc.
7053 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ # Output only. Restricitions about the creatives associated with the deal
Dan O'Mearadd494642020-05-01 07:42:23 -07007054 # (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals
7055 # in Ad Manager.
7056 # Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07007057 # This doesn&#x27;t apply to Private Auction and AdX Preferred Deals.
7058 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
7059 &quot;creativeSpecifications&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -07007060 { # Represents information for a creative that is associated with a Programmatic
7061 # Guaranteed/Preferred Deal in Ad Manager.
Bu Sun Kim65020912020-05-20 12:08:20 -07007062 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
7063 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07007064 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07007065 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
7066 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07007067 # This field will be present only when size type is `PIXEL`.
7068 },
Bu Sun Kim65020912020-05-20 12:08:20 -07007069 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
Dan O'Mearadd494642020-05-01 07:42:23 -07007070 { # Represents size of a single ad slot, or a creative.
Bu Sun Kim65020912020-05-20 12:08:20 -07007071 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07007072 # This field will be present only when size type is `PIXEL`.
Bu Sun Kim65020912020-05-20 12:08:20 -07007073 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
7074 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels.
Dan O'Mearadd494642020-05-01 07:42:23 -07007075 # This field will be present only when size type is `PIXEL`.
7076 },
7077 ],
7078 },
7079 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07007080 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
Dan O'Mearadd494642020-05-01 07:42:23 -07007081 },
Bu Sun Kim65020912020-05-20 12:08:20 -07007082 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
7083 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. # Output only. Tracks which parties (if any) have paused a deal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07007084 # The deal is considered paused if either hasBuyerPaused or
7085 # hasSellPaused is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07007086 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
7087 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
7088 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
7089 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
7090 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07007091 },
7092 },
Bu Sun Kim65020912020-05-20 12:08:20 -07007093 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07007094 },
7095 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07007096 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07007097 # Each update to the proposal or the deal causes the proposal revision number
7098 # to auto-increment. The buyer keeps track of the last revision number they
7099 # know of and pass it in when making an update. If the head revision number
7100 # on the server has since incremented, then an ABORTED error is returned
7101 # during the update operation to let the buyer know that a subsequent update
7102 # was made.
Bu Sun Kim65020912020-05-20 12:08:20 -07007103 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique # Reference to the seller on the proposal.
Dan O'Mearadd494642020-05-01 07:42:23 -07007104 #
7105 # Note: This field may be set only when creating the resource. Modifying
7106 # this field while updating the resource will result in an error.
7107 # Ad Manager account ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07007108 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
7109 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field.
Dan O'Mearadd494642020-05-01 07:42:23 -07007110 # The seller account ID is then available to buyer in the product.
7111 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07007112 }</pre>
7113</div>
7114
7115</body></html>