github.com/prebid/prebid-server@v0.275.0/exchange/exchangetest/multi-bids-with-extra-bids.json (about) 1 { 2 "multiBid": {}, 3 "incomingRequest": { 4 "ortbRequest": { 5 "id": "some-request-id", 6 "site": { 7 "page": "test.somepage.com" 8 }, 9 "imp": [ 10 { 11 "id": "my-imp-id", 12 "video": { 13 "mimes": [ 14 "video/mp4" 15 ] 16 }, 17 "ext": { 18 "prebid": { 19 "bidder": { 20 "pubmatic": { 21 "publisherId": 5890 22 }, 23 "appnexus": { 24 "placementId": 1 25 } 26 } 27 } 28 } 29 }, 30 { 31 "id": "imp-id-2", 32 "video": { 33 "mimes": [ 34 "video/mp4" 35 ] 36 }, 37 "ext": { 38 "prebid": { 39 "bidder": { 40 "pubmatic": { 41 "publisherId": 5890 42 }, 43 "appnexus": { 44 "placementId": 1 45 } 46 } 47 } 48 } 49 } 50 ], 51 "ext": { 52 "prebid": { 53 "targeting": { 54 "includewinners": true, 55 "includebidderkeys": true, 56 "pricegranularity": { 57 "precision": 2, 58 "ranges": [ 59 { 60 "min": 0, 61 "max": 20, 62 "increment": 0.1 63 } 64 ] 65 } 66 }, 67 "alternatebiddercodes": { 68 "enabled": true, 69 "bidders": { 70 "pubmatic": { 71 "enabled": true, 72 "allowedbiddercodes": [ 73 "groupm" 74 ] 75 } 76 } 77 }, 78 "multibid": [ 79 { 80 "bidder": "pubmatic", 81 "maxbids": 2, 82 "targetbiddercodeprefix": "pubm" 83 }, 84 { 85 "bidders": [ 86 "appnexus", 87 "groupm" 88 ], 89 "maxbids": 2 90 } 91 ] 92 } 93 } 94 } 95 }, 96 "outgoingRequests": { 97 "pubmatic": { 98 "expectRequest": { 99 "ortbRequest": { 100 "id": "some-request-id", 101 "site": { 102 "page": "test.somepage.com" 103 }, 104 "imp": [ 105 { 106 "id": "my-imp-id", 107 "video": { 108 "mimes": [ 109 "video/mp4" 110 ] 111 }, 112 "ext": { 113 "bidder": { 114 "publisherId": 5890 115 } 116 } 117 }, 118 { 119 "id": "imp-id-2", 120 "video": { 121 "mimes": [ 122 "video/mp4" 123 ] 124 }, 125 "ext": { 126 "bidder": { 127 "publisherId": 5890 128 } 129 } 130 } 131 ], 132 "ext": { 133 "prebid": { 134 "alternatebiddercodes": { 135 "enabled": true, 136 "bidders": { 137 "pubmatic": { 138 "enabled": true, 139 "allowedbiddercodes": [ 140 "groupm" 141 ] 142 } 143 } 144 }, 145 "multibid": [ 146 { 147 "bidder": "pubmatic", 148 "maxbids": 2, 149 "targetbiddercodeprefix": "pubm" 150 }, 151 { 152 "bidders": [ 153 "groupm" 154 ], 155 "maxbids": 2 156 } 157 ] 158 } 159 } 160 } 161 }, 162 "mockResponse": { 163 "pbsSeatBids": [ 164 { 165 "pbsBids": [ 166 { 167 "ortbBid": { 168 "id": "winning-bid", 169 "impid": "my-imp-id", 170 "price": 0.71, 171 "w": 200, 172 "h": 250, 173 "crid": "creative-1" 174 }, 175 "bidType": "video", 176 "bidMeta": { 177 "adaptercode": "pubmatic" 178 } 179 }, 180 { 181 "ortbBid": { 182 "id": "losing-bid", 183 "impid": "my-imp-id", 184 "price": 0.21, 185 "w": 200, 186 "h": 250, 187 "crid": "creative-2" 188 }, 189 "bidType": "video", 190 "bidMeta": { 191 "adaptercode": "pubmatic" 192 } 193 }, 194 { 195 "ortbBid": { 196 "id": "other-bid", 197 "impid": "imp-id-2", 198 "price": 0.61, 199 "w": 300, 200 "h": 500, 201 "crid": "creative-3" 202 }, 203 "bidType": "video", 204 "bidMeta": { 205 "adaptercode": "pubmatic" 206 } 207 }, 208 { 209 "ortbBid": { 210 "id": "contending-bid", 211 "impid": "my-imp-id", 212 "price": 0.51, 213 "w": 200, 214 "h": 250, 215 "crid": "creative-4" 216 }, 217 "bidType": "video", 218 "bidMeta": { 219 "adaptercode": "pubmatic" 220 } 221 } 222 ], 223 "seat": "pubmatic" 224 } 225 ] 226 } 227 }, 228 "appnexus": { 229 "expectRequest": { 230 "ortbRequest": { 231 "id": "some-request-id", 232 "site": { 233 "page": "test.somepage.com" 234 }, 235 "imp": [ 236 { 237 "id": "my-imp-id", 238 "video": { 239 "mimes": [ 240 "video/mp4" 241 ] 242 }, 243 "ext": { 244 "bidder": { 245 "placementId": 1 246 } 247 } 248 }, 249 { 250 "id": "imp-id-2", 251 "video": { 252 "mimes": [ 253 "video/mp4" 254 ] 255 }, 256 "ext": { 257 "bidder": { 258 "placementId": 1 259 } 260 } 261 } 262 ], 263 "ext": { 264 "prebid": { 265 "alternatebiddercodes": { 266 "enabled": true, 267 "bidders": null 268 }, 269 "multibid": [ 270 { 271 "bidders": [ 272 "appnexus" 273 ], 274 "maxbids": 2 275 } 276 ] 277 } 278 } 279 } 280 }, 281 "mockResponse": { 282 "pbsSeatBids": [ 283 { 284 "pbsBids": [ 285 { 286 "ortbBid": { 287 "id": "apn-bid", 288 "impid": "my-imp-id", 289 "price": 0.3, 290 "w": 200, 291 "h": 500, 292 "crid": "creative-a-1" 293 }, 294 "bidType": "banner", 295 "bidMeta": { 296 "adaptercode": "appnexus" 297 } 298 }, 299 { 300 "ortbBid": { 301 "id": "apn-bid-2", 302 "impid": "my-imp-id", 303 "price": 0.3, 304 "w": 200, 305 "h": 500, 306 "crid": "creative-a-2" 307 }, 308 "bidType": "banner", 309 "bidMeta": { 310 "adaptercode": "appnexus" 311 } 312 } 313 ], 314 "seat": "appnexus" 315 } 316 ] 317 } 318 } 319 }, 320 "response": { 321 "bids": { 322 "id": "some-request-id", 323 "seatbid": [ 324 { 325 "seat": "pubmatic", 326 "bid": [ 327 { 328 "id": "winning-bid", 329 "impid": "my-imp-id", 330 "price": 0.71, 331 "w": 200, 332 "h": 250, 333 "crid": "creative-1", 334 "ext": { 335 "origbidcpm": 0.71, 336 "prebid": { 337 "meta": { 338 "adaptercode": "pubmatic" 339 }, 340 "type": "video", 341 "targeting": { 342 "hb_bidder": "pubmatic", 343 "hb_bidder_pubmatic": "pubmatic", 344 "hb_cache_host": "www.pbcserver.com", 345 "hb_cache_host_pubmat": "www.pbcserver.com", 346 "hb_cache_path": "/pbcache/endpoint", 347 "hb_cache_path_pubmat": "/pbcache/endpoint", 348 "hb_pb": "0.70", 349 "hb_pb_pubmatic": "0.70", 350 "hb_size": "200x250", 351 "hb_size_pubmatic": "200x250" 352 }, 353 "targetbiddercode": "pubmatic" 354 } 355 } 356 }, 357 { 358 "id": "losing-bid", 359 "impid": "my-imp-id", 360 "price": 0.21, 361 "w": 200, 362 "h": 250, 363 "crid": "creative-2", 364 "ext": { 365 "origbidcpm": 0.21, 366 "prebid": { 367 "meta": { 368 "adaptercode": "pubmatic" 369 }, 370 "type": "video" 371 } 372 } 373 }, 374 { 375 "id": "other-bid", 376 "impid": "imp-id-2", 377 "price": 0.61, 378 "w": 300, 379 "h": 500, 380 "crid": "creative-3", 381 "ext": { 382 "origbidcpm": 0.61, 383 "prebid": { 384 "meta": { 385 "adaptercode": "pubmatic" 386 }, 387 "type": "video", 388 "targeting": { 389 "hb_bidder": "pubmatic", 390 "hb_bidder_pubmatic": "pubmatic", 391 "hb_cache_host": "www.pbcserver.com", 392 "hb_cache_host_pubmat": "www.pbcserver.com", 393 "hb_cache_path": "/pbcache/endpoint", 394 "hb_cache_path_pubmat": "/pbcache/endpoint", 395 "hb_pb": "0.60", 396 "hb_pb_pubmatic": "0.60", 397 "hb_size": "300x500", 398 "hb_size_pubmatic": "300x500" 399 }, 400 "targetbiddercode": "pubmatic" 401 } 402 } 403 }, 404 { 405 "id": "contending-bid", 406 "impid": "my-imp-id", 407 "price": 0.51, 408 "w": 200, 409 "h": 250, 410 "crid": "creative-4", 411 "ext": { 412 "origbidcpm": 0.51, 413 "prebid": { 414 "meta": { 415 "adaptercode": "pubmatic" 416 }, 417 "type": "video", 418 "targeting": { 419 "hb_bidder_pubm2": "pubm2", 420 "hb_cache_host_pubm2": "www.pbcserver.com", 421 "hb_cache_path_pubm2": "/pbcache/endpoint", 422 "hb_pb_pubm2": "0.50", 423 "hb_size_pubm2": "200x250" 424 }, 425 "targetbiddercode": "pubm2" 426 } 427 } 428 } 429 ] 430 }, 431 { 432 "seat": "appnexus", 433 "bid": [ 434 { 435 "id": "apn-bid", 436 "impid": "my-imp-id", 437 "price": 0.3, 438 "w": 200, 439 "h": 500, 440 "crid": "creative-a-1", 441 "ext": { 442 "origbidcpm": 0.3, 443 "prebid": { 444 "meta": { 445 "adaptercode": "appnexus" 446 }, 447 "targetbiddercode": "appnexus", 448 "type": "banner", 449 "targeting": { 450 "hb_bidder_appnexus": "appnexus", 451 "hb_cache_host_appnex": "www.pbcserver.com", 452 "hb_cache_path_appnex": "/pbcache/endpoint", 453 "hb_pb_appnexus": "0.20", 454 "hb_size_appnexus": "200x500" 455 } 456 } 457 } 458 }, 459 { 460 "id": "apn-bid-2", 461 "impid": "my-imp-id", 462 "price": 0.3, 463 "w": 200, 464 "h": 500, 465 "crid": "creative-a-2", 466 "ext": { 467 "origbidcpm": 0.3, 468 "prebid": { 469 "meta": { 470 "adaptercode": "appnexus" 471 }, 472 "type": "banner" 473 } 474 } 475 } 476 ] 477 } 478 ] 479 } 480 } 481 }