github.com/prebid/prebid-server@v0.275.0/adapters/huaweiads/huaweiadstest/exemplary/banner1.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.example.p1", 31 "name": "Huawei Browser", 32 "ver": "9.1.0.301", 33 "content": { 34 "language": "zh" 35 } 36 }, 37 "device": { 38 "ua": "useragent", 39 "h": 1920, 40 "language": "zh", 41 "model": "COL-TEST", 42 "os": "android", 43 "osv": "10.0.0", 44 "devicetype": 4, 45 "make": "huawei", 46 "w": 1080, 47 "ip": "ip", 48 "ifa": "e4fe9bde-caa0-47b6-908d-ffba3fa184f2", 49 "pxratio": 23.01, 50 "mccmnc": "460", 51 "geo": { 52 "country": "CHN" 53 } 54 }, 55 "user": { 56 "ext": { 57 "data": { 58 "gaid": [ 59 "gaid" 60 ], 61 "oaid": [ 62 "oaid" 63 ], 64 "clientTime": [ 65 "2018-11-02 16:34:07.981+1300" 66 ] 67 }, 68 "consent": "CPaYLJBPaYLJBIPAAAENCSCgAPAAAAAAAAAAGsQAQGsAAAAA.YAAAAAAAAAA" 69 } 70 }, 71 "regs": { 72 "coppa": 1 73 }, 74 "ext": { 75 } 76 }, 77 "httpcalls": [ 78 { 79 "expectedRequest": { 80 "uri": "https://acd.op.hicloud.com/ppsadx/getResult", 81 "headers": { 82 "Accept": [ 83 "application/json" 84 ], 85 "Content-Type": [ 86 "application/json;charset=utf-8" 87 ], 88 "User-Agent": [ 89 "useragent" 90 ], 91 "Authorization": [ 92 "Digest username=123,realm=ppsadx/getResult,nonce=1629473330823,response=d1d61a13a83e1468aa4dff5c8a6cee0b8b381173ca3eb6fa9b313937684d87c0,algorithm=HmacSHA256,usertype=1,keyid=41" 93 ] 94 }, 95 "body": { 96 "app": { 97 "lang": "zh", 98 "country": "CN", 99 "name": "Huawei Browser", 100 "pkgname": "com.example.pkgname1", 101 "version": "9.1.0.301" 102 }, 103 "multislot": [ 104 { 105 "adtype": 8, 106 "slotid": "m8x9x3rzff", 107 "test": 1, 108 "format": [ 109 { 110 "w": 300, 111 "h": 250 112 } 113 ], 114 "w": 300, 115 "h": 250 116 } 117 ], 118 "device": { 119 "height": 1920, 120 "language": "zh", 121 "oaid": "oaid", 122 "os": "android", 123 "type": 4, 124 "ip": "ip", 125 "localeCountry": "CN", 126 "pxratio": 23.01, 127 "width": 1080, 128 "clientTime": "2018-11-02 16:34:07.981+1300", 129 "gaid": "gaid", 130 "useragent": "useragent", 131 "version": "10.0.0", 132 "maker": "huawei", 133 "model": "COL-TEST", 134 "belongCountry": "CN" 135 }, 136 "geo": { 137 }, 138 "network": { 139 "type": 0 140 }, 141 "regs": { 142 "coppa": 1 143 }, 144 "consent": "CPaYLJBPaYLJBIPAAAENCSCgAPAAAAAAAAAAGsQAQGsAAAAA.YAAAAAAAAAA", 145 "version": "3.4", 146 "clientAdRequestId": "test-req-id" 147 } 148 }, 149 "mockResponse": { 150 "status": 200, 151 "body": { 152 "ctrlSwitchs": "0", 153 "dsp1cost": 61, 154 "dspcost": 108, 155 "multiad": [ 156 { 157 "adtype": 8, 158 "brsetting": "Y", 159 "content": [ 160 { 161 "clickActionList": [ 162 1 163 ], 164 "contentid": "58025103", 165 "creativetype": 2, 166 "ctrlSwitchs": "001011001001010112", 167 "endtime": 1621428898335, 168 "filterList": [ 169 3 170 ], 171 "interactiontype": 1, 172 "landingTitle": 1, 173 "metaData": { 174 "adSign": "2", 175 "appPromotionChannel": "401721412", 176 "clickUrl": "https://ads.huawei.com/usermgtportal/home/index.html#/", 177 "imageInfo": [ 178 { 179 "checkSha256Flag": 1, 180 "height": 300, 181 "imageType": "img", 182 "sha256": "f5d8487cddaecec45b73fc078649478c80ec646bfec8ed7da4ff931f90eab232", 183 "url": "https://ads.huawei.com/usermgtportal/home/img/huawei_logo_black.aaec817d.svg", 184 "width": 250 185 } 186 ], 187 "label": "Banner_API", 188 "landingPageType": "3" 189 }, 190 "monitor": [ 191 { 192 "eventType": "click", 193 "url": [ 194 "http://test/click1", 195 "http://test/click2", 196 "http://test/click3" 197 ] 198 }, 199 { 200 "eventType": "imp", 201 "url": [ 202 "http://test/imp1", 203 "http://test/imp2", 204 "http://test/imp3" 205 ] 206 } 207 ], 208 "paramfromserver": { 209 "a": "1||test", 210 "sig": "", 211 "t": "99990101235959" 212 }, 213 "price": 2.8, 214 "starttime": 1621267200000, 215 "taskid": "48017658" 216 } 217 ], 218 "retcode30": 200, 219 "slotid": "m8x9x3rzff" 220 } 221 ], 222 "noReportAdTypeEventList": [ 223 { 224 "adType": 8, 225 "eventTypeList": [ 226 "exception_6" 227 ] 228 } 229 ], 230 "retcode": 200, 231 "totalCacheSize": 300 232 } 233 } 234 } 235 ], 236 "expectedBidResponses": [ 237 { 238 "currency": "USD", 239 "bids": [ 240 { 241 "bid": { 242 "adm": "<style> html, body { margin: 0; padding: 0; width: 100%; height: 100%; vertical-align: middle; } html { display: table; } body { display: table-cell; vertical-align: middle; text-align: center; -webkit-text-size-adjust: none; } </style> <span class=\"title-link advertiser_label\"></span> <a href='https://ads.huawei.com/usermgtportal/home/index.html#/' style=\"text-decoration:none\" onclick=sendGetReq()> <img src='https://ads.huawei.com/usermgtportal/home/img/huawei_logo_black.aaec817d.svg' width='250' height='300'/> </a> <img height=\"1\" width=\"1\" src='http://test/imp1' > <img height=\"1\" width=\"1\" src='http://test/imp2' > <img height=\"1\" width=\"1\" src='http://test/imp3' > <script type=\"text/javascript\">var dspClickTrackings = [\"http://test/click1\",\"http://test/click2\",\"http://test/click3\"];function sendGetReq() {sendSomeGetReq(dspClickTrackings)}function sendOneGetReq(url) {var req = new XMLHttpRequest();req.open('GET', url, true);req.send(null);}function sendSomeGetReq(urls) {for (var i = 0; i < urls.length; i++) {sendOneGetReq(urls[i]);}}</script>", 243 "adomain": [ 244 "huaweiads" 245 ], 246 "crid": "58025103", 247 "id": "test-imp-id", 248 "impid": "test-imp-id", 249 "price": 2.8, 250 "h": 300, 251 "w": 250 252 }, 253 "type": "banner" 254 } 255 ] 256 } 257 ] 258 }