github.com/prebid/prebid-server/v2@v2.18.0/exchange/exchangetest/generate-bid-id-error.json (about) 1 { 2 "bidIDGenerator": { 3 "generateBidID": true, 4 "returnError": true 5 }, 6 "incomingRequest": { 7 "ortbRequest": { 8 "id": "some-request-id", 9 "site": { 10 "page": "test.somepage.com" 11 }, 12 "imp": [ 13 { 14 "id": "my-imp-id", 15 "video": { 16 "mimes": [ 17 "video/mp4" 18 ] 19 }, 20 "ext": { 21 "prebid": { 22 "bidder": { 23 "appnexus": { 24 "placementId": 1 25 } 26 } 27 } 28 } 29 } 30 ], 31 "test": 1, 32 "ext": { 33 "prebid": { 34 "targeting": { 35 "includebrandcategory": { 36 "primaryadserver": 1, 37 "publisher": "", 38 "withcategory": true 39 }, 40 "pricegranularity": { 41 "precision": 2, 42 "ranges": [ 43 { 44 "min": 0, 45 "max": 20, 46 "increment": 0.1 47 } 48 ] 49 }, 50 "includewinners": true, 51 "includebidderkeys": true, 52 "appendbiddernames": true 53 } 54 } 55 } 56 }, 57 "usersyncs": { 58 "appnexus": "123" 59 } 60 }, 61 "outgoingRequests": { 62 "appnexus": { 63 "mockResponse": { 64 "pbsSeatBids": [ 65 { 66 "pbsBids": [ 67 { 68 "ortbBid": { 69 "id": "apn-bid", 70 "impid": "my-imp-id", 71 "price": 0.3, 72 "w": 200, 73 "h": 250, 74 "crid": "creative-1", 75 "cat": [ 76 "IAB1-1" 77 ] 78 }, 79 "bidType": "video", 80 "bidVideo": { 81 "duration": 30, 82 "PrimaryCategory": "" 83 } 84 } 85 ], 86 "seat": "appnexus" 87 } 88 ] 89 } 90 } 91 }, 92 "response": { 93 "bids": { 94 "id": "some-request-id", 95 "seatbid": [ 96 { 97 "seat": "appnexus", 98 "bid": [ 99 { 100 "id": "apn-bid", 101 "impid": "my-imp-id", 102 "price": 0.3, 103 "w": 200, 104 "h": 250, 105 "crid": "creative-1", 106 "cat": [ 107 "IAB1-1" 108 ], 109 "ext": { 110 "origbidcpm": 0.3, 111 "prebid": { 112 "meta": { 113 }, 114 "type": "video", 115 "targeting": { 116 "hb_bidder": "appnexus", 117 "hb_bidder_appnexus": "appnexus", 118 "hb_cache_host": "www.pbcserver.com", 119 "hb_cache_host_appnex": "www.pbcserver.com", 120 "hb_cache_path": "/pbcache/endpoint", 121 "hb_cache_path_appnex": "/pbcache/endpoint", 122 "hb_pb": "0.20", 123 "hb_pb_appnexus": "0.20", 124 "hb_pb_cat_dur": "0.20_VideoGames_0s_appnexus", 125 "hb_pb_cat_dur_appnex": "0.20_VideoGames_0s_appnexus", 126 "hb_size": "200x250", 127 "hb_size_appnexus": "200x250" 128 } 129 } 130 } 131 } 132 ] 133 } 134 ] 135 }, 136 "ext": { 137 "debug": { 138 "resolvedrequest": { 139 "id": "some-request-id", 140 "imp": [ 141 { 142 "id": "my-imp-id", 143 "video": { 144 "mimes": [ 145 "video/mp4" 146 ] 147 }, 148 "ext": { 149 "prebid": { 150 "bidder": { 151 "appnexus": { 152 "placementId": 1 153 } 154 } 155 } 156 } 157 } 158 ], 159 "site": { 160 "page": "test.somepage.com" 161 }, 162 "test": 1, 163 "ext": { 164 "prebid": { 165 "targeting": { 166 "includebrandcategory": { 167 "primaryadserver": 1, 168 "publisher": "", 169 "withcategory": true 170 }, 171 "pricegranularity": { 172 "precision": 2, 173 "ranges": [ 174 { 175 "min": 0, 176 "max": 20, 177 "increment": 0.1 178 } 179 ] 180 }, 181 "includewinners": true, 182 "includebidderkeys": true, 183 "appendbiddernames": true 184 } 185 } 186 } 187 } 188 }, 189 "errors": { 190 "prebid": [ 191 { 192 "code": 999, 193 "message": "Error generating bid.ext.prebid.bidid" 194 } 195 ] 196 } 197 } 198 } 199 }