blob: 0b8d5d854964bdaf0a5185569eb1a7dc3cb69232 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="adexchangebuyer2_v2beta1.html">Ad Exchange Buyer API II</a> . <a href="adexchangebuyer2_v2beta1.accounts.html">accounts</a> . <a href="adexchangebuyer2_v2beta1.accounts.proposals.html">proposals</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#accept">accept(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070079<p class="firstline">Mark the proposal as accepted at the given revision number. If the number does not match the server's revision number an `ABORTED` error message will be returned. This call updates the proposal_state from `PROPOSED` to `BUYER_ACCEPTED`, or from `SELLER_ACCEPTED` to `FINALIZED`.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070080<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#addNote">addNote(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Create a new note and attach it to the proposal. The note is assigned a unique ID by the server. The proposal revision number will not increase when associated with a new note.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
84 <code><a href="#cancelNegotiation">cancelNegotiation(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Cancel an ongoing negotiation on a proposal. This does not cancel or end serving for the deals if the proposal has been finalized, but only cancels a negotiation unilaterally.</p>
86<p class="toc_element">
87 <code><a href="#close">close()</a></code></p>
88<p class="firstline">Close httplib2 connections.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="toc_element">
90 <code><a href="#completeSetup">completeSetup(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Update the given proposal to indicate that setup has been completed. This method is called by the buyer when the line items have been created on their end for a finalized proposal and all the required creatives have been uploaded using the creatives API. This call updates the `is_setup_completed` bit on the proposal and also notifies the seller. The server will advance the revision number of the most recent proposal.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#create">create(accountId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Create the given proposal. Each created proposal and any deals it contains are assigned a unique ID by the server.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="toc_element">
96 <code><a href="#get">get(accountId, proposalId, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097<p class="firstline">Gets a proposal given its ID. The proposal is returned at its head revision.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098<p class="toc_element">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -080099 <code><a href="#list">list(accountId, filterSyntax=None, pageToken=None, pageSize=None, filter=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100<p class="firstline">List proposals. A filter expression (PQL query) may be specified to filter the results. To retrieve all finalized proposals, regardless if a proposal is being renegotiated, see the FinalizedProposals resource. Note that Bidder/ChildSeat relationships differ from the usual behavior. A Bidder account can only see its child seats' proposals by specifying the ChildSeat's accountId in the request path.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101<p class="toc_element">
102 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
103<p class="firstline">Retrieves the next page of results.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#pause">pause(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106<p class="firstline">Update the given proposal to pause serving. This method will set the `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to true for all deals in the proposal. It is a no-op to pause an already-paused proposal. It is an error to call PauseProposal for a proposal that is not finalized or renegotiating.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107<p class="toc_element">
108 <code><a href="#resume">resume(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109<p class="firstline">Update the given proposal to resume serving. This method will set the `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to false for all deals in the proposal. Note that if the `has_seller_paused` bit is also set, serving will not resume until the seller also resumes. It is a no-op to resume an already-running proposal. It is an error to call ResumeProposal for a proposal that is not finalized or renegotiating.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code><a href="#update">update(accountId, proposalId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112<p class="firstline">Update the given proposal at the client known revision number. If the server revision has advanced since the passed-in `proposal.proposal_revision`, an `ABORTED` error message will be returned. Only the buyer-modifiable fields of the proposal will be updated. Note that the deals in the proposal will be updated to match the passed-in copy. If a passed-in deal does not have a `deal_id`, the server will assign a new unique ID and create the deal. If passed-in deal has a `deal_id`, it will be updated to match the passed-in copy. Any existing deals not present in the passed-in proposal will be deleted. It is an error to pass in a deal with a `deal_id` not present at head.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<h3>Method Details</h3>
114<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 <code class="details" id="accept">accept(accountId, proposalId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700116 <pre>Mark the proposal as accepted at the given revision number. If the number does not match the server&#x27;s revision number an `ABORTED` error message will be returned. This call updates the proposal_state from `PROPOSED` to `BUYER_ACCEPTED`, or from `SELLER_ACCEPTED` to `FINALIZED`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117
118Args:
119 accountId: string, Account ID of the buyer. (required)
120 proposalId: string, The ID of the proposal to accept. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122 The object takes the form of:
123
124{ # Request to accept a proposal.
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &quot;proposalRevision&quot;: &quot;A String&quot;, # The last known client revision number of the proposal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126 }
127
128 x__xgafv: string, V1 error format.
129 Allowed values
130 1 - v1 error format
131 2 - v2 error format
132
133Returns:
134 An object of the form:
135
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700136 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800137 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700138 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
139 { # A proposal may be associated to several notes.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700140 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
141 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700142 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800143 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
144 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700145 },
146 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700147 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800148 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
149 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
150 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
151 },
152 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the deal causes the proposal revision number to auto-increment. The buyer keeps track of the last revision number they know of and pass it in when making an update. If the head revision number on the server has since incremented, then an ABORTED error is returned during the update operation to let the buyer know that a subsequent update was made.
153 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
154 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
155 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
156 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
157 },
158 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
159 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
160 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700161 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
162 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700163 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal. This will generally be stored in the granularity of one second since deal serving starts at seconds boundary. Any time specified with more granularity (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800164 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
165 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
166 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
167 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
168 { # A polymorphic targeting value used as part of Shared Targeting.
169 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
170 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
171 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
172 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
173 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
174 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
175 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
176 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
177 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
178 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
179 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
180 },
181 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
182 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
183 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
184 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
185 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
186 },
187 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
188 },
189 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700190 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800191 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
192 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
193 &quot;width&quot;: 42, # The width of the creative
194 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700195 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800196 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
197 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
198 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
199 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
200 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
201 &quot;width&quot;: 42, # The width of the creative
202 &quot;height&quot;: 42, # The height of the creative.
203 },
204 ],
205 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
206 &quot;A String&quot;,
207 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700208 },
209 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700210 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800211 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
212 { # A polymorphic targeting value used as part of Shared Targeting.
213 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
214 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
215 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
216 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
217 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
218 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
219 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
220 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
221 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
222 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
223 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
224 },
225 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
226 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
227 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
228 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
229 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
230 },
231 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
232 },
233 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700234 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800235 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
236 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
237 &quot;width&quot;: 42, # The width of the creative
238 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700239 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800240 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
241 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
242 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
243 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
244 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
245 &quot;width&quot;: 42, # The width of the creative
246 &quot;height&quot;: 42, # The height of the creative.
247 },
248 ],
249 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
250 &quot;A String&quot;,
251 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700252 },
253 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700254 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800255 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700256 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800257 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700258 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800259 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
260 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700261 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
262 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800263 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700264 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
265 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800266 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700267 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700268 },
269 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800270 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
271 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher.
272 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
273 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
274 { # Frequency cap.
275 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
276 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
277 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
278 },
279 ],
280 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
281 },
282 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
283 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
284 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
285 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
286 },
287 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
288 { # Contains information on how a buyer or seller can be reached.
289 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
290 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700291 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800292 ],
293 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
294 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
295 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
296 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
297 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
298 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
299 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
300 &quot;creativeSpecifications&quot;: [
301 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
302 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
303 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
304 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
305 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
306 },
307 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
308 { # Represents size of a single ad slot, or a creative.
309 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
310 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
311 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
312 },
313 ],
314 },
315 ],
316 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
317 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
318 },
319 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is finalized. This is the deal ID that shows up in serving/reporting etc.
320 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700321 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
322 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700323 &quot;A String&quot;,
324 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700325 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700326 &quot;A String&quot;,
327 ],
328 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800329 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
330 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
331 { # Represents size of a single ad slot, or a creative.
332 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
333 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
334 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
335 },
336 ],
337 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
338 { # Represents size of a single ad slot, or a creative.
339 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
340 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
341 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
342 },
343 ],
344 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700345 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800346 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700347 &quot;A String&quot;,
348 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800349 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700350 &quot;A String&quot;,
351 ],
352 },
353 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800354 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
355 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
356 &quot;A String&quot;,
357 ],
358 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
359 &quot;A String&quot;,
360 ],
361 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700362 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
363 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
364 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
365 &quot;A String&quot;,
366 ],
367 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
368 &quot;A String&quot;,
369 ],
370 },
371 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700372 },
373 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
374 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700375 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700376 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
377 &quot;A String&quot;,
378 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800379 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
380 &quot;A String&quot;,
381 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700382 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800383 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
384 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
385 &quot;A String&quot;,
386 ],
387 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
388 &quot;A String&quot;,
389 ],
390 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700391 },
392 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700393 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
394 &quot;A String&quot;,
395 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800396 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
397 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700398 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700399 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800400 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
401 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
402 &quot;A String&quot;,
403 ],
404 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
405 &quot;A String&quot;,
406 ],
407 },
408 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700409 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700410 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800411 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
412 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
413 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
414 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
415 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
416 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
417 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
418 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
419 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
420 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
421 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
422 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
423 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700424 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800425 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700426 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800427 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
428 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
429 },
430 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
431 &quot;A String&quot;,
432 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700433 },
434 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800435 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
436 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
437 },
438 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
439 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
440 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
441 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
442 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
443 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
444 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
445 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
446 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700447 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800448 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700449 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800450 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
451 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
452 },
453 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
454 &quot;A String&quot;,
455 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700456 },
457 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700458 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800459 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
460 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
461 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
462 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
463 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
464 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
465 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
466 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
467 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
468 },
469 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
470 },
471 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
472 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
473 },
474 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
475 &quot;A String&quot;,
476 ],
477 },
478 ],
479 },
480 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
481 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
482 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
483 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
484 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700485 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800486 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
487 },
488 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700489 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700490 },
491 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800492 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
493 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
494 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700495 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
496 { # Contains information on how a buyer or seller can be reached.
497 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
498 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
499 },
500 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800501 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
502 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
503 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700504 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800505 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
506 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
507 { # Contains information on how a buyer or seller can be reached.
508 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
509 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
510 },
511 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700512 }</pre>
513</div>
514
515<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700516 <code class="details" id="addNote">addNote(accountId, proposalId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700517 <pre>Create a new note and attach it to the proposal. The note is assigned a unique ID by the server. The proposal revision number will not increase when associated with a new note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700518
519Args:
520 accountId: string, Account ID of the buyer. (required)
521 proposalId: string, The ID of the proposal to attach the note to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700522 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700523 The object takes the form of:
524
525{ # Request message for adding a note to a given proposal.
Bu Sun Kim65020912020-05-20 12:08:20 -0700526 &quot;note&quot;: { # A proposal may be associated to several notes. # Details of the note to add.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700527 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700528 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700529 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800530 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
531 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700532 },
533 }
534
535 x__xgafv: string, V1 error format.
536 Allowed values
537 1 - v1 error format
538 2 - v2 error format
539
540Returns:
541 An object of the form:
542
543 { # A proposal may be associated to several notes.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700544 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700545 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700546 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800547 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
548 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700549 }</pre>
550</div>
551
552<div class="method">
553 <code class="details" id="cancelNegotiation">cancelNegotiation(accountId, proposalId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700554 <pre>Cancel an ongoing negotiation on a proposal. This does not cancel or end serving for the deals if the proposal has been finalized, but only cancels a negotiation unilaterally.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700555
556Args:
557 accountId: string, Account ID of the buyer. (required)
558 proposalId: string, The ID of the proposal to cancel negotiation for. (required)
559 body: object, The request body.
560 The object takes the form of:
561
562{ # Request to cancel an ongoing negotiation.
563 }
564
565 x__xgafv: string, V1 error format.
566 Allowed values
567 1 - v1 error format
568 2 - v2 error format
569
570Returns:
571 An object of the form:
572
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700573 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800574 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700575 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
576 { # A proposal may be associated to several notes.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700577 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
578 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700579 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800580 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
581 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700582 },
583 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700584 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800585 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
586 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
587 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
588 },
589 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the deal causes the proposal revision number to auto-increment. The buyer keeps track of the last revision number they know of and pass it in when making an update. If the head revision number on the server has since incremented, then an ABORTED error is returned during the update operation to let the buyer know that a subsequent update was made.
590 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
591 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
592 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
593 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
594 },
595 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
596 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
597 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700598 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
599 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700600 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal. This will generally be stored in the granularity of one second since deal serving starts at seconds boundary. Any time specified with more granularity (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800601 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
602 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
603 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
604 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
605 { # A polymorphic targeting value used as part of Shared Targeting.
606 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
607 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
608 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
609 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
610 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
611 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
612 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
613 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
614 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
615 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
616 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
617 },
618 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
619 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
620 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
621 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
622 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
623 },
624 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
625 },
626 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700627 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800628 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
629 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
630 &quot;width&quot;: 42, # The width of the creative
631 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700632 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800633 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
634 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
635 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
636 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
637 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
638 &quot;width&quot;: 42, # The width of the creative
639 &quot;height&quot;: 42, # The height of the creative.
640 },
641 ],
642 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
643 &quot;A String&quot;,
644 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700645 },
646 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700647 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800648 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
649 { # A polymorphic targeting value used as part of Shared Targeting.
650 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
651 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
652 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
653 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
654 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
655 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
656 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
657 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
658 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
659 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
660 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
661 },
662 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
663 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
664 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
665 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
666 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
667 },
668 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
669 },
670 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700671 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800672 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
673 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
674 &quot;width&quot;: 42, # The width of the creative
675 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700676 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800677 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
678 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
679 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
680 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
681 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
682 &quot;width&quot;: 42, # The width of the creative
683 &quot;height&quot;: 42, # The height of the creative.
684 },
685 ],
686 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
687 &quot;A String&quot;,
688 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700689 },
690 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700691 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800692 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700693 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800694 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700695 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800696 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
697 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700698 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
699 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800700 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700701 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
702 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800703 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700704 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700705 },
706 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800707 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
708 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher.
709 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
710 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
711 { # Frequency cap.
712 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
713 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
714 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
715 },
716 ],
717 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
718 },
719 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
720 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
721 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
722 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
723 },
724 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
725 { # Contains information on how a buyer or seller can be reached.
726 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
727 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700728 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800729 ],
730 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
731 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
732 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
733 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
734 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
735 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
736 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
737 &quot;creativeSpecifications&quot;: [
738 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
739 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
740 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
741 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
742 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
743 },
744 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
745 { # Represents size of a single ad slot, or a creative.
746 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
747 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
748 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
749 },
750 ],
751 },
752 ],
753 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
754 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
755 },
756 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is finalized. This is the deal ID that shows up in serving/reporting etc.
757 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700758 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
759 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700760 &quot;A String&quot;,
761 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700762 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700763 &quot;A String&quot;,
764 ],
765 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800766 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
767 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
768 { # Represents size of a single ad slot, or a creative.
769 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
770 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
771 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
772 },
773 ],
774 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
775 { # Represents size of a single ad slot, or a creative.
776 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
777 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
778 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
779 },
780 ],
781 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700782 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800783 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700784 &quot;A String&quot;,
785 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800786 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700787 &quot;A String&quot;,
788 ],
789 },
790 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800791 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
792 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
793 &quot;A String&quot;,
794 ],
795 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
796 &quot;A String&quot;,
797 ],
798 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700799 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
800 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
801 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
802 &quot;A String&quot;,
803 ],
804 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
805 &quot;A String&quot;,
806 ],
807 },
808 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700809 },
810 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
811 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700812 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700813 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
814 &quot;A String&quot;,
815 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800816 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
817 &quot;A String&quot;,
818 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700819 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800820 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
821 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
822 &quot;A String&quot;,
823 ],
824 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
825 &quot;A String&quot;,
826 ],
827 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700828 },
829 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700830 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
831 &quot;A String&quot;,
832 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800833 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
834 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700835 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700836 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800837 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
838 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
839 &quot;A String&quot;,
840 ],
841 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
842 &quot;A String&quot;,
843 ],
844 },
845 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700846 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700847 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800848 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
849 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
850 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
851 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
852 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
853 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
854 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
855 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
856 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
857 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
858 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
859 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
860 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700861 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800862 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700863 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800864 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
865 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
866 },
867 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
868 &quot;A String&quot;,
869 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700870 },
871 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800872 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
873 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
874 },
875 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
876 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
877 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
878 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
879 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
880 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
881 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
882 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
883 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700884 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800885 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700886 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800887 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
888 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
889 },
890 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
891 &quot;A String&quot;,
892 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700893 },
894 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700895 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800896 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
897 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
898 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
899 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
900 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
901 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
902 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
903 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
904 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
905 },
906 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
907 },
908 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
909 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
910 },
911 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
912 &quot;A String&quot;,
913 ],
914 },
915 ],
916 },
917 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
918 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
919 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
920 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
921 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700922 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800923 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
924 },
925 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700926 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700927 },
928 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800929 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
930 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
931 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700932 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
933 { # Contains information on how a buyer or seller can be reached.
934 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
935 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
936 },
937 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800938 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
939 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
940 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700941 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800942 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
943 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
944 { # Contains information on how a buyer or seller can be reached.
945 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
946 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
947 },
948 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700949 }</pre>
950</div>
951
952<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700953 <code class="details" id="close">close()</code>
954 <pre>Close httplib2 connections.</pre>
955</div>
956
957<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700958 <code class="details" id="completeSetup">completeSetup(accountId, proposalId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700959 <pre>Update the given proposal to indicate that setup has been completed. This method is called by the buyer when the line items have been created on their end for a finalized proposal and all the required creatives have been uploaded using the creatives API. This call updates the `is_setup_completed` bit on the proposal and also notifies the seller. The server will advance the revision number of the most recent proposal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700960
961Args:
962 accountId: string, Account ID of the buyer. (required)
963 proposalId: string, The ID of the proposal to mark as setup completed. (required)
964 body: object, The request body.
965 The object takes the form of:
966
Bu Sun Kim65020912020-05-20 12:08:20 -0700967{ # Request message for indicating that the proposal&#x27;s setup step is complete.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700968 }
969
970 x__xgafv: string, V1 error format.
971 Allowed values
972 1 - v1 error format
973 2 - v2 error format
974
975Returns:
976 An object of the form:
977
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700978 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800979 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700980 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
981 { # A proposal may be associated to several notes.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700982 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
983 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700984 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800985 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
986 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700987 },
988 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700989 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800990 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
991 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
992 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
993 },
994 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the deal causes the proposal revision number to auto-increment. The buyer keeps track of the last revision number they know of and pass it in when making an update. If the head revision number on the server has since incremented, then an ABORTED error is returned during the update operation to let the buyer know that a subsequent update was made.
995 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
996 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
997 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
998 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
999 },
1000 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
1001 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1002 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001003 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
1004 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001005 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal. This will generally be stored in the granularity of one second since deal serving starts at seconds boundary. Any time specified with more granularity (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001006 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
1007 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
1008 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
1009 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
1010 { # A polymorphic targeting value used as part of Shared Targeting.
1011 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1012 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1013 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
1014 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1015 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1016 { # Daypart targeting message that specifies if the ad can be shown 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 or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
1018 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1019 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1020 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1021 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1022 },
1023 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
1024 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1025 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1026 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1027 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1028 },
1029 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1030 },
1031 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001032 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001033 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1034 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
1035 &quot;width&quot;: 42, # The width of the creative
1036 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001037 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001038 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
1039 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1040 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
1041 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
1042 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1043 &quot;width&quot;: 42, # The width of the creative
1044 &quot;height&quot;: 42, # The height of the creative.
1045 },
1046 ],
1047 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
1048 &quot;A String&quot;,
1049 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001050 },
1051 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001052 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001053 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
1054 { # A polymorphic targeting value used as part of Shared Targeting.
1055 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1056 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1057 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
1058 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1059 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1060 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
1061 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
1062 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1063 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1064 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1065 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1066 },
1067 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
1068 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1069 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1070 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1071 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1072 },
1073 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1074 },
1075 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001076 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001077 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1078 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
1079 &quot;width&quot;: 42, # The width of the creative
1080 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001081 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001082 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
1083 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1084 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
1085 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
1086 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1087 &quot;width&quot;: 42, # The width of the creative
1088 &quot;height&quot;: 42, # The height of the creative.
1089 },
1090 ],
1091 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
1092 &quot;A String&quot;,
1093 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001094 },
1095 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001096 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001097 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001098 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001099 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001100 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001101 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1102 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001103 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
1104 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001105 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001106 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
1107 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001108 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001109 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001110 },
1111 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001112 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
1113 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher.
1114 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
1115 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
1116 { # Frequency cap.
1117 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
1118 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
1119 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
1120 },
1121 ],
1122 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
1123 },
1124 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
1125 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1126 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
1127 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
1128 },
1129 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
1130 { # Contains information on how a buyer or seller can be reached.
1131 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1132 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001133 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001134 ],
1135 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
1136 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1137 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
1138 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
1139 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
1140 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
1141 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
1142 &quot;creativeSpecifications&quot;: [
1143 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
1144 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
1145 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1146 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1147 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1148 },
1149 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
1150 { # Represents size of a single ad slot, or a creative.
1151 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1152 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1153 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1154 },
1155 ],
1156 },
1157 ],
1158 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
1159 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
1160 },
1161 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is finalized. This is the deal ID that shows up in serving/reporting etc.
1162 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001163 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
1164 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001165 &quot;A String&quot;,
1166 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001167 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001168 &quot;A String&quot;,
1169 ],
1170 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001171 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
1172 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
1173 { # Represents size of a single ad slot, or a creative.
1174 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1175 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1176 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1177 },
1178 ],
1179 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
1180 { # Represents size of a single ad slot, or a creative.
1181 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1182 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1183 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1184 },
1185 ],
1186 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001187 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001188 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001189 &quot;A String&quot;,
1190 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001191 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001192 &quot;A String&quot;,
1193 ],
1194 },
1195 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001196 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
1197 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
1198 &quot;A String&quot;,
1199 ],
1200 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
1201 &quot;A String&quot;,
1202 ],
1203 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001204 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
1205 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
1206 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
1207 &quot;A String&quot;,
1208 ],
1209 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
1210 &quot;A String&quot;,
1211 ],
1212 },
1213 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001214 },
1215 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
1216 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001217 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001218 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1219 &quot;A String&quot;,
1220 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001221 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1222 &quot;A String&quot;,
1223 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001224 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001225 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
1226 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1227 &quot;A String&quot;,
1228 ],
1229 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1230 &quot;A String&quot;,
1231 ],
1232 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001233 },
1234 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001235 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1236 &quot;A String&quot;,
1237 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001238 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1239 &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001240 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001241 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001242 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
1243 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1244 &quot;A String&quot;,
1245 ],
1246 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1247 &quot;A String&quot;,
1248 ],
1249 },
1250 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001251 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001252 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001253 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
1254 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
1255 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
1256 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
1257 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
1258 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
1259 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1260 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
1261 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1262 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1263 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1264 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1265 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001266 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001267 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001268 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001269 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
1270 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1271 },
1272 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
1273 &quot;A String&quot;,
1274 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001275 },
1276 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001277 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
1278 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
1279 },
1280 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
1281 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
1282 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1283 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
1284 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1285 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1286 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1287 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1288 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001289 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001290 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001291 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001292 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
1293 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1294 },
1295 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
1296 &quot;A String&quot;,
1297 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001298 },
1299 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001300 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001301 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
1302 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
1303 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
1304 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
1305 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1306 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1307 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1308 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1309 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1310 },
1311 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1312 },
1313 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
1314 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1315 },
1316 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
1317 &quot;A String&quot;,
1318 ],
1319 },
1320 ],
1321 },
1322 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
1323 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1324 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1325 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1326 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001327 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001328 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1329 },
1330 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001331 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001332 },
1333 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001334 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
1335 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
1336 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001337 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
1338 { # Contains information on how a buyer or seller can be reached.
1339 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1340 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1341 },
1342 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001343 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
1344 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
1345 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001346 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001347 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
1348 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
1349 { # Contains information on how a buyer or seller can be reached.
1350 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1351 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1352 },
1353 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001354 }</pre>
1355</div>
1356
1357<div class="method">
1358 <code class="details" id="create">create(accountId, body=None, x__xgafv=None)</code>
1359 <pre>Create the given proposal. Each created proposal and any deals it contains are assigned a unique ID by the server.
1360
1361Args:
1362 accountId: string, Account ID of the buyer. (required)
1363 body: object, The request body.
1364 The object takes the form of:
1365
1366{ # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001367 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001368 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
1369 { # A proposal may be associated to several notes.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001370 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
1371 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001372 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001373 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
1374 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001375 },
1376 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001377 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001378 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1379 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
1380 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
1381 },
1382 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the deal causes the proposal revision number to auto-increment. The buyer keeps track of the last revision number they know of and pass it in when making an update. If the head revision number on the server has since incremented, then an ABORTED error is returned during the update operation to let the buyer know that a subsequent update was made.
1383 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
1384 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
1385 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1386 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1387 },
1388 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
1389 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1390 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001391 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
1392 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001393 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal. This will generally be stored in the granularity of one second since deal serving starts at seconds boundary. Any time specified with more granularity (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001394 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
1395 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
1396 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
1397 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
1398 { # A polymorphic targeting value used as part of Shared Targeting.
1399 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1400 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1401 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
1402 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1403 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1404 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
1405 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
1406 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1407 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1408 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1409 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1410 },
1411 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
1412 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1413 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1414 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1415 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1416 },
1417 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1418 },
1419 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001420 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001421 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1422 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
1423 &quot;width&quot;: 42, # The width of the creative
1424 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001425 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001426 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
1427 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1428 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
1429 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
1430 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1431 &quot;width&quot;: 42, # The width of the creative
1432 &quot;height&quot;: 42, # The height of the creative.
1433 },
1434 ],
1435 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
1436 &quot;A String&quot;,
1437 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001438 },
1439 },
1440 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001441 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
1442 { # A polymorphic targeting value used as part of Shared Targeting.
1443 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1444 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1445 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
1446 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1447 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1448 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
1449 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
1450 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1451 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1452 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1453 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1454 },
1455 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
1456 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1457 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1458 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1459 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1460 },
1461 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1462 },
1463 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001464 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001465 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1466 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
1467 &quot;width&quot;: 42, # The width of the creative
1468 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001469 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001470 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
1471 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1472 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
1473 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
1474 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1475 &quot;width&quot;: 42, # The width of the creative
1476 &quot;height&quot;: 42, # The height of the creative.
1477 },
1478 ],
1479 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
1480 &quot;A String&quot;,
1481 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001482 },
1483 },
1484 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001485 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001486 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001487 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001488 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001489 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1490 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001491 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
1492 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001493 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001494 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
1495 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001496 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001497 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001498 },
1499 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001500 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
1501 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher.
1502 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
1503 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
1504 { # Frequency cap.
1505 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
1506 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
1507 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
1508 },
1509 ],
1510 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
1511 },
1512 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
1513 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1514 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
1515 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
1516 },
1517 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
1518 { # Contains information on how a buyer or seller can be reached.
1519 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1520 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001521 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001522 ],
1523 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
1524 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1525 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
1526 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
1527 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
1528 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
1529 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
1530 &quot;creativeSpecifications&quot;: [
1531 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
1532 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
1533 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1534 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1535 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1536 },
1537 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
1538 { # Represents size of a single ad slot, or a creative.
1539 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1540 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1541 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1542 },
1543 ],
1544 },
1545 ],
1546 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
1547 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
1548 },
1549 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is finalized. This is the deal ID that shows up in serving/reporting etc.
1550 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001551 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
1552 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001553 &quot;A String&quot;,
1554 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001555 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001556 &quot;A String&quot;,
1557 ],
1558 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001559 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
1560 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
1561 { # Represents size of a single ad slot, or a creative.
1562 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1563 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1564 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1565 },
1566 ],
1567 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
1568 { # Represents size of a single ad slot, or a creative.
1569 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1570 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1571 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1572 },
1573 ],
1574 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001575 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001576 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001577 &quot;A String&quot;,
1578 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001579 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001580 &quot;A String&quot;,
1581 ],
1582 },
1583 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001584 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
1585 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
1586 &quot;A String&quot;,
1587 ],
1588 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
1589 &quot;A String&quot;,
1590 ],
1591 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001592 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
1593 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
1594 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
1595 &quot;A String&quot;,
1596 ],
1597 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
1598 &quot;A String&quot;,
1599 ],
1600 },
1601 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001602 },
1603 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
1604 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001605 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001606 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1607 &quot;A String&quot;,
1608 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001609 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1610 &quot;A String&quot;,
1611 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001612 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001613 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
1614 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1615 &quot;A String&quot;,
1616 ],
1617 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1618 &quot;A String&quot;,
1619 ],
1620 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001621 },
1622 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001623 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1624 &quot;A String&quot;,
1625 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001626 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1627 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001628 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001629 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001630 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
1631 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1632 &quot;A String&quot;,
1633 ],
1634 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1635 &quot;A String&quot;,
1636 ],
1637 },
1638 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001639 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001640 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001641 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
1642 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
1643 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
1644 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
1645 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
1646 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
1647 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1648 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
1649 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1650 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1651 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1652 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1653 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001654 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001655 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001656 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001657 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
1658 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1659 },
1660 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
1661 &quot;A String&quot;,
1662 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001663 },
1664 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001665 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
1666 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
1667 },
1668 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
1669 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
1670 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
1671 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
1672 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1673 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1674 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1675 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1676 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001677 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001678 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001679 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001680 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
1681 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1682 },
1683 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
1684 &quot;A String&quot;,
1685 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001686 },
1687 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001688 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001689 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
1690 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
1691 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
1692 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
1693 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
1694 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1695 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1696 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1697 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1698 },
1699 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1700 },
1701 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
1702 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1703 },
1704 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
1705 &quot;A String&quot;,
1706 ],
1707 },
1708 ],
1709 },
1710 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
1711 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
1712 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1713 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1714 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001715 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001716 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
1717 },
1718 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001719 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001720 },
1721 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001722 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
1723 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
1724 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001725 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
1726 { # Contains information on how a buyer or seller can be reached.
1727 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1728 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1729 },
1730 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001731 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
1732 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
1733 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001734 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001735 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
1736 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
1737 { # Contains information on how a buyer or seller can be reached.
1738 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1739 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
1740 },
1741 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001742}
1743
1744 x__xgafv: string, V1 error format.
1745 Allowed values
1746 1 - v1 error format
1747 2 - v2 error format
1748
1749Returns:
1750 An object of the form:
1751
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001752 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001753 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001754 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
1755 { # A proposal may be associated to several notes.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001756 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
1757 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001758 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001759 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
1760 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001761 },
1762 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001763 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001764 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1765 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
1766 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
1767 },
1768 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the deal causes the proposal revision number to auto-increment. The buyer keeps track of the last revision number they know of and pass it in when making an update. If the head revision number on the server has since incremented, then an ABORTED error is returned during the update operation to let the buyer know that a subsequent update was made.
1769 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
1770 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
1771 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1772 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1773 },
1774 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
1775 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
1776 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001777 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
1778 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001779 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal. This will generally be stored in the granularity of one second since deal serving starts at seconds boundary. Any time specified with more granularity (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001780 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
1781 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
1782 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
1783 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
1784 { # A polymorphic targeting value used as part of Shared Targeting.
1785 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1786 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1787 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
1788 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1789 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1790 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
1791 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
1792 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1793 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1794 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1795 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1796 },
1797 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
1798 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1799 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1800 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1801 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1802 },
1803 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1804 },
1805 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001806 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001807 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1808 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
1809 &quot;width&quot;: 42, # The width of the creative
1810 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001811 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001812 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
1813 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1814 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
1815 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
1816 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1817 &quot;width&quot;: 42, # The width of the creative
1818 &quot;height&quot;: 42, # The height of the creative.
1819 },
1820 ],
1821 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
1822 &quot;A String&quot;,
1823 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001824 },
1825 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001826 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001827 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
1828 { # A polymorphic targeting value used as part of Shared Targeting.
1829 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
1830 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
1831 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
1832 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
1833 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
1834 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
1835 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
1836 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1837 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1838 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1839 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1840 },
1841 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
1842 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1843 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
1844 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
1845 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
1846 },
1847 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
1848 },
1849 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001850 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001851 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
1852 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
1853 &quot;width&quot;: 42, # The width of the creative
1854 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001855 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001856 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
1857 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
1858 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
1859 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
1860 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
1861 &quot;width&quot;: 42, # The width of the creative
1862 &quot;height&quot;: 42, # The height of the creative.
1863 },
1864 ],
1865 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
1866 &quot;A String&quot;,
1867 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001868 },
1869 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001870 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001871 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001872 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001873 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001874 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001875 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1876 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001877 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
1878 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001879 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001880 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
1881 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001882 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001883 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001884 },
1885 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001886 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
1887 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher.
1888 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
1889 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
1890 { # Frequency cap.
1891 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
1892 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
1893 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
1894 },
1895 ],
1896 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
1897 },
1898 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
1899 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1900 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
1901 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
1902 },
1903 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
1904 { # Contains information on how a buyer or seller can be reached.
1905 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
1906 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001907 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001908 ],
1909 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
1910 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
1911 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
1912 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
1913 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
1914 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
1915 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
1916 &quot;creativeSpecifications&quot;: [
1917 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
1918 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
1919 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1920 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1921 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1922 },
1923 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
1924 { # Represents size of a single ad slot, or a creative.
1925 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1926 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1927 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1928 },
1929 ],
1930 },
1931 ],
1932 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
1933 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
1934 },
1935 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is finalized. This is the deal ID that shows up in serving/reporting etc.
1936 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001937 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
1938 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001939 &quot;A String&quot;,
1940 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001941 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001942 &quot;A String&quot;,
1943 ],
1944 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001945 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
1946 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
1947 { # Represents size of a single ad slot, or a creative.
1948 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1949 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1950 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1951 },
1952 ],
1953 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
1954 { # Represents size of a single ad slot, or a creative.
1955 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
1956 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1957 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
1958 },
1959 ],
1960 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001961 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001962 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001963 &quot;A String&quot;,
1964 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001965 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001966 &quot;A String&quot;,
1967 ],
1968 },
1969 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001970 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
1971 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
1972 &quot;A String&quot;,
1973 ],
1974 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
1975 &quot;A String&quot;,
1976 ],
1977 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001978 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
1979 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
1980 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
1981 &quot;A String&quot;,
1982 ],
1983 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
1984 &quot;A String&quot;,
1985 ],
1986 },
1987 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001988 },
1989 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
1990 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001991 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001992 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
1993 &quot;A String&quot;,
1994 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001995 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
1996 &quot;A String&quot;,
1997 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001998 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001999 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
2000 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2001 &quot;A String&quot;,
2002 ],
2003 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2004 &quot;A String&quot;,
2005 ],
2006 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002007 },
2008 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002009 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2010 &quot;A String&quot;,
2011 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002012 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2013 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002014 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002015 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002016 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
2017 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2018 &quot;A String&quot;,
2019 ],
2020 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2021 &quot;A String&quot;,
2022 ],
2023 },
2024 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002025 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002026 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002027 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
2028 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
2029 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
2030 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
2031 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
2032 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
2033 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2034 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
2035 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2036 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2037 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2038 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2039 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002040 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002041 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002042 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002043 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
2044 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2045 },
2046 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
2047 &quot;A String&quot;,
2048 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002049 },
2050 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002051 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
2052 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
2053 },
2054 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
2055 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
2056 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2057 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
2058 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2059 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2060 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2061 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2062 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002063 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002064 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002065 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002066 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
2067 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2068 },
2069 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
2070 &quot;A String&quot;,
2071 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002072 },
2073 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002074 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002075 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
2076 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
2077 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
2078 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
2079 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2080 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2081 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2082 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2083 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2084 },
2085 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2086 },
2087 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
2088 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2089 },
2090 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
2091 &quot;A String&quot;,
2092 ],
2093 },
2094 ],
2095 },
2096 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
2097 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2098 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2099 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2100 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002101 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002102 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2103 },
2104 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002105 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002106 },
2107 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002108 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
2109 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
2110 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002111 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
2112 { # Contains information on how a buyer or seller can be reached.
2113 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2114 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2115 },
2116 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002117 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
2118 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
2119 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002120 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002121 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
2122 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
2123 { # Contains information on how a buyer or seller can be reached.
2124 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2125 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2126 },
2127 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002128 }</pre>
2129</div>
2130
2131<div class="method">
2132 <code class="details" id="get">get(accountId, proposalId, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002133 <pre>Gets a proposal given its ID. The proposal is returned at its head revision.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002134
2135Args:
2136 accountId: string, Account ID of the buyer. (required)
2137 proposalId: string, The unique ID of the proposal (required)
2138 x__xgafv: string, V1 error format.
2139 Allowed values
2140 1 - v1 error format
2141 2 - v2 error format
2142
2143Returns:
2144 An object of the form:
2145
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002146 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002147 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002148 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
2149 { # A proposal may be associated to several notes.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002150 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
2151 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002152 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002153 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
2154 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002155 },
2156 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002157 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002158 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2159 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
2160 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
2161 },
2162 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the deal causes the proposal revision number to auto-increment. The buyer keeps track of the last revision number they know of and pass it in when making an update. If the head revision number on the server has since incremented, then an ABORTED error is returned during the update operation to let the buyer know that a subsequent update was made.
2163 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
2164 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
2165 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2166 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2167 },
2168 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
2169 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2170 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002171 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
2172 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002173 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal. This will generally be stored in the granularity of one second since deal serving starts at seconds boundary. Any time specified with more granularity (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002174 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
2175 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
2176 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
2177 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
2178 { # A polymorphic targeting value used as part of Shared Targeting.
2179 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2180 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2181 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
2182 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2183 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2184 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2185 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
2186 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2187 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2188 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2189 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2190 },
2191 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
2192 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2193 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2194 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2195 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2196 },
2197 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2198 },
2199 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002200 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002201 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2202 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
2203 &quot;width&quot;: 42, # The width of the creative
2204 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002205 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002206 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
2207 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2208 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
2209 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
2210 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2211 &quot;width&quot;: 42, # The width of the creative
2212 &quot;height&quot;: 42, # The height of the creative.
2213 },
2214 ],
2215 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
2216 &quot;A String&quot;,
2217 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002218 },
2219 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002220 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002221 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
2222 { # A polymorphic targeting value used as part of Shared Targeting.
2223 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2224 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2225 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
2226 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2227 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2228 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2229 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
2230 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2231 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2232 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2233 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2234 },
2235 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
2236 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2237 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2238 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2239 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2240 },
2241 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2242 },
2243 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002244 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002245 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2246 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
2247 &quot;width&quot;: 42, # The width of the creative
2248 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002249 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002250 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
2251 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2252 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
2253 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
2254 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2255 &quot;width&quot;: 42, # The width of the creative
2256 &quot;height&quot;: 42, # The height of the creative.
2257 },
2258 ],
2259 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
2260 &quot;A String&quot;,
2261 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002262 },
2263 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002264 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002265 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002266 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002267 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002268 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002269 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2270 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002271 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
2272 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002273 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002274 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
2275 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002276 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002277 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002278 },
2279 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002280 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
2281 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher.
2282 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
2283 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
2284 { # Frequency cap.
2285 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
2286 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
2287 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
2288 },
2289 ],
2290 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
2291 },
2292 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
2293 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2294 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
2295 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
2296 },
2297 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
2298 { # Contains information on how a buyer or seller can be reached.
2299 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2300 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002301 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002302 ],
2303 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
2304 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2305 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
2306 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
2307 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
2308 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
2309 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
2310 &quot;creativeSpecifications&quot;: [
2311 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
2312 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
2313 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2314 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2315 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2316 },
2317 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
2318 { # Represents size of a single ad slot, or a creative.
2319 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2320 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2321 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2322 },
2323 ],
2324 },
2325 ],
2326 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
2327 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
2328 },
2329 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is finalized. This is the deal ID that shows up in serving/reporting etc.
2330 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002331 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
2332 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002333 &quot;A String&quot;,
2334 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002335 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002336 &quot;A String&quot;,
2337 ],
2338 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002339 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
2340 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
2341 { # Represents size of a single ad slot, or a creative.
2342 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2343 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2344 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2345 },
2346 ],
2347 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
2348 { # Represents size of a single ad slot, or a creative.
2349 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2350 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2351 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2352 },
2353 ],
2354 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002355 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002356 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002357 &quot;A String&quot;,
2358 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002359 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002360 &quot;A String&quot;,
2361 ],
2362 },
2363 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002364 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
2365 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
2366 &quot;A String&quot;,
2367 ],
2368 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
2369 &quot;A String&quot;,
2370 ],
2371 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002372 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
2373 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
2374 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
2375 &quot;A String&quot;,
2376 ],
2377 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
2378 &quot;A String&quot;,
2379 ],
2380 },
2381 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002382 },
2383 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
2384 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002385 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002386 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2387 &quot;A String&quot;,
2388 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002389 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2390 &quot;A String&quot;,
2391 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002392 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002393 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
2394 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2395 &quot;A String&quot;,
2396 ],
2397 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2398 &quot;A String&quot;,
2399 ],
2400 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002401 },
2402 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002403 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2404 &quot;A String&quot;,
2405 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002406 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2407 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002408 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002409 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002410 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
2411 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2412 &quot;A String&quot;,
2413 ],
2414 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2415 &quot;A String&quot;,
2416 ],
2417 },
2418 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002419 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002420 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002421 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
2422 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
2423 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
2424 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
2425 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
2426 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
2427 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2428 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
2429 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2430 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2431 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2432 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2433 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002434 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002435 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002436 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002437 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
2438 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2439 },
2440 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
2441 &quot;A String&quot;,
2442 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002443 },
2444 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002445 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
2446 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
2447 },
2448 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
2449 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
2450 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2451 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
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;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2455 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2456 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002457 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002458 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002459 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002460 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
2461 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2462 },
2463 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
2464 &quot;A String&quot;,
2465 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002466 },
2467 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002468 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002469 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
2470 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
2471 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
2472 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
2473 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2474 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2475 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2476 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2477 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2478 },
2479 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2480 },
2481 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
2482 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2483 },
2484 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
2485 &quot;A String&quot;,
2486 ],
2487 },
2488 ],
2489 },
2490 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
2491 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2492 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2493 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2494 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002495 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002496 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2497 },
2498 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002499 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002500 },
2501 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002502 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
2503 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
2504 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002505 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
2506 { # Contains information on how a buyer or seller can be reached.
2507 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2508 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2509 },
2510 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002511 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
2512 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
2513 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002514 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002515 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
2516 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
2517 { # Contains information on how a buyer or seller can be reached.
2518 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2519 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2520 },
2521 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002522 }</pre>
2523</div>
2524
2525<div class="method">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002526 <code class="details" id="list">list(accountId, filterSyntax=None, pageToken=None, pageSize=None, filter=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002527 <pre>List proposals. A filter expression (PQL query) may be specified to filter the results. To retrieve all finalized proposals, regardless if a proposal is being renegotiated, see the FinalizedProposals resource. Note that Bidder/ChildSeat relationships differ from the usual behavior. A Bidder account can only see its child seats&#x27; proposals by specifying the ChildSeat&#x27;s accountId in the request path.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002528
2529Args:
2530 accountId: string, Account ID of the buyer. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002531 filterSyntax: string, Syntax the filter is written in. Current implementation defaults to PQL but in the future it will be LIST_FILTER.
2532 Allowed values
2533 FILTER_SYNTAX_UNSPECIFIED - A placeholder for an undefined filter syntax.
2534 PQL - PQL query syntax. Visit https://developers.google.com/ad-manager/api/pqlreference for PQL documentation and examples.
2535 LIST_FILTER - API list filtering syntax. Read about syntax and usage at https://developers.google.com/authorized-buyers/apis/guides/v2/list-filters.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002536 pageToken: string, The page token as returned from ListProposalsResponse.
2537 pageSize: integer, Requested page size. The server may return fewer results than requested. If unspecified, the server will pick an appropriate default.
2538 filter: string, An optional PQL filter query used to query for proposals. Nested repeated fields, such as proposal.deals.targetingCriterion, cannot be filtered.
Bu Sun Kim65020912020-05-20 12:08:20 -07002539 x__xgafv: string, V1 error format.
2540 Allowed values
2541 1 - v1 error format
2542 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002543
2544Returns:
2545 An object of the form:
2546
2547 { # Response message for listing proposals.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002548 &quot;nextPageToken&quot;: &quot;A String&quot;, # Continuation token for fetching the next page of results.
Bu Sun Kim65020912020-05-20 12:08:20 -07002549 &quot;proposals&quot;: [ # The list of proposals.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002550 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002551 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002552 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
2553 { # A proposal may be associated to several notes.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002554 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
2555 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002556 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002557 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
2558 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002559 },
2560 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002561 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002562 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2563 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
2564 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
2565 },
2566 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the deal causes the proposal revision number to auto-increment. The buyer keeps track of the last revision number they know of and pass it in when making an update. If the head revision number on the server has since incremented, then an ABORTED error is returned during the update operation to let the buyer know that a subsequent update was made.
2567 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
2568 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
2569 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2570 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2571 },
2572 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
2573 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2574 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002575 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
2576 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002577 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal. This will generally be stored in the granularity of one second since deal serving starts at seconds boundary. Any time specified with more granularity (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002578 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
2579 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
2580 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
2581 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
2582 { # A polymorphic targeting value used as part of Shared Targeting.
2583 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2584 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2585 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
2586 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2587 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2588 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2589 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
2590 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2591 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2592 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2593 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2594 },
2595 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
2596 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2597 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2598 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2599 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2600 },
2601 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2602 },
2603 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002604 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002605 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2606 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
2607 &quot;width&quot;: 42, # The width of the creative
2608 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002609 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002610 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
2611 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2612 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
2613 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
2614 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2615 &quot;width&quot;: 42, # The width of the creative
2616 &quot;height&quot;: 42, # The height of the creative.
2617 },
2618 ],
2619 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
2620 &quot;A String&quot;,
2621 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002622 },
2623 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002624 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002625 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
2626 { # A polymorphic targeting value used as part of Shared Targeting.
2627 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
2628 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
2629 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
2630 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
2631 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
2632 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
2633 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
2634 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2635 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2636 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2637 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2638 },
2639 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
2640 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
2641 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
2642 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
2643 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
2644 },
2645 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
2646 },
2647 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002648 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002649 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
2650 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
2651 &quot;width&quot;: 42, # The width of the creative
2652 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002653 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002654 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
2655 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
2656 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
2657 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
2658 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
2659 &quot;width&quot;: 42, # The width of the creative
2660 &quot;height&quot;: 42, # The height of the creative.
2661 },
2662 ],
2663 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
2664 &quot;A String&quot;,
2665 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002666 },
2667 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002668 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002669 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002670 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002671 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002672 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002673 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2674 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002675 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
2676 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002677 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002678 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
2679 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002680 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002681 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002682 },
2683 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002684 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
2685 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher.
2686 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
2687 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
2688 { # Frequency cap.
2689 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
2690 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
2691 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
2692 },
2693 ],
2694 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
2695 },
2696 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
2697 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2698 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
2699 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
2700 },
2701 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
2702 { # Contains information on how a buyer or seller can be reached.
2703 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2704 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002705 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002706 ],
2707 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
2708 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2709 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
2710 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
2711 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
2712 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
2713 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
2714 &quot;creativeSpecifications&quot;: [
2715 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
2716 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
2717 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2718 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2719 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2720 },
2721 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
2722 { # Represents size of a single ad slot, or a creative.
2723 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2724 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2725 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2726 },
2727 ],
2728 },
2729 ],
2730 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
2731 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
2732 },
2733 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is finalized. This is the deal ID that shows up in serving/reporting etc.
2734 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002735 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
2736 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002737 &quot;A String&quot;,
2738 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002739 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002740 &quot;A String&quot;,
2741 ],
2742 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002743 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
2744 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
2745 { # Represents size of a single ad slot, or a creative.
2746 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2747 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2748 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2749 },
2750 ],
2751 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
2752 { # Represents size of a single ad slot, or a creative.
2753 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
2754 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2755 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
2756 },
2757 ],
2758 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002759 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002760 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002761 &quot;A String&quot;,
2762 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002763 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002764 &quot;A String&quot;,
2765 ],
2766 },
2767 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002768 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
2769 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
2770 &quot;A String&quot;,
2771 ],
2772 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
2773 &quot;A String&quot;,
2774 ],
2775 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002776 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
2777 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
2778 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
2779 &quot;A String&quot;,
2780 ],
2781 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
2782 &quot;A String&quot;,
2783 ],
2784 },
2785 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002786 },
2787 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
2788 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002789 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002790 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2791 &quot;A String&quot;,
2792 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002793 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2794 &quot;A String&quot;,
2795 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002796 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002797 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
2798 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2799 &quot;A String&quot;,
2800 ],
2801 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2802 &quot;A String&quot;,
2803 ],
2804 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002805 },
2806 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002807 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2808 &quot;A String&quot;,
2809 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002810 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2811 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002812 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002813 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002814 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
2815 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
2816 &quot;A String&quot;,
2817 ],
2818 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
2819 &quot;A String&quot;,
2820 ],
2821 },
2822 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002823 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002824 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002825 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
2826 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
2827 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
2828 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
2829 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
2830 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
2831 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2832 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
2833 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2834 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2835 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2836 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2837 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002838 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002839 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002840 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002841 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
2842 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2843 },
2844 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
2845 &quot;A String&quot;,
2846 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002847 },
2848 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002849 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
2850 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
2851 },
2852 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
2853 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
2854 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
2855 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
2856 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2857 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2858 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2859 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2860 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002861 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002862 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002863 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002864 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
2865 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2866 },
2867 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
2868 &quot;A String&quot;,
2869 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002870 },
2871 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002872 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002873 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
2874 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
2875 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
2876 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
2877 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
2878 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2879 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2880 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2881 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
2882 },
2883 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2884 },
2885 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
2886 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2887 },
2888 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
2889 &quot;A String&quot;,
2890 ],
2891 },
2892 ],
2893 },
2894 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
2895 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
2896 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
2897 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
2898 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002899 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002900 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
2901 },
2902 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002903 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002904 },
2905 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002906 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
2907 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
2908 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002909 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
2910 { # Contains information on how a buyer or seller can be reached.
2911 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2912 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2913 },
2914 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002915 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
2916 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
2917 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002918 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002919 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
2920 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
2921 { # Contains information on how a buyer or seller can be reached.
2922 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
2923 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
2924 },
2925 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002926 },
2927 ],
2928 }</pre>
2929</div>
2930
2931<div class="method">
2932 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2933 <pre>Retrieves the next page of results.
2934
2935Args:
2936 previous_request: The request for the previous page. (required)
2937 previous_response: The response from the request for the previous page. (required)
2938
2939Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002940 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002941 page. Returns None if there are no more items in the collection.
2942 </pre>
2943</div>
2944
2945<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002946 <code class="details" id="pause">pause(accountId, proposalId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002947 <pre>Update the given proposal to pause serving. This method will set the `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to true for all deals in the proposal. It is a no-op to pause an already-paused proposal. It is an error to call PauseProposal for a proposal that is not finalized or renegotiating.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002948
2949Args:
2950 accountId: string, Account ID of the buyer. (required)
2951 proposalId: string, The ID of the proposal to pause. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002952 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002953 The object takes the form of:
2954
2955{ # Request message to pause serving for an already-finalized proposal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002956 &quot;reason&quot;: &quot;A String&quot;, # The reason why the proposal is being paused. This human readable message will be displayed in the seller&#x27;s UI. (Max length: 1000 unicode code units.)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002957 }
2958
2959 x__xgafv: string, V1 error format.
2960 Allowed values
2961 1 - v1 error format
2962 2 - v2 error format
2963
2964Returns:
2965 An object of the form:
2966
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002967 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002968 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002969 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
2970 { # A proposal may be associated to several notes.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002971 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
2972 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002973 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002974 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
2975 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002976 },
2977 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002978 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002979 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2980 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
2981 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
2982 },
2983 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the deal causes the proposal revision number to auto-increment. The buyer keeps track of the last revision number they know of and pass it in when making an update. If the head revision number on the server has since incremented, then an ABORTED error is returned during the update operation to let the buyer know that a subsequent update was made.
2984 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
2985 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
2986 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
2987 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2988 },
2989 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
2990 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
2991 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002992 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
2993 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002994 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal. This will generally be stored in the granularity of one second since deal serving starts at seconds boundary. Any time specified with more granularity (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002995 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
2996 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
2997 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
2998 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
2999 { # A polymorphic targeting value used as part of Shared Targeting.
3000 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3001 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3002 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
3003 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3004 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3005 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3006 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
3007 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3008 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3009 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3010 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3011 },
3012 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
3013 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3014 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3015 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3016 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3017 },
3018 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3019 },
3020 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003021 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003022 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3023 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
3024 &quot;width&quot;: 42, # The width of the creative
3025 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003026 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003027 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
3028 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3029 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
3030 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
3031 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3032 &quot;width&quot;: 42, # The width of the creative
3033 &quot;height&quot;: 42, # The height of the creative.
3034 },
3035 ],
3036 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
3037 &quot;A String&quot;,
3038 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003039 },
3040 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003041 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003042 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
3043 { # A polymorphic targeting value used as part of Shared Targeting.
3044 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3045 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3046 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
3047 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3048 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3049 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3050 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
3051 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3052 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3053 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3054 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3055 },
3056 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
3057 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3058 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3059 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3060 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3061 },
3062 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3063 },
3064 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003065 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003066 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3067 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
3068 &quot;width&quot;: 42, # The width of the creative
3069 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003070 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003071 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
3072 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3073 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
3074 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
3075 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3076 &quot;width&quot;: 42, # The width of the creative
3077 &quot;height&quot;: 42, # The height of the creative.
3078 },
3079 ],
3080 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
3081 &quot;A String&quot;,
3082 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003083 },
3084 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003085 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003086 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003087 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003088 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003089 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003090 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3091 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003092 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
3093 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003094 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003095 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
3096 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003097 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003098 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003099 },
3100 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003101 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
3102 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher.
3103 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
3104 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
3105 { # Frequency cap.
3106 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
3107 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
3108 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
3109 },
3110 ],
3111 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
3112 },
3113 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
3114 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3115 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
3116 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
3117 },
3118 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
3119 { # Contains information on how a buyer or seller can be reached.
3120 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3121 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003122 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003123 ],
3124 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
3125 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3126 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
3127 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
3128 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
3129 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
3130 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
3131 &quot;creativeSpecifications&quot;: [
3132 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
3133 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
3134 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3135 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3136 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3137 },
3138 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
3139 { # Represents size of a single ad slot, or a creative.
3140 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3141 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3142 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3143 },
3144 ],
3145 },
3146 ],
3147 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
3148 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
3149 },
3150 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is finalized. This is the deal ID that shows up in serving/reporting etc.
3151 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003152 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
3153 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003154 &quot;A String&quot;,
3155 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003156 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003157 &quot;A String&quot;,
3158 ],
3159 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003160 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
3161 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
3162 { # Represents size of a single ad slot, or a creative.
3163 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3164 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3165 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3166 },
3167 ],
3168 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
3169 { # Represents size of a single ad slot, or a creative.
3170 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3171 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3172 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3173 },
3174 ],
3175 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003176 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003177 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003178 &quot;A String&quot;,
3179 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003180 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003181 &quot;A String&quot;,
3182 ],
3183 },
3184 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003185 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
3186 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
3187 &quot;A String&quot;,
3188 ],
3189 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
3190 &quot;A String&quot;,
3191 ],
3192 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003193 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
3194 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
3195 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
3196 &quot;A String&quot;,
3197 ],
3198 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
3199 &quot;A String&quot;,
3200 ],
3201 },
3202 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003203 },
3204 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
3205 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003206 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003207 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3208 &quot;A String&quot;,
3209 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003210 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3211 &quot;A String&quot;,
3212 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003213 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003214 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
3215 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3216 &quot;A String&quot;,
3217 ],
3218 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3219 &quot;A String&quot;,
3220 ],
3221 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003222 },
3223 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003224 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3225 &quot;A String&quot;,
3226 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003227 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3228 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003229 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003230 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003231 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
3232 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3233 &quot;A String&quot;,
3234 ],
3235 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3236 &quot;A String&quot;,
3237 ],
3238 },
3239 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003240 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003241 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003242 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
3243 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
3244 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
3245 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
3246 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
3247 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
3248 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3249 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
3250 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3251 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3252 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3253 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3254 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003255 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003256 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003257 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003258 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
3259 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3260 },
3261 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
3262 &quot;A String&quot;,
3263 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003264 },
3265 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003266 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
3267 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
3268 },
3269 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
3270 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
3271 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3272 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
3273 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3274 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3275 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3276 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3277 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003278 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003279 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003280 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003281 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
3282 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3283 },
3284 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
3285 &quot;A String&quot;,
3286 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003287 },
3288 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003289 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003290 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
3291 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
3292 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
3293 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
3294 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3295 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3296 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3297 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3298 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3299 },
3300 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3301 },
3302 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
3303 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3304 },
3305 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
3306 &quot;A String&quot;,
3307 ],
3308 },
3309 ],
3310 },
3311 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
3312 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3313 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3314 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3315 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003316 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003317 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3318 },
3319 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003320 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003321 },
3322 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003323 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
3324 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
3325 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003326 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
3327 { # Contains information on how a buyer or seller can be reached.
3328 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3329 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3330 },
3331 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003332 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
3333 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
3334 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003335 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003336 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
3337 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
3338 { # Contains information on how a buyer or seller can be reached.
3339 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3340 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3341 },
3342 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003343 }</pre>
3344</div>
3345
3346<div class="method">
3347 <code class="details" id="resume">resume(accountId, proposalId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003348 <pre>Update the given proposal to resume serving. This method will set the `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to false for all deals in the proposal. Note that if the `has_seller_paused` bit is also set, serving will not resume until the seller also resumes. It is a no-op to resume an already-running proposal. It is an error to call ResumeProposal for a proposal that is not finalized or renegotiating.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003349
3350Args:
3351 accountId: string, Account ID of the buyer. (required)
3352 proposalId: string, The ID of the proposal to resume. (required)
3353 body: object, The request body.
3354 The object takes the form of:
3355
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003356{ # Request message to resume (unpause) serving for an already-finalized proposal.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003357 }
3358
3359 x__xgafv: string, V1 error format.
3360 Allowed values
3361 1 - v1 error format
3362 2 - v2 error format
3363
3364Returns:
3365 An object of the form:
3366
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003367 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003368 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003369 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
3370 { # A proposal may be associated to several notes.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003371 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
3372 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003373 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003374 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
3375 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003376 },
3377 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003378 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003379 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3380 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
3381 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
3382 },
3383 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the deal causes the proposal revision number to auto-increment. The buyer keeps track of the last revision number they know of and pass it in when making an update. If the head revision number on the server has since incremented, then an ABORTED error is returned during the update operation to let the buyer know that a subsequent update was made.
3384 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
3385 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
3386 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3387 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3388 },
3389 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
3390 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3391 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003392 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
3393 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003394 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal. This will generally be stored in the granularity of one second since deal serving starts at seconds boundary. Any time specified with more granularity (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003395 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
3396 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
3397 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
3398 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
3399 { # A polymorphic targeting value used as part of Shared Targeting.
3400 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3401 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3402 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
3403 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3404 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3405 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3406 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
3407 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3408 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3409 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3410 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3411 },
3412 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
3413 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3414 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3415 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3416 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3417 },
3418 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3419 },
3420 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003421 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003422 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3423 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
3424 &quot;width&quot;: 42, # The width of the creative
3425 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003426 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003427 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
3428 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3429 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
3430 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
3431 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3432 &quot;width&quot;: 42, # The width of the creative
3433 &quot;height&quot;: 42, # The height of the creative.
3434 },
3435 ],
3436 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
3437 &quot;A String&quot;,
3438 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003439 },
3440 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003441 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003442 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
3443 { # A polymorphic targeting value used as part of Shared Targeting.
3444 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3445 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3446 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
3447 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3448 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3449 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3450 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
3451 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3452 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3453 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3454 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3455 },
3456 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
3457 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3458 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3459 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3460 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3461 },
3462 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3463 },
3464 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003465 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003466 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3467 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
3468 &quot;width&quot;: 42, # The width of the creative
3469 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003470 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003471 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
3472 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3473 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
3474 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
3475 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3476 &quot;width&quot;: 42, # The width of the creative
3477 &quot;height&quot;: 42, # The height of the creative.
3478 },
3479 ],
3480 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
3481 &quot;A String&quot;,
3482 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003483 },
3484 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003485 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003486 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003487 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003488 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003489 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003490 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3491 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003492 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
3493 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003494 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003495 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
3496 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003497 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003498 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003499 },
3500 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003501 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
3502 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher.
3503 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
3504 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
3505 { # Frequency cap.
3506 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
3507 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
3508 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
3509 },
3510 ],
3511 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
3512 },
3513 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
3514 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3515 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
3516 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
3517 },
3518 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
3519 { # Contains information on how a buyer or seller can be reached.
3520 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3521 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003522 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003523 ],
3524 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
3525 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3526 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
3527 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
3528 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
3529 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
3530 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
3531 &quot;creativeSpecifications&quot;: [
3532 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
3533 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
3534 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3535 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3536 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3537 },
3538 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
3539 { # Represents size of a single ad slot, or a creative.
3540 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3541 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3542 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3543 },
3544 ],
3545 },
3546 ],
3547 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
3548 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
3549 },
3550 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is finalized. This is the deal ID that shows up in serving/reporting etc.
3551 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003552 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
3553 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003554 &quot;A String&quot;,
3555 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003556 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003557 &quot;A String&quot;,
3558 ],
3559 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003560 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
3561 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
3562 { # Represents size of a single ad slot, or a creative.
3563 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3564 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3565 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3566 },
3567 ],
3568 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
3569 { # Represents size of a single ad slot, or a creative.
3570 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3571 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3572 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3573 },
3574 ],
3575 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003576 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003577 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003578 &quot;A String&quot;,
3579 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003580 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003581 &quot;A String&quot;,
3582 ],
3583 },
3584 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003585 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
3586 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
3587 &quot;A String&quot;,
3588 ],
3589 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
3590 &quot;A String&quot;,
3591 ],
3592 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003593 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
3594 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
3595 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
3596 &quot;A String&quot;,
3597 ],
3598 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
3599 &quot;A String&quot;,
3600 ],
3601 },
3602 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003603 },
3604 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
3605 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003606 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003607 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3608 &quot;A String&quot;,
3609 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003610 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3611 &quot;A String&quot;,
3612 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003613 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003614 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
3615 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3616 &quot;A String&quot;,
3617 ],
3618 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3619 &quot;A String&quot;,
3620 ],
3621 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003622 },
3623 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003624 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3625 &quot;A String&quot;,
3626 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003627 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3628 &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003629 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003630 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003631 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
3632 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3633 &quot;A String&quot;,
3634 ],
3635 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
3636 &quot;A String&quot;,
3637 ],
3638 },
3639 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003640 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003641 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003642 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
3643 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
3644 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
3645 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
3646 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
3647 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
3648 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3649 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
3650 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3651 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3652 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3653 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3654 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003655 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003656 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003657 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003658 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
3659 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3660 },
3661 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
3662 &quot;A String&quot;,
3663 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003664 },
3665 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003666 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
3667 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
3668 },
3669 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
3670 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
3671 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
3672 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
3673 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3674 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3675 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3676 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3677 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003678 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003679 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003680 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003681 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
3682 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3683 },
3684 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
3685 &quot;A String&quot;,
3686 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003687 },
3688 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003689 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003690 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
3691 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
3692 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
3693 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
3694 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
3695 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3696 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3697 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3698 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
3699 },
3700 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3701 },
3702 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
3703 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3704 },
3705 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
3706 &quot;A String&quot;,
3707 ],
3708 },
3709 ],
3710 },
3711 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
3712 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
3713 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3714 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
3715 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003716 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003717 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
3718 },
3719 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003720 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003721 },
3722 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003723 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
3724 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
3725 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003726 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
3727 { # Contains information on how a buyer or seller can be reached.
3728 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3729 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3730 },
3731 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003732 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
3733 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
3734 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003735 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003736 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
3737 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
3738 { # Contains information on how a buyer or seller can be reached.
3739 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3740 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
3741 },
3742 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003743 }</pre>
3744</div>
3745
3746<div class="method">
3747 <code class="details" id="update">update(accountId, proposalId, body=None, x__xgafv=None)</code>
3748 <pre>Update the given proposal at the client known revision number. If the server revision has advanced since the passed-in `proposal.proposal_revision`, an `ABORTED` error message will be returned. Only the buyer-modifiable fields of the proposal will be updated. Note that the deals in the proposal will be updated to match the passed-in copy. If a passed-in deal does not have a `deal_id`, the server will assign a new unique ID and create the deal. If passed-in deal has a `deal_id`, it will be updated to match the passed-in copy. Any existing deals not present in the passed-in proposal will be deleted. It is an error to pass in a deal with a `deal_id` not present at head.
3749
3750Args:
3751 accountId: string, Account ID of the buyer. (required)
3752 proposalId: string, The unique ID of the proposal. (required)
3753 body: object, The request body.
3754 The object takes the form of:
3755
3756{ # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003757 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003758 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
3759 { # A proposal may be associated to several notes.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003760 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
3761 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003762 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003763 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
3764 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003765 },
3766 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003767 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003768 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3769 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
3770 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
3771 },
3772 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the deal causes the proposal revision number to auto-increment. The buyer keeps track of the last revision number they know of and pass it in when making an update. If the head revision number on the server has since incremented, then an ABORTED error is returned during the update operation to let the buyer know that a subsequent update was made.
3773 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
3774 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
3775 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3776 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3777 },
3778 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
3779 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
3780 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003781 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
3782 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003783 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal. This will generally be stored in the granularity of one second since deal serving starts at seconds boundary. Any time specified with more granularity (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003784 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
3785 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
3786 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
3787 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
3788 { # A polymorphic targeting value used as part of Shared Targeting.
3789 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3790 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3791 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
3792 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3793 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3794 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3795 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
3796 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3797 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3798 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3799 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3800 },
3801 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
3802 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3803 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3804 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3805 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3806 },
3807 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3808 },
3809 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003810 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003811 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3812 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
3813 &quot;width&quot;: 42, # The width of the creative
3814 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003815 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003816 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
3817 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3818 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
3819 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
3820 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3821 &quot;width&quot;: 42, # The width of the creative
3822 &quot;height&quot;: 42, # The height of the creative.
3823 },
3824 ],
3825 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
3826 &quot;A String&quot;,
3827 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003828 },
3829 },
3830 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003831 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
3832 { # A polymorphic targeting value used as part of Shared Targeting.
3833 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
3834 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
3835 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
3836 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
3837 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
3838 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
3839 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
3840 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3841 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3842 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3843 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3844 },
3845 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
3846 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3847 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
3848 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
3849 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
3850 },
3851 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
3852 },
3853 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003854 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003855 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
3856 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
3857 &quot;width&quot;: 42, # The width of the creative
3858 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003859 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003860 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
3861 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
3862 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
3863 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
3864 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
3865 &quot;width&quot;: 42, # The width of the creative
3866 &quot;height&quot;: 42, # The height of the creative.
3867 },
3868 ],
3869 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
3870 &quot;A String&quot;,
3871 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003872 },
3873 },
3874 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003875 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003876 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003877 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003878 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003879 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3880 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003881 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
3882 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003883 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003884 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
3885 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003886 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003887 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003888 },
3889 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003890 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
3891 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher.
3892 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
3893 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
3894 { # Frequency cap.
3895 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
3896 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
3897 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
3898 },
3899 ],
3900 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
3901 },
3902 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
3903 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3904 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
3905 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
3906 },
3907 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
3908 { # Contains information on how a buyer or seller can be reached.
3909 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
3910 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003911 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003912 ],
3913 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
3914 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
3915 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
3916 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
3917 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
3918 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
3919 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
3920 &quot;creativeSpecifications&quot;: [
3921 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
3922 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
3923 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3924 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3925 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3926 },
3927 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
3928 { # Represents size of a single ad slot, or a creative.
3929 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3930 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3931 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3932 },
3933 ],
3934 },
3935 ],
3936 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
3937 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
3938 },
3939 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is finalized. This is the deal ID that shows up in serving/reporting etc.
3940 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003941 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
3942 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003943 &quot;A String&quot;,
3944 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003945 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003946 &quot;A String&quot;,
3947 ],
3948 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003949 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
3950 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
3951 { # Represents size of a single ad slot, or a creative.
3952 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3953 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3954 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3955 },
3956 ],
3957 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
3958 { # Represents size of a single ad slot, or a creative.
3959 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
3960 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3961 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
3962 },
3963 ],
3964 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003965 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003966 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003967 &quot;A String&quot;,
3968 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003969 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003970 &quot;A String&quot;,
3971 ],
3972 },
3973 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003974 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
3975 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
3976 &quot;A String&quot;,
3977 ],
3978 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
3979 &quot;A String&quot;,
3980 ],
3981 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003982 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
3983 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
3984 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
3985 &quot;A String&quot;,
3986 ],
3987 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
3988 &quot;A String&quot;,
3989 ],
3990 },
3991 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003992 },
3993 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
3994 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003995 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07003996 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
3997 &quot;A String&quot;,
3998 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003999 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4000 &quot;A String&quot;,
4001 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004002 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004003 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
4004 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4005 &quot;A String&quot;,
4006 ],
4007 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4008 &quot;A String&quot;,
4009 ],
4010 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004011 },
4012 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004013 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4014 &quot;A String&quot;,
4015 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004016 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4017 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004018 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004019 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004020 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
4021 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4022 &quot;A String&quot;,
4023 ],
4024 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4025 &quot;A String&quot;,
4026 ],
4027 },
4028 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004029 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004030 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004031 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
4032 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
4033 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
4034 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
4035 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
4036 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
4037 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
4038 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
4039 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4040 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4041 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4042 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4043 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004044 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004045 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004046 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004047 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
4048 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4049 },
4050 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
4051 &quot;A String&quot;,
4052 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004053 },
4054 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004055 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
4056 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
4057 },
4058 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
4059 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
4060 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
4061 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
4062 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4063 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4064 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4065 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4066 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004067 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004068 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004069 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004070 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
4071 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4072 },
4073 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
4074 &quot;A String&quot;,
4075 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004076 },
4077 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004078 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004079 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
4080 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
4081 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
4082 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
4083 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4084 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4085 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4086 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4087 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
4088 },
4089 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4090 },
4091 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
4092 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4093 },
4094 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
4095 &quot;A String&quot;,
4096 ],
4097 },
4098 ],
4099 },
4100 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
4101 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4102 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4103 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4104 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004105 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004106 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4107 },
4108 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004109 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004110 },
4111 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004112 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
4113 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
4114 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004115 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
4116 { # Contains information on how a buyer or seller can be reached.
4117 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4118 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4119 },
4120 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004121 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
4122 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
4123 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004124 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004125 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
4126 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
4127 { # Contains information on how a buyer or seller can be reached.
4128 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4129 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4130 },
4131 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004132}
4133
4134 x__xgafv: string, V1 error format.
4135 Allowed values
4136 1 - v1 error format
4137 2 - v2 error format
4138
4139Returns:
4140 An object of the form:
4141
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004142 { # Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Note: you can not update, create, or otherwise modify Private Auction or Preferred Deals deals through the API. Fields are updatable unless noted otherwise.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004143 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this proposal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004144 &quot;notes&quot;: [ # Output only. The notes associated with this proposal.
4145 { # A proposal may be associated to several notes.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004146 &quot;noteId&quot;: &quot;A String&quot;, # Output only. The unique ID for the note.
4147 &quot;creatorRole&quot;: &quot;A String&quot;, # Output only. The role of the person (buyer/seller) creating the note.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004148 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when this note was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004149 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number of the proposal when the note is created.
4150 &quot;note&quot;: &quot;A String&quot;, # The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004151 },
4152 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004153 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the proposal was last revised.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004154 &quot;seller&quot;: { # Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. # Reference to the seller on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
4155 &quot;subAccountId&quot;: &quot;A String&quot;, # Optional sub-account ID for the seller.
4156 &quot;accountId&quot;: &quot;A String&quot;, # The unique ID for the seller. The seller fills in this field. The seller account ID is then available to buyer in the product.
4157 },
4158 &quot;proposalRevision&quot;: &quot;A String&quot;, # Output only. The revision number for the proposal. Each update to the proposal or the deal causes the proposal revision number to auto-increment. The buyer keeps track of the last revision number they know of and pass it in when making an update. If the head revision number on the server has since incremented, then an ABORTED error is returned during the update operation to let the buyer know that a subsequent update was made.
4159 &quot;privateAuctionId&quot;: &quot;A String&quot;, # Output only. Private auction ID if this proposal is a private auction proposal.
4160 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. The unique ID of the proposal.
4161 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Reference to the buyer on the proposal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
4162 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4163 },
4164 &quot;billedBuyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # Output only. Reference to the buyer that will get billed for this proposal.
4165 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4166 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004167 &quot;deals&quot;: [ # The deals associated with this proposal. For Private Auction proposals (whose deals have NonGuaranteedAuctionTerms), there will only be one deal.
4168 { # A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004169 &quot;availableStartTime&quot;: &quot;A String&quot;, # Optional proposed flight start time of the deal. This will generally be stored in the granularity of one second since deal serving starts at seconds boundary. Any time specified with more granularity (e.g., in milliseconds) will be truncated towards the start of time in seconds.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004170 &quot;webPropertyCode&quot;: &quot;A String&quot;, # The web property code for the seller copied over from the product.
4171 &quot;targetingCriterion&quot;: [ # The shared targeting visible to buyers and sellers. Each shared targeting entity is AND&#x27;d together.
4172 { # Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.
4173 &quot;inclusions&quot;: [ # The list of value to include as part of the targeting. Each value is OR&#x27;d together.
4174 { # A polymorphic targeting value used as part of Shared Targeting.
4175 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4176 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4177 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
4178 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4179 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4180 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
4181 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
4182 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4183 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4184 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4185 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
4186 },
4187 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
4188 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4189 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4190 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4191 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
4192 },
4193 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4194 },
4195 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004196 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004197 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
4198 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
4199 &quot;width&quot;: 42, # The width of the creative
4200 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004201 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004202 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
4203 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4204 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
4205 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
4206 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
4207 &quot;width&quot;: 42, # The width of the creative
4208 &quot;height&quot;: 42, # The height of the creative.
4209 },
4210 ],
4211 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
4212 &quot;A String&quot;,
4213 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004214 },
4215 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004216 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004217 &quot;exclusions&quot;: [ # The list of values to exclude from targeting. Each value is AND&#x27;d together.
4218 { # A polymorphic targeting value used as part of Shared Targeting.
4219 &quot;longValue&quot;: &quot;A String&quot;, # The long value to include/exclude.
4220 &quot;stringValue&quot;: &quot;A String&quot;, # The string value to include/exclude.
4221 &quot;dayPartTargetingValue&quot;: { # Specifies the day part targeting criteria. # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. The definition of this targeting is derived from the structure used by Ad Manager.
4222 &quot;timeZoneType&quot;: &quot;A String&quot;, # The timezone to use for interpreting the day part targeting.
4223 &quot;dayParts&quot;: [ # A list of day part targeting criterion.
4224 { # Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.
4225 &quot;startTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The starting time of day for the ad to show (minute level granularity). The start time is inclusive. This field is not available for filtering in PQL queries.
4226 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4227 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4228 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4229 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
4230 },
4231 &quot;endTime&quot;: { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # The ending time of the day for the ad to show (minute level granularity). The end time is exclusive. This field is not available for filtering in PQL queries.
4232 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
4233 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
4234 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
4235 &quot;seconds&quot;: 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
4236 },
4237 &quot;dayOfWeek&quot;: &quot;A String&quot;, # The day of the week to target. If unspecified, applicable to all days.
4238 },
4239 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004240 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004241 &quot;creativeSizeValue&quot;: { # Specifies the size of the creative. # The creative size value to include/exclude. Filled in when key = GOOG_CREATIVE_SIZE
4242 &quot;size&quot;: { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting. # For regular or video creative size type, specifies the size of the creative
4243 &quot;width&quot;: 42, # The width of the creative
4244 &quot;height&quot;: 42, # The height of the creative.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004245 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004246 &quot;nativeTemplate&quot;: &quot;A String&quot;, # Output only. The native template for this creative. It will have a value only if creative_size_type = CreativeSizeType.NATIVE.
4247 &quot;creativeSizeType&quot;: &quot;A String&quot;, # The creative size type.
4248 &quot;skippableAdType&quot;: &quot;A String&quot;, # The type of skippable ad for this creative. It will have a value only if creative_size_type = CreativeSizeType.VIDEO.
4249 &quot;companionSizes&quot;: [ # For video creatives specifies the sizes of companion ads (if present). Companion sizes may be filled in only when creative_size_type = VIDEO
4250 { # Message depicting the size of the creative. The units of width and height depend on the type of the targeting.
4251 &quot;width&quot;: 42, # The width of the creative
4252 &quot;height&quot;: 42, # The height of the creative.
4253 },
4254 ],
4255 &quot;allowedFormats&quot;: [ # What formats are allowed by the publisher. If this repeated field is empty then all formats are allowed. For example, if this field contains AllowedFormatType.AUDIO then the publisher only allows an audio ad (without any video).
4256 &quot;A String&quot;,
4257 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004258 },
4259 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004260 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004261 &quot;key&quot;: &quot;A String&quot;, # The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004262 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004263 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004264 &quot;programmaticCreativeSource&quot;: &quot;A String&quot;, # Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004265 &quot;syndicationProduct&quot;: &quot;A String&quot;, # The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
4266 &quot;creativeSafeFrameCompatibility&quot;: &quot;A String&quot;, # Output only. Specifies whether the creative is safeFrame compatible.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004267 &quot;dealServingMetadata&quot;: { # Message captures metadata about the serving status of a deal. # Output only. Metadata about the serving status of this deal.
4268 &quot;dealPauseStatus&quot;: { # Tracks which parties (if any) have paused a deal. The deal is considered paused if either hasBuyerPaused or hasSellPaused is true. # Output only. Tracks which parties (if any) have paused a deal.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004269 &quot;hasSellerPaused&quot;: True or False, # True, if the seller has paused the deal unilaterally.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004270 &quot;sellerPauseReason&quot;: &quot;A String&quot;, # The seller&#x27;s reason for pausing, if the seller paused the deal.
4271 &quot;hasBuyerPaused&quot;: True or False, # True, if the buyer has paused the deal unilaterally.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004272 &quot;buyerPauseReason&quot;: &quot;A String&quot;, # The buyer&#x27;s reason for pausing, if the buyer paused the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004273 &quot;firstPausedBy&quot;: &quot;A String&quot;, # The role of the person who first paused this deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004274 },
4275 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004276 &quot;creativePreApprovalPolicy&quot;: &quot;A String&quot;, # Output only. Specifies the creative pre-approval policy.
4277 &quot;deliveryControl&quot;: { # Message contains details about how the deals will be paced. # The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher.
4278 &quot;creativeBlockingLevel&quot;: &quot;A String&quot;, # Output only. Specified the creative blocking levels to be applied.
4279 &quot;frequencyCaps&quot;: [ # Output only. Specifies any frequency caps.
4280 { # Frequency cap.
4281 &quot;maxImpressions&quot;: 42, # The maximum number of impressions that can be served to a user within the specified time period.
4282 &quot;numTimeUnits&quot;: 42, # The amount of time, in the units specified by time_unit_type. Defines the amount of time over which impressions per user are counted and capped.
4283 &quot;timeUnitType&quot;: &quot;A String&quot;, # The time unit. Along with num_time_units defines the amount of time over which impressions per user are counted and capped.
4284 },
4285 ],
4286 &quot;deliveryRateType&quot;: &quot;A String&quot;, # Output only. Specifies how the impression delivery will be paced.
4287 },
4288 &quot;isSetupComplete&quot;: True or False, # Output only. True, if the buyside inventory setup is complete for this deal.
4289 &quot;createProductId&quot;: &quot;A String&quot;, # The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
4290 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Buyer private data (hidden from seller).
4291 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
4292 },
4293 &quot;sellerContacts&quot;: [ # Output only. Seller contact information for the deal.
4294 { # Contains information on how a buyer or seller can be reached.
4295 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4296 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004297 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004298 ],
4299 &quot;description&quot;: &quot;A String&quot;, # Description for the deal terms.
4300 &quot;createProductRevision&quot;: &quot;A String&quot;, # Optional revision number of the product that the deal was created from. If present on create, and the server `product_revision` has advanced sinced the passed-in `create_product_revision`, an `ABORTED` error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error.
4301 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time of the deal creation.
4302 &quot;proposalId&quot;: &quot;A String&quot;, # Output only. ID of the proposal that this deal is part of.
4303 &quot;displayName&quot;: &quot;A String&quot;, # The name of the deal.
4304 &quot;dealId&quot;: &quot;A String&quot;, # Output only. A unique deal ID for the deal (server-assigned).
4305 &quot;creativeRestrictions&quot;: { # Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn&#x27;t apply to Private Auction and AdX Preferred Deals. # Output only. Restricitions about the creatives associated with the deal (i.e., size) This is available for Programmatic Guaranteed/Preferred Deals in Ad Manager.
4306 &quot;creativeSpecifications&quot;: [
4307 { # Represents information for a creative that is associated with a Programmatic Guaranteed/Preferred Deal in Ad Manager.
4308 &quot;creativeSize&quot;: { # Represents size of a single ad slot, or a creative. # The size of the creative.
4309 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4310 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
4311 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
4312 },
4313 &quot;creativeCompanionSizes&quot;: [ # Companion sizes may be filled in only when this is a video creative.
4314 { # Represents size of a single ad slot, or a creative.
4315 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4316 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
4317 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
4318 },
4319 ],
4320 },
4321 ],
4322 &quot;skippableAdType&quot;: &quot;A String&quot;, # Skippable video ads allow viewers to skip ads after 5 seconds.
4323 &quot;creativeFormat&quot;: &quot;A String&quot;, # The format of the environment that the creatives will be displayed in.
4324 },
4325 &quot;externalDealId&quot;: &quot;A String&quot;, # Output only. The external deal ID assigned to this deal once the deal is finalized. This is the deal ID that shows up in serving/reporting etc.
4326 &quot;targeting&quot;: { # Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. # Output only. Specifies the subset of inventory targeted by the deal.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004327 &quot;videoTargeting&quot;: { # Represents targeting information about video. # Video targeting information.
4328 &quot;excludedPositionTypes&quot;: [ # A list of video positions to be excluded. Position types can either be included or excluded (XOR).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004329 &quot;A String&quot;,
4330 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004331 &quot;targetedPositionTypes&quot;: [ # A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004332 &quot;A String&quot;,
4333 ],
4334 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004335 &quot;inventorySizeTargeting&quot;: { # Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager. # Inventory sizes to be included/excluded.
4336 &quot;excludedInventorySizes&quot;: [ # A list of inventory sizes to be excluded.
4337 { # Represents size of a single ad slot, or a creative.
4338 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4339 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
4340 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
4341 },
4342 ],
4343 &quot;targetedInventorySizes&quot;: [ # A list of inventory sizes to be included.
4344 { # Represents size of a single ad slot, or a creative.
4345 &quot;sizeType&quot;: &quot;A String&quot;, # The size type of the ad slot.
4346 &quot;height&quot;: &quot;A String&quot;, # The height of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
4347 &quot;width&quot;: &quot;A String&quot;, # The width of the ad slot in pixels. This field will be present only when size type is `PIXEL`.
4348 },
4349 ],
4350 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004351 &quot;geoTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # Geo criteria IDs to be included/excluded.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004352 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004353 &quot;A String&quot;,
4354 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004355 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004356 &quot;A String&quot;,
4357 ],
4358 },
4359 &quot;placementTargeting&quot;: { # Represents targeting about where the ads can appear, e.g., certain sites or mobile applications. Different placement targeting types will be logically OR&#x27;ed. # Placement targeting information, e.g., URL, mobile applications.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004360 &quot;urlTargeting&quot;: { # Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn&#x27;t apply. # URLs to be included/excluded.
4361 &quot;excludedUrls&quot;: [ # A list of URLs to be excluded.
4362 &quot;A String&quot;,
4363 ],
4364 &quot;targetedUrls&quot;: [ # A list of URLs to be included.
4365 &quot;A String&quot;,
4366 ],
4367 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004368 &quot;mobileApplicationTargeting&quot;: { # Mobile application targeting settings. # Mobile application targeting information in a deal. This doesn&#x27;t apply to Auction Packages.
4369 &quot;firstPartyTargeting&quot;: { # Represents a list of targeted and excluded mobile application IDs that publishers own. Mobile application IDs are from App Store and Google Play Store. Android App ID, for example, com.google.android.apps.maps, can be found in Google Play Store URL. iOS App ID (which is a number) can be found at the end of iTunes store URL. First party mobile applications is either included or excluded. # Publisher owned apps to be targeted or excluded by the publisher to display the ads in.
4370 &quot;targetedAppIds&quot;: [ # A list of application IDs to be included.
4371 &quot;A String&quot;,
4372 ],
4373 &quot;excludedAppIds&quot;: [ # A list of application IDs to be excluded.
4374 &quot;A String&quot;,
4375 ],
4376 },
4377 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004378 },
4379 &quot;technologyTargeting&quot;: { # Represents targeting about various types of technology. # Technology targeting information, e.g., operating system, device category.
4380 &quot;operatingSystemTargeting&quot;: { # Represents targeting information for operating systems. # Operating system related targeting information.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004381 &quot;operatingSystemCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating systems to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004382 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4383 &quot;A String&quot;,
4384 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004385 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4386 &quot;A String&quot;,
4387 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004388 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004389 &quot;operatingSystemVersionCriteria&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of operating system versions to be included/excluded.
4390 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4391 &quot;A String&quot;,
4392 ],
4393 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4394 &quot;A String&quot;,
4395 ],
4396 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004397 },
4398 &quot;deviceCapabilityTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device capabilities to be included/excluded.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004399 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4400 &quot;A String&quot;,
4401 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004402 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4403 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004404 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004405 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004406 &quot;deviceCategoryTargeting&quot;: { # Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. # IDs of device categories to be included/excluded.
4407 &quot;excludedCriteriaIds&quot;: [ # A list of numeric IDs to be excluded.
4408 &quot;A String&quot;,
4409 ],
4410 &quot;targetedCriteriaIds&quot;: [ # A list of numeric IDs to be included.
4411 &quot;A String&quot;,
4412 ],
4413 },
4414 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004415 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004416 &quot;availableEndTime&quot;: &quot;A String&quot;, # Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004417 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the deal was last updated.
4418 &quot;dealTerms&quot;: { # The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher. # The negotiable terms of the deal.
4419 &quot;sellerTimeZone&quot;: &quot;A String&quot;, # The time zone name. For deals with Cost Per Day billing, defines the time zone used to mark the boundaries of a day. It should be an IANA TZ name, such as &quot;America/Los_Angeles&quot;. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
4420 &quot;estimatedImpressionsPerDay&quot;: &quot;A String&quot;, # Non-binding estimate of the impressions served per day. Can be set by buyer or seller.
4421 &quot;guaranteedFixedPriceTerms&quot;: { # Terms for Programmatic Guaranteed Deals. # The terms for guaranteed fixed price deals.
4422 &quot;guaranteedImpressions&quot;: &quot;A String&quot;, # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy.
4423 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
4424 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
4425 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4426 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4427 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4428 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4429 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004430 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004431 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004432 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004433 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
4434 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4435 },
4436 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
4437 &quot;A String&quot;,
4438 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004439 },
4440 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004441 &quot;minimumDailyLooks&quot;: &quot;A String&quot;, # Daily minimum looks for CPD deal types.
4442 &quot;guaranteedLooks&quot;: &quot;A String&quot;, # Count of guaranteed looks. Required for deal, optional for product.
4443 },
4444 &quot;description&quot;: &quot;A String&quot;, # Publisher provided description for the terms.
4445 &quot;nonGuaranteedFixedPriceTerms&quot;: { # Terms for Preferred Deals. Note that Preferred Deals cannot be created via the API at this time, but can be returned in a get or list request. # The terms for non-guaranteed fixed price deals.
4446 &quot;fixedPrices&quot;: [ # Fixed price for the specified buyer.
4447 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
4448 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4449 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4450 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4451 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4452 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004453 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004454 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004455 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004456 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
4457 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4458 },
4459 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
4460 &quot;A String&quot;,
4461 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004462 },
4463 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004464 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004465 &quot;nonGuaranteedAuctionTerms&quot;: { # Terms for Private Auctions. Note that Private Auctions can be created only by the seller, but they can be returned in a get or list request. # The terms for non-guaranteed auction deals.
4466 &quot;autoOptimizePrivateAuction&quot;: True or False, # True if open auction buyers are allowed to compete with invited buyers in this private auction.
4467 &quot;reservePricesPerBuyer&quot;: [ # Reserve price for the specified buyer.
4468 { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
4469 &quot;price&quot;: { # Represents a price and a pricing type for a product / deal. # The specified price.
4470 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4471 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4472 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4473 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
4474 },
4475 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4476 },
4477 &quot;buyer&quot;: { # Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there&#x27;s no more specific rule matching the buyer).
4478 &quot;accountId&quot;: &quot;A String&quot;, # Authorized Buyers account ID of the buyer.
4479 },
4480 &quot;advertiserIds&quot;: [ # The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
4481 &quot;A String&quot;,
4482 ],
4483 },
4484 ],
4485 },
4486 &quot;estimatedGrossSpend&quot;: { # Represents a price and a pricing type for a product / deal. # Non-binding estimate of the estimated gross spend for this deal. Can be set by buyer or seller.
4487 &quot;amount&quot;: { # Represents an amount of money with its currency type. # The actual price with currency specified.
4488 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
4489 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
4490 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004491 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004492 &quot;pricingType&quot;: &quot;A String&quot;, # The pricing type for the deal/product. (default: CPM)
4493 },
4494 &quot;brandingType&quot;: &quot;A String&quot;, # Visibility of the URL in bid requests. (default: BRANDED)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004495 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07004496 },
4497 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004498 &quot;isRenegotiating&quot;: True or False, # Output only. True if the proposal is being renegotiated.
4499 &quot;lastUpdaterOrCommentorRole&quot;: &quot;A String&quot;, # Output only. The role of the last user that either updated the proposal or left a comment.
4500 &quot;proposalState&quot;: &quot;A String&quot;, # Output only. The current state of the proposal.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004501 &quot;buyerContacts&quot;: [ # Contact information for the buyer.
4502 { # Contains information on how a buyer or seller can be reached.
4503 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4504 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4505 },
4506 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004507 &quot;originatorRole&quot;: &quot;A String&quot;, # Output only. Indicates whether the buyer/seller created the proposal.
4508 &quot;buyerPrivateData&quot;: { # Buyers are allowed to store certain types of private data in a proposal/deal. # Private data for buyer. (hidden from seller).
4509 &quot;referenceId&quot;: &quot;A String&quot;, # A buyer or seller specified reference ID. This can be queried in the list operations (max-length: 1024 unicode code units).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07004510 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08004511 &quot;displayName&quot;: &quot;A String&quot;, # The name for the proposal.
4512 &quot;sellerContacts&quot;: [ # Output only. Contact information for the seller.
4513 { # Contains information on how a buyer or seller can be reached.
4514 &quot;name&quot;: &quot;A String&quot;, # The name of the contact.
4515 &quot;email&quot;: &quot;A String&quot;, # Email address for the contact.
4516 },
4517 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004518 }</pre>
4519</div>
4520
4521</body></html>