github.com/prebid/prebid-server@v0.275.0/adapters/huaweiads/huaweiadstest/supplemental/bad_response.json (about) 1 { 2 "mockBidRequest": { 3 "id": "test-req-id", 4 "imp": [ 5 { 6 "id": "test-imp-id", 7 "banner": { 8 "format": [ 9 { 10 "w": 300, 11 "h": 250 12 } 13 ], 14 "w": 300, 15 "h": 250 16 }, 17 "ext": { 18 "bidder": { 19 "slotid": "m8x9x3rzff", 20 "adtype": "banner", 21 "publisherid": "123", 22 "signkey": "signkey", 23 "keyid": "41", 24 "isTestAuthorization": "true" 25 } 26 } 27 } 28 ], 29 "app": { 30 "bundle": "com.wavehk.android", 31 "name": "Huawei Browser", 32 "ver": "9.1.0.301" 33 }, 34 "device": { 35 "ua": "useragent", 36 "h": 1920, 37 "language": "zh", 38 "geoCountry": "CH", 39 "model": "COL-TEST", 40 "os": "android", 41 "osv": "10.0.0", 42 "devicetype": 4, 43 "make": "huawei", 44 "w": 1080, 45 "ip": "ip", 46 "pxratio": 23.01, 47 "geo": { 48 "country": "" 49 } 50 }, 51 "user": { 52 "ext": { 53 "data": { 54 "gaid": [ 55 "gaid" 56 ], 57 "oaid": [ 58 "oaid" 59 ], 60 "clientTime": [ 61 "2018-11-02 16:34:07.981+1300" 62 ] 63 } 64 } 65 }, 66 "ext": { 67 } 68 }, 69 "httpcalls": [ 70 { 71 "expectedRequest": { 72 "uri": "https://adx-dra.op.hicloud.com/ppsadx/getResult", 73 "headers": { 74 "Accept": [ 75 "application/json" 76 ], 77 "Content-Type": [ 78 "application/json;charset=utf-8" 79 ], 80 "User-Agent": [ 81 "useragent" 82 ], 83 "Authorization": [ 84 "Digest username=123,realm=ppsadx/getResult,nonce=1629473330823,response=d1d61a13a83e1468aa4dff5c8a6cee0b8b381173ca3eb6fa9b313937684d87c0,algorithm=HmacSHA256,usertype=1,keyid=41" 85 ] 86 }, 87 "body": { 88 "app": { 89 "lang": "en", 90 "country": "ZA", 91 "name": "Huawei Browser", 92 "pkgname": "com.wavehk.android", 93 "version": "9.1.0.301" 94 }, 95 "multislot": [ 96 { 97 "adtype": 8, 98 "slotid": "m8x9x3rzff", 99 "test": 1, 100 "format": [ 101 { 102 "h": 250, 103 "w": 300 104 } 105 ], 106 "h": 250, 107 "w": 300 108 } 109 ], 110 "device": { 111 "height": 1920, 112 "language": "zh", 113 "oaid": "oaid", 114 "os": "android", 115 "type": 4, 116 "ip": "ip", 117 "localeCountry": "ZA", 118 "pxratio": 23.01, 119 "width": 1080, 120 "clientTime": "2018-11-02 16:34:07.981+1300", 121 "gaid": "gaid", 122 "useragent": "useragent", 123 "version": "10.0.0", 124 "maker": "huawei", 125 "model": "COL-TEST", 126 "belongCountry": "ZA" 127 }, 128 "geo": { 129 }, 130 "network": { 131 "type": 0 132 }, 133 "regs": { 134 }, 135 "version": "3.4", 136 "clientAdRequestId": "test-req-id" 137 } 138 }, 139 "mockResponse": { 140 "status": 200, 141 "body": { 142 "ctrlSwitchs": "0", 143 "dsp1cost": 61, 144 "dspcost": 108, 145 "multiadw": [ 146 { 147 "adtype": 8, 148 "brsetting": "Y", 149 "content": [ 150 { 151 "clickActionList": [ 152 1 153 ], 154 "contentid": "58025103", 155 "creativetype": 2, 156 "ctrlSwitchs": "001011001001010112", 157 "endtime": 1621428898335, 158 "filterList": [ 159 3 160 ], 161 "interactiontype": 1, 162 "landingTitle": 1, 163 "metaData": { 164 "adSign": "2", 165 "appPromotionChannel": "401721412", 166 "clickUrl": "https://task/clickurl", 167 "imageInfo": [ 168 { 169 "checkSha256Flag": 1, 170 "height": 300, 171 "imageType": "img", 172 "sha256": "f5d8487cddaecec45b73fc078649478c80ec646bfec8ed7da4ff931f90eab232", 173 "url": "https://test/1.png", 174 "width": 250 175 } 176 ], 177 "label": "Banner_API", 178 "landingPageType": "3" 179 }, 180 "monitor": [ 181 { 182 "eventType": "click", 183 "url": [ 184 "http://test/click" 185 ] 186 }, 187 { 188 "eventType": "imp", 189 "url": [ 190 "http://test/imp" 191 ] 192 }, 193 { 194 "eventType": "userclose", 195 "url": [ 196 "http://test/userclose" 197 ] 198 } 199 ], 200 "paramfromserver": { 201 "a": "1||test", 202 "sig": "", 203 "t": "99990101235959" 204 }, 205 "price": 2.8, 206 "starttime": 1621267200000, 207 "taskid": "48017658" 208 } 209 ], 210 "retcode30": 200, 211 "slotid": "m8x9x3rzff" 212 } 213 ], 214 "retcode": 200, 215 "totalCacheSize": 300 216 } 217 } 218 } 219 ], 220 "expectedBidResponses": [ 221 ], 222 "expectedMakeRequestsErrors": [], 223 "expectedMakeBidsErrors": [ 224 { 225 "value": "convert huaweiads response to bidder response failed: multiad length is 0, get no ads from huawei side.", 226 "comparison": "literal" 227 } 228 ] 229 }