github.com/prebid/prebid-server/v2@v2.18.0/adapters/huaweiads/huaweiadstest/exemplary/nativeMultiSizesByRatio.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,\"w\":225,\"wmin\":225,\"h\":150,\"hmin\":150},\"required\":1},{\"id\":103,\"data\":{\"type\":2,\"len\":90},\"required\":1},{\"id\":104,\"data\":{\"type\":12,\"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.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":225,"h":150},{"w":1080,"h":607},{"w":300,"h":250},{"w":1280,"h":720},{"w":640,"h":360}], 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 "imageInfo": [ 175 { 176 "checkSha256Flag": 0, 177 "height": 607, 178 "imageType": "img", 179 "sha256": "8baa56fdb2702b9fb044d95b328936160cd245764375cdb25a4ab504f4ae2e19", 180 "url": "http://image.jpg", 181 "width": 1080 182 } 183 ], 184 "label": "%E6%89%8B%E6%9C%BA%E6%B7%98%E5%AE%9D", 185 "landingPageType": "3", 186 "marketAppId": "C101219405", 187 "title": "%2Ftest%2F" 188 }, 189 "monitor": [ 190 { 191 "eventType": "click", 192 "url": [ 193 "http://test/click" 194 ] 195 }, 196 { 197 "eventType": "imp", 198 "url": [ 199 "http://test/imp" 200 ] 201 }, 202 { 203 "eventType": "download", 204 "url": [ 205 "http://test/download" 206 ] 207 }, 208 { 209 "eventType": "install", 210 "url": [ 211 "http://test/install" 212 ] 213 }, 214 { 215 "eventType": "downloadstart", 216 "url": [ 217 "http://test/downloadstart" 218 ] 219 }, 220 { 221 "eventType": "userclose", 222 "url": [ 223 "http://test/userclose" 224 ] 225 }, 226 { 227 "eventType": "playStart", 228 "url": [ 229 "http://test/playStart" 230 ] 231 }, 232 { 233 "eventType": "playEnd", 234 "url": [ 235 "http://test/playEnd" 236 ] 237 }, 238 { 239 "eventType": "playResume", 240 "url": [ 241 "http://test/playResume" 242 ] 243 }, 244 { 245 "eventType": "playPause", 246 "url": [ 247 "http://test/playPause" 248 ] 249 }, 250 { 251 "eventType": "appOpen", 252 "url": [ 253 "http://test/appOpen" 254 ] 255 } 256 ], 257 "paramfromserver": { 258 "a": "1||test", 259 "sig": "", 260 "t": "99990101235959" 261 }, 262 "price": 2.8, 263 "starttime": 1620230400000, 264 "taskid": "48016632" 265 } 266 ], 267 "retcode30": 200, 268 "slotid": "u42ohmaufh" 269 } 270 ], 271 "noReportAdTypeEventList": [ 272 { 273 "adType": 3, 274 "eventTypeList": [ 275 "installFail" 276 ] 277 } 278 ], 279 "retcode": 200, 280 "totalCacheSize": 300 281 } 282 } 283 } 284 ], 285 "expectedBidResponses": [ 286 { 287 "currency": "USD", 288 "bids": [ 289 { 290 "bid": { 291 "adomain": [ 292 "huaweiads" 293 ], 294 "crid": "58022259", 295 "adm": "{\"ver\":\"1.2\",\"assets\":[{\"id\":101,\"title\":{\"text\":\"/test/\",\"len\":6}},{\"id\":102,\"img\":{\"type\":3,\"url\":\"http://image.jpg\",\"w\":1080,\"h\":607}},{\"id\":103,\"data\":{\"label\":\"desc\",\"value\":\"\"}},{\"id\":104,\"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\"}]}", 296 "id": "test-imp-id", 297 "impid": "test-imp-id", 298 "price": 2.8, 299 "h": 607, 300 "w": 1080 301 }, 302 "type": "native" 303 } 304 ] 305 } 306 ] 307 }