github.com/prebid/prebid-server@v0.275.0/adapters/huaweiads/huaweiadstest/exemplary/nativeThreeImage.json (about) 1 { 2 "mockBidRequest": { 3 "id": "test-req-id", 4 "imp": [ 5 { 6 "id": "test-imp-id", 7 "native": { 8 "request": "{\"context\":2,\"contextsubtype\":20,\"plcmttype\":1,\"plcmtcnt\":1,\"seq\":0,\"aurlsupport\":0,\"durlsupport\":0,\"eventtrackers\":[{\"event\":1,\"methods\":[1,2]}],\"privacy\":0,\"assets\":[{\"id\":100,\"title\":{\"len\":90},\"required\":1},{\"id\":101,\"img\":{\"type\":3,\"wmin\":200,\"hmin\":200},\"required\":1},{\"id\":102,\"img\":{\"type\":3,\"w\":200,\"h\":200},\"required\":1},{\"id\":103,\"img\":{\"type\":3,\"wmin\":200,\"hmin\":200},\"required\":1},{\"id\":105,\"data\":{\"type\":2,\"len\":90},\"required\":1}],\"ver\":\"1.2\"}", 9 "ver": "1.2" 10 }, 11 "ext": { 12 "bidder": { 13 "slotid": "u42ohmaufh", 14 "adtype": "native", 15 "publisherid": "123", 16 "signkey": "signkey", 17 "keyid": "41", 18 "isTestAuthorization": "true" 19 } 20 } 21 } 22 ], 23 "app": { 24 "bundle": "com.huawei.p11", 25 "name": "Huawei Browser", 26 "ver": "9.1.0.301" 27 }, 28 "device": { 29 "ua": "useragent", 30 "h": 1920, 31 "language": "en", 32 "model": "COL-TEST", 33 "os": "android", 34 "osv": "10.0.0", 35 "devicetype": 4, 36 "make": "huawei", 37 "w": 1080, 38 "ip": "152.193.6.74", 39 "pxratio": 23.01, 40 "geo": { 41 "country": "ARG" 42 } 43 }, 44 "user": { 45 "ext": { 46 "data": { 47 "gaid": [ 48 "gaid" 49 ], 50 "oaid": [ 51 "oaid" 52 ], 53 "clientTime": [ 54 "2018-11-02 16:34:07.981+1300" 55 ] 56 } 57 } 58 }, 59 "ext": { 60 } 61 }, 62 "httpcalls": [ 63 { 64 "expectedRequest": { 65 "uri": "https://adx-dra.op.hicloud.com/ppsadx/getResult", 66 "headers": { 67 "Accept": [ 68 "application/json" 69 ], 70 "Content-Type": [ 71 "application/json;charset=utf-8" 72 ], 73 "User-Agent": [ 74 "useragent" 75 ], 76 "Authorization": [ 77 "Digest username=123,realm=ppsadx/getResult,nonce=1629473330823,response=d1d61a13a83e1468aa4dff5c8a6cee0b8b381173ca3eb6fa9b313937684d87c0,algorithm=HmacSHA256,usertype=1,keyid=41" 78 ] 79 }, 80 "body": { 81 "app": { 82 "lang": "en", 83 "country": "AR", 84 "name": "Huawei Browser", 85 "pkgname": "com.example.pkgname2", 86 "version": "9.1.0.301" 87 }, 88 "multislot": [ 89 { 90 "adtype": 3, 91 "slotid": "u42ohmaufh", 92 "detailedCreativeTypeList": [ 93 "904" 94 ], 95 "test": 1 96 } 97 ], 98 "device": { 99 "height": 1920, 100 "language": "en", 101 "oaid": "oaid", 102 "os": "android", 103 "type": 4, 104 "ip": "152.193.6.74", 105 "localeCountry": "AR", 106 "pxratio": 23.01, 107 "model": "COL-TEST", 108 "width": 1080, 109 "clientTime": "2018-11-02 16:34:07.981+1300", 110 "gaid": "gaid", 111 "useragent": "useragent", 112 "version": "10.0.0", 113 "maker": "huawei", 114 "belongCountry": "AR" 115 }, 116 "geo": { 117 }, 118 "network": { 119 "type": 0 120 }, 121 "regs": { 122 }, 123 "version": "3.4", 124 "clientAdRequestId": "test-req-id" 125 } 126 }, 127 "mockResponse": { 128 "status": 200, 129 "body": { 130 "ctrlSwitchs": "0", 131 "multiad": [ 132 { 133 "adtype": 3, 134 "content": [ 135 { 136 "contentid": "58022259", 137 "creativetype": 106, 138 "endtime": 1621344684645, 139 "interactiontype": 1, 140 "landingTitle": 1, 141 "metaData": { 142 "adSign": "2", 143 "apkInfo": { 144 "appIcon": "https://icon.png", 145 "appName": "%E6%89%8B%E6%9C%BA%E6%B7%98%E5%AE%9D", 146 "fileSize": 118902470, 147 "packageName": "com.demo.package", 148 "permPromptForCard": "0", 149 "popNotify": 1, 150 "popUpAfterInstallNew": 1, 151 "priorInstallWay": "2", 152 "sha256": "sha256", 153 "url": "https://test/apkurl", 154 "versionCode": "284", 155 "versionName": "9.6.1.9" 156 }, 157 "appId": "101219405", 158 "appPromotionChannel": "401721412", 159 "clickUrl": "https://ads.huawei.com/usermgtportal/home/index.html#/", 160 "cta": "%e5%ae%89%e8%a3%85", 161 "duration": 6038, 162 "icon": [ 163 { 164 "checkSha256Flag": 1, 165 "fileSize": 10797, 166 "height": 160, 167 "imageType": "img", 168 "sha256": "042479eccbda9a8d7d3aa3da73c42486854407835623a30ffff875cb578242d0", 169 "url": "https://icon1.png", 170 "width": 160 171 }, 172 { 173 "checkSha256Flag": 1, 174 "fileSize": 10797, 175 "height": 320, 176 "imageType": "img", 177 "sha256": "042479eccbda9a8d7d3aa3da73c42486854407835623a30ffff875cb578242d0", 178 "url": "https://icon2.png", 179 "width": 160 180 } 181 ], 182 "imageInfo": [ 183 { 184 "checkSha256Flag": 0, 185 "height": 350, 186 "imageType": "img", 187 "sha256": "8baa56fdb2702b9fb044d95b328936160cd245764375cdb25a4ab504f4ae2e19", 188 "url": "http://image1.jpg", 189 "width": 400 190 }, 191 { 192 "checkSha256Flag": 0, 193 "height": 300, 194 "imageType": "img", 195 "sha256": "8baa56fdb2702b9fb044d95b328936160cd245764375cdb25a4ab504f4ae2e19", 196 "url": "http://image2.jpg", 197 "width": 400 198 }, 199 { 200 "checkSha256Flag": 0, 201 "height": 300, 202 "imageType": "img", 203 "sha256": "8baa56fdb2702b9fb044d95b328936160cd245764375cdb25a4ab504f4ae2e19", 204 "url": "http://image3.jpg", 205 "width": 400 206 } 207 ], 208 "label": "%E6%89%8B%E6%9C%BA%E6%B7%98%E5%AE%9D", 209 "landingPageType": "3", 210 "marketAppId": "C101219405", 211 "title": "%2Ftest%2F", 212 "description": "this is a test ad" 213 }, 214 "monitor": [ 215 { 216 "eventType": "click", 217 "url": [ 218 "http://test/click" 219 ] 220 }, 221 { 222 "eventType": "imp", 223 "url": [ 224 "http://test/imp" 225 ] 226 }, 227 { 228 "eventType": "download", 229 "url": [ 230 "http://test/download" 231 ] 232 }, 233 { 234 "eventType": "install", 235 "url": [ 236 "http://test/install" 237 ] 238 }, 239 { 240 "eventType": "downloadstart", 241 "url": [ 242 "http://test/downloadstart" 243 ] 244 }, 245 { 246 "eventType": "userclose", 247 "url": [ 248 "http://test/userclose" 249 ] 250 }, 251 { 252 "eventType": "playStart", 253 "url": [ 254 "http://test/playStart" 255 ] 256 }, 257 { 258 "eventType": "playEnd", 259 "url": [ 260 "http://test/playEnd" 261 ] 262 }, 263 { 264 "eventType": "playResume", 265 "url": [ 266 "http://test/playResume" 267 ] 268 }, 269 { 270 "eventType": "playPause", 271 "url": [ 272 "http://test/playPause" 273 ] 274 }, 275 { 276 "eventType": "appOpen", 277 "url": [ 278 "http://test/appOpen" 279 ] 280 } 281 ], 282 "paramfromserver": { 283 "a": "1||test", 284 "sig": "", 285 "t": "99990101235959" 286 }, 287 "price": 2.8, 288 "starttime": 1620230400000, 289 "taskid": "48016632" 290 } 291 ], 292 "retcode30": 200, 293 "slotid": "u42ohmaufh" 294 } 295 ], 296 "noReportAdTypeEventList": [ 297 { 298 "adType": 3, 299 "eventTypeList": [ 300 "installFail" 301 ] 302 } 303 ], 304 "retcode": 200, 305 "totalCacheSize": 300 306 } 307 } 308 } 309 ], 310 "expectedBidResponses": [ 311 { 312 "currency": "USD", 313 "bids": [ 314 { 315 "bid": { 316 "adomain": [ 317 "huaweiads" 318 ], 319 "crid": "58022259", 320 "adm": "{\"ver\":\"1.2\",\"assets\":[{\"id\":100,\"title\":{\"text\":\"/test/\",\"len\":6}},{\"id\":101,\"img\":{\"type\":3,\"url\":\"http://image1.jpg\",\"w\":400,\"h\":350}},{\"id\":102,\"img\":{\"type\":3,\"url\":\"http://image2.jpg\",\"w\":400,\"h\":300}},{\"id\":103,\"img\":{\"type\":3,\"url\":\"http://image3.jpg\",\"w\":400,\"h\":300}},{\"id\":105,\"data\":{\"label\":\"desc\",\"value\":\"this is a test ad\"}}],\"link\":{\"url\":\"https://ads.huawei.com/usermgtportal/home/index.html#/\",\"clicktrackers\":[\"http://test/click\"]},\"eventtrackers\":[{\"event\":1,\"method\":1,\"url\":\"http://test/imp\"}]}", 321 "id": "test-imp-id", 322 "impid": "test-imp-id", 323 "price": 2.8, 324 "h": 350, 325 "w": 400 326 }, 327 "type": "native" 328 } 329 ] 330 } 331 ] 332 }