1 <html><body> 2 <style> 3 4 body, 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 15 body { 16 font-size: 13px; 17 padding: 1em; 18 } 19 20 h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23 } 24 25 h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28 } 29 30 h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34 } 35 36 pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39 } 40 41 pre { 42 margin-top: 0.5em; 43 } 44 45 h1, h2, h3, p { 46 font-family: Arial, sans serif; 47 } 48 49 h1, 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="adexchangebuyer_v1_4.html">Ad Exchange Buyer API</a> . <a href="adexchangebuyer_v1_4.proposals.html">proposals</a></h1> 76 <h2>Instance Methods</h2> 77 <p class="toc_element"> 78 <code><a href="#get">get(proposalId)</a></code></p> 79 <p class="firstline">Get a proposal given its id</p> 80 <p class="toc_element"> 81 <code><a href="#insert">insert(body)</a></code></p> 82 <p class="firstline">Create the given list of proposals</p> 83 <p class="toc_element"> 84 <code><a href="#patch">patch(proposalId, revisionNumber, updateAction, body)</a></code></p> 85 <p class="firstline">Update the given proposal. This method supports patch semantics.</p> 86 <p class="toc_element"> 87 <code><a href="#search">search(pqlQuery=None)</a></code></p> 88 <p class="firstline">Search for proposals using pql query</p> 89 <p class="toc_element"> 90 <code><a href="#setupcomplete">setupcomplete(proposalId)</a></code></p> 91 <p class="firstline">Update the given proposal to indicate that setup has been completed.</p> 92 <p class="toc_element"> 93 <code><a href="#update">update(proposalId, revisionNumber, updateAction, body)</a></code></p> 94 <p class="firstline">Update the given proposal</p> 95 <h3>Method Details</h3> 96 <div class="method"> 97 <code class="details" id="get">get(proposalId)</code> 98 <pre>Get a proposal given its id 99 100 Args: 101 proposalId: string, Id of the proposal to retrieve. (required) 102 103 Returns: 104 An object of the form: 105 106 { # 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. Each field in a proposal can have one of the following setting: 107 # 108 # (readonly) - It is an error to try and set this field. (buyer-readonly) - Only the seller can set this field. (seller-readonly) - Only the buyer can set this field. (updatable) - The field is updatable at all times by either buyer or the seller. 109 "labels": [ # List of labels associated with the proposal. (readonly) 110 { 111 "createTimeMs": "A String", # The creation time (in ms since epoch) for the label. 112 "deprecatedMarketplaceDealParty": { # Information about the party that created the label. 113 "buyer": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal-party. 114 "accountId": "A String", # Adx account id of the buyer. 115 }, 116 "seller": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal party. 117 "subAccountId": "A String", # Optional sub-account id for the seller. 118 "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. 119 }, 120 }, 121 "label": "A String", # The label to use. 122 "accountId": "A String", # The accountId of the party that created the label. 123 }, 124 ], 125 "sellerContacts": [ # Optional contact information of the seller (buyer-readonly). 126 { 127 "email": "A String", # Email address of the contact. 128 "name": "A String", # The name of the contact. 129 }, 130 ], 131 "negotiationId": "A String", # Optional negotiation id if this proposal is a preferred deal proposal. 132 "inventorySource": "A String", # What exchange will provide this inventory (readonly, except on create). 133 "revisionNumber": "A String", # The revision number for the proposal (readonly). 134 "revisionTimeMs": "A String", # The time (ms since epoch) when the proposal was last revised (readonly). 135 "seller": { # Reference to the seller on the proposal. (readonly, except on create) 136 "subAccountId": "A String", # Optional sub-account id for the seller. 137 "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. 138 }, 139 "proposalId": "A String", # The unique id of the proposal. (readonly). 140 "isRenegotiating": True or False, # True if the proposal is being renegotiated (readonly). 141 "dbmAdvertiserIds": [ # IDs of DBM advertisers permission to this proposal. 142 "A String", 143 ], 144 "lastUpdaterOrCommentorRole": "A String", # The role of the last user that either updated the proposal or left a comment. (readonly) 145 "privateAuctionId": "A String", # Optional private auction id if this proposal is a private auction proposal. 146 "originatorRole": "A String", # Indicates whether the buyer/seller created the proposal.(readonly) 147 "hasSellerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off Once both sides have signed off on a deal, the proposal can be finalized by the seller. (buyer-readonly) 148 "buyer": { # Reference to the buyer on the proposal. (readonly, except on create) 149 "accountId": "A String", # Adx account id of the buyer. 150 }, 151 "hasBuyerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off. Once both sides have signed off on a deal, the proposal can be finalized by the seller. (seller-readonly) 152 "kind": "adexchangebuyer#proposal", # Identifies what kind of resource this is. Value: the fixed string "adexchangebuyer#proposal". 153 "proposalState": "A String", # The current state of the proposal. (readonly) 154 "name": "A String", # The name for the proposal (updatable) 155 "buyerPrivateData": { # Private data for buyer. (hidden from seller). 156 "referenceId": "A String", 157 "referencePayload": "A String", 158 }, 159 "billedBuyer": { # Reference to the buyer that will get billed for this proposal. (readonly) 160 "accountId": "A String", # Adx account id of the buyer. 161 }, 162 "isSetupComplete": True or False, # True, if the buyside inventory setup is complete for this proposal. (readonly, except via OrderSetupCompleted action) Deprecated in favor of deal level setup complete flag. 163 "buyerContacts": [ # Optional contact information of the buyer. (seller-readonly) 164 { 165 "email": "A String", # Email address of the contact. 166 "name": "A String", # The name of the contact. 167 }, 168 ], 169 }</pre> 170 </div> 171 172 <div class="method"> 173 <code class="details" id="insert">insert(body)</code> 174 <pre>Create the given list of proposals 175 176 Args: 177 body: object, The request body. (required) 178 The object takes the form of: 179 180 { 181 "webPropertyCode": "A String", # Web property id of the seller creating these orders 182 "proposals": [ # The list of proposals to create. 183 { # 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. Each field in a proposal can have one of the following setting: 184 # 185 # (readonly) - It is an error to try and set this field. (buyer-readonly) - Only the seller can set this field. (seller-readonly) - Only the buyer can set this field. (updatable) - The field is updatable at all times by either buyer or the seller. 186 "labels": [ # List of labels associated with the proposal. (readonly) 187 { 188 "createTimeMs": "A String", # The creation time (in ms since epoch) for the label. 189 "deprecatedMarketplaceDealParty": { # Information about the party that created the label. 190 "buyer": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal-party. 191 "accountId": "A String", # Adx account id of the buyer. 192 }, 193 "seller": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal party. 194 "subAccountId": "A String", # Optional sub-account id for the seller. 195 "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. 196 }, 197 }, 198 "label": "A String", # The label to use. 199 "accountId": "A String", # The accountId of the party that created the label. 200 }, 201 ], 202 "sellerContacts": [ # Optional contact information of the seller (buyer-readonly). 203 { 204 "email": "A String", # Email address of the contact. 205 "name": "A String", # The name of the contact. 206 }, 207 ], 208 "negotiationId": "A String", # Optional negotiation id if this proposal is a preferred deal proposal. 209 "inventorySource": "A String", # What exchange will provide this inventory (readonly, except on create). 210 "revisionNumber": "A String", # The revision number for the proposal (readonly). 211 "revisionTimeMs": "A String", # The time (ms since epoch) when the proposal was last revised (readonly). 212 "seller": { # Reference to the seller on the proposal. (readonly, except on create) 213 "subAccountId": "A String", # Optional sub-account id for the seller. 214 "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. 215 }, 216 "proposalId": "A String", # The unique id of the proposal. (readonly). 217 "isRenegotiating": True or False, # True if the proposal is being renegotiated (readonly). 218 "dbmAdvertiserIds": [ # IDs of DBM advertisers permission to this proposal. 219 "A String", 220 ], 221 "lastUpdaterOrCommentorRole": "A String", # The role of the last user that either updated the proposal or left a comment. (readonly) 222 "privateAuctionId": "A String", # Optional private auction id if this proposal is a private auction proposal. 223 "originatorRole": "A String", # Indicates whether the buyer/seller created the proposal.(readonly) 224 "hasSellerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off Once both sides have signed off on a deal, the proposal can be finalized by the seller. (buyer-readonly) 225 "buyer": { # Reference to the buyer on the proposal. (readonly, except on create) 226 "accountId": "A String", # Adx account id of the buyer. 227 }, 228 "hasBuyerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off. Once both sides have signed off on a deal, the proposal can be finalized by the seller. (seller-readonly) 229 "kind": "adexchangebuyer#proposal", # Identifies what kind of resource this is. Value: the fixed string "adexchangebuyer#proposal". 230 "proposalState": "A String", # The current state of the proposal. (readonly) 231 "name": "A String", # The name for the proposal (updatable) 232 "buyerPrivateData": { # Private data for buyer. (hidden from seller). 233 "referenceId": "A String", 234 "referencePayload": "A String", 235 }, 236 "billedBuyer": { # Reference to the buyer that will get billed for this proposal. (readonly) 237 "accountId": "A String", # Adx account id of the buyer. 238 }, 239 "isSetupComplete": True or False, # True, if the buyside inventory setup is complete for this proposal. (readonly, except via OrderSetupCompleted action) Deprecated in favor of deal level setup complete flag. 240 "buyerContacts": [ # Optional contact information of the buyer. (seller-readonly) 241 { 242 "email": "A String", # Email address of the contact. 243 "name": "A String", # The name of the contact. 244 }, 245 ], 246 }, 247 ], 248 } 249 250 251 Returns: 252 An object of the form: 253 254 { 255 "proposals": [ # The list of proposals successfully created. 256 { # 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. Each field in a proposal can have one of the following setting: 257 # 258 # (readonly) - It is an error to try and set this field. (buyer-readonly) - Only the seller can set this field. (seller-readonly) - Only the buyer can set this field. (updatable) - The field is updatable at all times by either buyer or the seller. 259 "labels": [ # List of labels associated with the proposal. (readonly) 260 { 261 "createTimeMs": "A String", # The creation time (in ms since epoch) for the label. 262 "deprecatedMarketplaceDealParty": { # Information about the party that created the label. 263 "buyer": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal-party. 264 "accountId": "A String", # Adx account id of the buyer. 265 }, 266 "seller": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal party. 267 "subAccountId": "A String", # Optional sub-account id for the seller. 268 "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. 269 }, 270 }, 271 "label": "A String", # The label to use. 272 "accountId": "A String", # The accountId of the party that created the label. 273 }, 274 ], 275 "sellerContacts": [ # Optional contact information of the seller (buyer-readonly). 276 { 277 "email": "A String", # Email address of the contact. 278 "name": "A String", # The name of the contact. 279 }, 280 ], 281 "negotiationId": "A String", # Optional negotiation id if this proposal is a preferred deal proposal. 282 "inventorySource": "A String", # What exchange will provide this inventory (readonly, except on create). 283 "revisionNumber": "A String", # The revision number for the proposal (readonly). 284 "revisionTimeMs": "A String", # The time (ms since epoch) when the proposal was last revised (readonly). 285 "seller": { # Reference to the seller on the proposal. (readonly, except on create) 286 "subAccountId": "A String", # Optional sub-account id for the seller. 287 "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. 288 }, 289 "proposalId": "A String", # The unique id of the proposal. (readonly). 290 "isRenegotiating": True or False, # True if the proposal is being renegotiated (readonly). 291 "dbmAdvertiserIds": [ # IDs of DBM advertisers permission to this proposal. 292 "A String", 293 ], 294 "lastUpdaterOrCommentorRole": "A String", # The role of the last user that either updated the proposal or left a comment. (readonly) 295 "privateAuctionId": "A String", # Optional private auction id if this proposal is a private auction proposal. 296 "originatorRole": "A String", # Indicates whether the buyer/seller created the proposal.(readonly) 297 "hasSellerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off Once both sides have signed off on a deal, the proposal can be finalized by the seller. (buyer-readonly) 298 "buyer": { # Reference to the buyer on the proposal. (readonly, except on create) 299 "accountId": "A String", # Adx account id of the buyer. 300 }, 301 "hasBuyerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off. Once both sides have signed off on a deal, the proposal can be finalized by the seller. (seller-readonly) 302 "kind": "adexchangebuyer#proposal", # Identifies what kind of resource this is. Value: the fixed string "adexchangebuyer#proposal". 303 "proposalState": "A String", # The current state of the proposal. (readonly) 304 "name": "A String", # The name for the proposal (updatable) 305 "buyerPrivateData": { # Private data for buyer. (hidden from seller). 306 "referenceId": "A String", 307 "referencePayload": "A String", 308 }, 309 "billedBuyer": { # Reference to the buyer that will get billed for this proposal. (readonly) 310 "accountId": "A String", # Adx account id of the buyer. 311 }, 312 "isSetupComplete": True or False, # True, if the buyside inventory setup is complete for this proposal. (readonly, except via OrderSetupCompleted action) Deprecated in favor of deal level setup complete flag. 313 "buyerContacts": [ # Optional contact information of the buyer. (seller-readonly) 314 { 315 "email": "A String", # Email address of the contact. 316 "name": "A String", # The name of the contact. 317 }, 318 ], 319 }, 320 ], 321 }</pre> 322 </div> 323 324 <div class="method"> 325 <code class="details" id="patch">patch(proposalId, revisionNumber, updateAction, body)</code> 326 <pre>Update the given proposal. This method supports patch semantics. 327 328 Args: 329 proposalId: string, The proposal id to update. (required) 330 revisionNumber: string, The last known revision number to update. If the head revision in the marketplace database has since changed, an error will be thrown. The caller should then fetch the latest proposal at head revision and retry the update at that revision. (required) 331 updateAction: string, The proposed action to take on the proposal. This field is required and it must be set when updating a proposal. (required) 332 Allowed values 333 accept - 334 cancel - 335 propose - 336 proposeAndAccept - 337 unknownAction - 338 updateNonTerms - 339 body: object, The request body. (required) 340 The object takes the form of: 341 342 { # 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. Each field in a proposal can have one of the following setting: 343 # 344 # (readonly) - It is an error to try and set this field. (buyer-readonly) - Only the seller can set this field. (seller-readonly) - Only the buyer can set this field. (updatable) - The field is updatable at all times by either buyer or the seller. 345 "labels": [ # List of labels associated with the proposal. (readonly) 346 { 347 "createTimeMs": "A String", # The creation time (in ms since epoch) for the label. 348 "deprecatedMarketplaceDealParty": { # Information about the party that created the label. 349 "buyer": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal-party. 350 "accountId": "A String", # Adx account id of the buyer. 351 }, 352 "seller": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal party. 353 "subAccountId": "A String", # Optional sub-account id for the seller. 354 "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. 355 }, 356 }, 357 "label": "A String", # The label to use. 358 "accountId": "A String", # The accountId of the party that created the label. 359 }, 360 ], 361 "sellerContacts": [ # Optional contact information of the seller (buyer-readonly). 362 { 363 "email": "A String", # Email address of the contact. 364 "name": "A String", # The name of the contact. 365 }, 366 ], 367 "negotiationId": "A String", # Optional negotiation id if this proposal is a preferred deal proposal. 368 "inventorySource": "A String", # What exchange will provide this inventory (readonly, except on create). 369 "revisionNumber": "A String", # The revision number for the proposal (readonly). 370 "revisionTimeMs": "A String", # The time (ms since epoch) when the proposal was last revised (readonly). 371 "seller": { # Reference to the seller on the proposal. (readonly, except on create) 372 "subAccountId": "A String", # Optional sub-account id for the seller. 373 "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. 374 }, 375 "proposalId": "A String", # The unique id of the proposal. (readonly). 376 "isRenegotiating": True or False, # True if the proposal is being renegotiated (readonly). 377 "dbmAdvertiserIds": [ # IDs of DBM advertisers permission to this proposal. 378 "A String", 379 ], 380 "lastUpdaterOrCommentorRole": "A String", # The role of the last user that either updated the proposal or left a comment. (readonly) 381 "privateAuctionId": "A String", # Optional private auction id if this proposal is a private auction proposal. 382 "originatorRole": "A String", # Indicates whether the buyer/seller created the proposal.(readonly) 383 "hasSellerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off Once both sides have signed off on a deal, the proposal can be finalized by the seller. (buyer-readonly) 384 "buyer": { # Reference to the buyer on the proposal. (readonly, except on create) 385 "accountId": "A String", # Adx account id of the buyer. 386 }, 387 "hasBuyerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off. Once both sides have signed off on a deal, the proposal can be finalized by the seller. (seller-readonly) 388 "kind": "adexchangebuyer#proposal", # Identifies what kind of resource this is. Value: the fixed string "adexchangebuyer#proposal". 389 "proposalState": "A String", # The current state of the proposal. (readonly) 390 "name": "A String", # The name for the proposal (updatable) 391 "buyerPrivateData": { # Private data for buyer. (hidden from seller). 392 "referenceId": "A String", 393 "referencePayload": "A String", 394 }, 395 "billedBuyer": { # Reference to the buyer that will get billed for this proposal. (readonly) 396 "accountId": "A String", # Adx account id of the buyer. 397 }, 398 "isSetupComplete": True or False, # True, if the buyside inventory setup is complete for this proposal. (readonly, except via OrderSetupCompleted action) Deprecated in favor of deal level setup complete flag. 399 "buyerContacts": [ # Optional contact information of the buyer. (seller-readonly) 400 { 401 "email": "A String", # Email address of the contact. 402 "name": "A String", # The name of the contact. 403 }, 404 ], 405 } 406 407 408 Returns: 409 An object of the form: 410 411 { # 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. Each field in a proposal can have one of the following setting: 412 # 413 # (readonly) - It is an error to try and set this field. (buyer-readonly) - Only the seller can set this field. (seller-readonly) - Only the buyer can set this field. (updatable) - The field is updatable at all times by either buyer or the seller. 414 "labels": [ # List of labels associated with the proposal. (readonly) 415 { 416 "createTimeMs": "A String", # The creation time (in ms since epoch) for the label. 417 "deprecatedMarketplaceDealParty": { # Information about the party that created the label. 418 "buyer": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal-party. 419 "accountId": "A String", # Adx account id of the buyer. 420 }, 421 "seller": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal party. 422 "subAccountId": "A String", # Optional sub-account id for the seller. 423 "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. 424 }, 425 }, 426 "label": "A String", # The label to use. 427 "accountId": "A String", # The accountId of the party that created the label. 428 }, 429 ], 430 "sellerContacts": [ # Optional contact information of the seller (buyer-readonly). 431 { 432 "email": "A String", # Email address of the contact. 433 "name": "A String", # The name of the contact. 434 }, 435 ], 436 "negotiationId": "A String", # Optional negotiation id if this proposal is a preferred deal proposal. 437 "inventorySource": "A String", # What exchange will provide this inventory (readonly, except on create). 438 "revisionNumber": "A String", # The revision number for the proposal (readonly). 439 "revisionTimeMs": "A String", # The time (ms since epoch) when the proposal was last revised (readonly). 440 "seller": { # Reference to the seller on the proposal. (readonly, except on create) 441 "subAccountId": "A String", # Optional sub-account id for the seller. 442 "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. 443 }, 444 "proposalId": "A String", # The unique id of the proposal. (readonly). 445 "isRenegotiating": True or False, # True if the proposal is being renegotiated (readonly). 446 "dbmAdvertiserIds": [ # IDs of DBM advertisers permission to this proposal. 447 "A String", 448 ], 449 "lastUpdaterOrCommentorRole": "A String", # The role of the last user that either updated the proposal or left a comment. (readonly) 450 "privateAuctionId": "A String", # Optional private auction id if this proposal is a private auction proposal. 451 "originatorRole": "A String", # Indicates whether the buyer/seller created the proposal.(readonly) 452 "hasSellerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off Once both sides have signed off on a deal, the proposal can be finalized by the seller. (buyer-readonly) 453 "buyer": { # Reference to the buyer on the proposal. (readonly, except on create) 454 "accountId": "A String", # Adx account id of the buyer. 455 }, 456 "hasBuyerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off. Once both sides have signed off on a deal, the proposal can be finalized by the seller. (seller-readonly) 457 "kind": "adexchangebuyer#proposal", # Identifies what kind of resource this is. Value: the fixed string "adexchangebuyer#proposal". 458 "proposalState": "A String", # The current state of the proposal. (readonly) 459 "name": "A String", # The name for the proposal (updatable) 460 "buyerPrivateData": { # Private data for buyer. (hidden from seller). 461 "referenceId": "A String", 462 "referencePayload": "A String", 463 }, 464 "billedBuyer": { # Reference to the buyer that will get billed for this proposal. (readonly) 465 "accountId": "A String", # Adx account id of the buyer. 466 }, 467 "isSetupComplete": True or False, # True, if the buyside inventory setup is complete for this proposal. (readonly, except via OrderSetupCompleted action) Deprecated in favor of deal level setup complete flag. 468 "buyerContacts": [ # Optional contact information of the buyer. (seller-readonly) 469 { 470 "email": "A String", # Email address of the contact. 471 "name": "A String", # The name of the contact. 472 }, 473 ], 474 }</pre> 475 </div> 476 477 <div class="method"> 478 <code class="details" id="search">search(pqlQuery=None)</code> 479 <pre>Search for proposals using pql query 480 481 Args: 482 pqlQuery: string, Query string to retrieve specific proposals. 483 484 Returns: 485 An object of the form: 486 487 { 488 "proposals": [ # The list of matching proposals. 489 { # 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. Each field in a proposal can have one of the following setting: 490 # 491 # (readonly) - It is an error to try and set this field. (buyer-readonly) - Only the seller can set this field. (seller-readonly) - Only the buyer can set this field. (updatable) - The field is updatable at all times by either buyer or the seller. 492 "labels": [ # List of labels associated with the proposal. (readonly) 493 { 494 "createTimeMs": "A String", # The creation time (in ms since epoch) for the label. 495 "deprecatedMarketplaceDealParty": { # Information about the party that created the label. 496 "buyer": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal-party. 497 "accountId": "A String", # Adx account id of the buyer. 498 }, 499 "seller": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal party. 500 "subAccountId": "A String", # Optional sub-account id for the seller. 501 "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. 502 }, 503 }, 504 "label": "A String", # The label to use. 505 "accountId": "A String", # The accountId of the party that created the label. 506 }, 507 ], 508 "sellerContacts": [ # Optional contact information of the seller (buyer-readonly). 509 { 510 "email": "A String", # Email address of the contact. 511 "name": "A String", # The name of the contact. 512 }, 513 ], 514 "negotiationId": "A String", # Optional negotiation id if this proposal is a preferred deal proposal. 515 "inventorySource": "A String", # What exchange will provide this inventory (readonly, except on create). 516 "revisionNumber": "A String", # The revision number for the proposal (readonly). 517 "revisionTimeMs": "A String", # The time (ms since epoch) when the proposal was last revised (readonly). 518 "seller": { # Reference to the seller on the proposal. (readonly, except on create) 519 "subAccountId": "A String", # Optional sub-account id for the seller. 520 "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. 521 }, 522 "proposalId": "A String", # The unique id of the proposal. (readonly). 523 "isRenegotiating": True or False, # True if the proposal is being renegotiated (readonly). 524 "dbmAdvertiserIds": [ # IDs of DBM advertisers permission to this proposal. 525 "A String", 526 ], 527 "lastUpdaterOrCommentorRole": "A String", # The role of the last user that either updated the proposal or left a comment. (readonly) 528 "privateAuctionId": "A String", # Optional private auction id if this proposal is a private auction proposal. 529 "originatorRole": "A String", # Indicates whether the buyer/seller created the proposal.(readonly) 530 "hasSellerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off Once both sides have signed off on a deal, the proposal can be finalized by the seller. (buyer-readonly) 531 "buyer": { # Reference to the buyer on the proposal. (readonly, except on create) 532 "accountId": "A String", # Adx account id of the buyer. 533 }, 534 "hasBuyerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off. Once both sides have signed off on a deal, the proposal can be finalized by the seller. (seller-readonly) 535 "kind": "adexchangebuyer#proposal", # Identifies what kind of resource this is. Value: the fixed string "adexchangebuyer#proposal". 536 "proposalState": "A String", # The current state of the proposal. (readonly) 537 "name": "A String", # The name for the proposal (updatable) 538 "buyerPrivateData": { # Private data for buyer. (hidden from seller). 539 "referenceId": "A String", 540 "referencePayload": "A String", 541 }, 542 "billedBuyer": { # Reference to the buyer that will get billed for this proposal. (readonly) 543 "accountId": "A String", # Adx account id of the buyer. 544 }, 545 "isSetupComplete": True or False, # True, if the buyside inventory setup is complete for this proposal. (readonly, except via OrderSetupCompleted action) Deprecated in favor of deal level setup complete flag. 546 "buyerContacts": [ # Optional contact information of the buyer. (seller-readonly) 547 { 548 "email": "A String", # Email address of the contact. 549 "name": "A String", # The name of the contact. 550 }, 551 ], 552 }, 553 ], 554 }</pre> 555 </div> 556 557 <div class="method"> 558 <code class="details" id="setupcomplete">setupcomplete(proposalId)</code> 559 <pre>Update the given proposal to indicate that setup has been completed. 560 561 Args: 562 proposalId: string, The proposal id for which the setup is complete (required) 563 </pre> 564 </div> 565 566 <div class="method"> 567 <code class="details" id="update">update(proposalId, revisionNumber, updateAction, body)</code> 568 <pre>Update the given proposal 569 570 Args: 571 proposalId: string, The proposal id to update. (required) 572 revisionNumber: string, The last known revision number to update. If the head revision in the marketplace database has since changed, an error will be thrown. The caller should then fetch the latest proposal at head revision and retry the update at that revision. (required) 573 updateAction: string, The proposed action to take on the proposal. This field is required and it must be set when updating a proposal. (required) 574 Allowed values 575 accept - 576 cancel - 577 propose - 578 proposeAndAccept - 579 unknownAction - 580 updateNonTerms - 581 body: object, The request body. (required) 582 The object takes the form of: 583 584 { # 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. Each field in a proposal can have one of the following setting: 585 # 586 # (readonly) - It is an error to try and set this field. (buyer-readonly) - Only the seller can set this field. (seller-readonly) - Only the buyer can set this field. (updatable) - The field is updatable at all times by either buyer or the seller. 587 "labels": [ # List of labels associated with the proposal. (readonly) 588 { 589 "createTimeMs": "A String", # The creation time (in ms since epoch) for the label. 590 "deprecatedMarketplaceDealParty": { # Information about the party that created the label. 591 "buyer": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal-party. 592 "accountId": "A String", # Adx account id of the buyer. 593 }, 594 "seller": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal party. 595 "subAccountId": "A String", # Optional sub-account id for the seller. 596 "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. 597 }, 598 }, 599 "label": "A String", # The label to use. 600 "accountId": "A String", # The accountId of the party that created the label. 601 }, 602 ], 603 "sellerContacts": [ # Optional contact information of the seller (buyer-readonly). 604 { 605 "email": "A String", # Email address of the contact. 606 "name": "A String", # The name of the contact. 607 }, 608 ], 609 "negotiationId": "A String", # Optional negotiation id if this proposal is a preferred deal proposal. 610 "inventorySource": "A String", # What exchange will provide this inventory (readonly, except on create). 611 "revisionNumber": "A String", # The revision number for the proposal (readonly). 612 "revisionTimeMs": "A String", # The time (ms since epoch) when the proposal was last revised (readonly). 613 "seller": { # Reference to the seller on the proposal. (readonly, except on create) 614 "subAccountId": "A String", # Optional sub-account id for the seller. 615 "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. 616 }, 617 "proposalId": "A String", # The unique id of the proposal. (readonly). 618 "isRenegotiating": True or False, # True if the proposal is being renegotiated (readonly). 619 "dbmAdvertiserIds": [ # IDs of DBM advertisers permission to this proposal. 620 "A String", 621 ], 622 "lastUpdaterOrCommentorRole": "A String", # The role of the last user that either updated the proposal or left a comment. (readonly) 623 "privateAuctionId": "A String", # Optional private auction id if this proposal is a private auction proposal. 624 "originatorRole": "A String", # Indicates whether the buyer/seller created the proposal.(readonly) 625 "hasSellerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off Once both sides have signed off on a deal, the proposal can be finalized by the seller. (buyer-readonly) 626 "buyer": { # Reference to the buyer on the proposal. (readonly, except on create) 627 "accountId": "A String", # Adx account id of the buyer. 628 }, 629 "hasBuyerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off. Once both sides have signed off on a deal, the proposal can be finalized by the seller. (seller-readonly) 630 "kind": "adexchangebuyer#proposal", # Identifies what kind of resource this is. Value: the fixed string "adexchangebuyer#proposal". 631 "proposalState": "A String", # The current state of the proposal. (readonly) 632 "name": "A String", # The name for the proposal (updatable) 633 "buyerPrivateData": { # Private data for buyer. (hidden from seller). 634 "referenceId": "A String", 635 "referencePayload": "A String", 636 }, 637 "billedBuyer": { # Reference to the buyer that will get billed for this proposal. (readonly) 638 "accountId": "A String", # Adx account id of the buyer. 639 }, 640 "isSetupComplete": True or False, # True, if the buyside inventory setup is complete for this proposal. (readonly, except via OrderSetupCompleted action) Deprecated in favor of deal level setup complete flag. 641 "buyerContacts": [ # Optional contact information of the buyer. (seller-readonly) 642 { 643 "email": "A String", # Email address of the contact. 644 "name": "A String", # The name of the contact. 645 }, 646 ], 647 } 648 649 650 Returns: 651 An object of the form: 652 653 { # 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. Each field in a proposal can have one of the following setting: 654 # 655 # (readonly) - It is an error to try and set this field. (buyer-readonly) - Only the seller can set this field. (seller-readonly) - Only the buyer can set this field. (updatable) - The field is updatable at all times by either buyer or the seller. 656 "labels": [ # List of labels associated with the proposal. (readonly) 657 { 658 "createTimeMs": "A String", # The creation time (in ms since epoch) for the label. 659 "deprecatedMarketplaceDealParty": { # Information about the party that created the label. 660 "buyer": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal-party. 661 "accountId": "A String", # Adx account id of the buyer. 662 }, 663 "seller": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal party. 664 "subAccountId": "A String", # Optional sub-account id for the seller. 665 "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. 666 }, 667 }, 668 "label": "A String", # The label to use. 669 "accountId": "A String", # The accountId of the party that created the label. 670 }, 671 ], 672 "sellerContacts": [ # Optional contact information of the seller (buyer-readonly). 673 { 674 "email": "A String", # Email address of the contact. 675 "name": "A String", # The name of the contact. 676 }, 677 ], 678 "negotiationId": "A String", # Optional negotiation id if this proposal is a preferred deal proposal. 679 "inventorySource": "A String", # What exchange will provide this inventory (readonly, except on create). 680 "revisionNumber": "A String", # The revision number for the proposal (readonly). 681 "revisionTimeMs": "A String", # The time (ms since epoch) when the proposal was last revised (readonly). 682 "seller": { # Reference to the seller on the proposal. (readonly, except on create) 683 "subAccountId": "A String", # Optional sub-account id for the seller. 684 "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. 685 }, 686 "proposalId": "A String", # The unique id of the proposal. (readonly). 687 "isRenegotiating": True or False, # True if the proposal is being renegotiated (readonly). 688 "dbmAdvertiserIds": [ # IDs of DBM advertisers permission to this proposal. 689 "A String", 690 ], 691 "lastUpdaterOrCommentorRole": "A String", # The role of the last user that either updated the proposal or left a comment. (readonly) 692 "privateAuctionId": "A String", # Optional private auction id if this proposal is a private auction proposal. 693 "originatorRole": "A String", # Indicates whether the buyer/seller created the proposal.(readonly) 694 "hasSellerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off Once both sides have signed off on a deal, the proposal can be finalized by the seller. (buyer-readonly) 695 "buyer": { # Reference to the buyer on the proposal. (readonly, except on create) 696 "accountId": "A String", # Adx account id of the buyer. 697 }, 698 "hasBuyerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off. Once both sides have signed off on a deal, the proposal can be finalized by the seller. (seller-readonly) 699 "kind": "adexchangebuyer#proposal", # Identifies what kind of resource this is. Value: the fixed string "adexchangebuyer#proposal". 700 "proposalState": "A String", # The current state of the proposal. (readonly) 701 "name": "A String", # The name for the proposal (updatable) 702 "buyerPrivateData": { # Private data for buyer. (hidden from seller). 703 "referenceId": "A String", 704 "referencePayload": "A String", 705 }, 706 "billedBuyer": { # Reference to the buyer that will get billed for this proposal. (readonly) 707 "accountId": "A String", # Adx account id of the buyer. 708 }, 709 "isSetupComplete": True or False, # True, if the buyside inventory setup is complete for this proposal. (readonly, except via OrderSetupCompleted action) Deprecated in favor of deal level setup complete flag. 710 "buyerContacts": [ # Optional contact information of the buyer. (seller-readonly) 711 { 712 "email": "A String", # Email address of the contact. 713 "name": "A String", # The name of the contact. 714 }, 715 ], 716 }</pre> 717 </div> 718 719 </body></html>