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