github.com/prebid/prebid-server/v2@v2.18.0/adapters/huaweiads/huaweiadstest/exemplary/video.json (about) 1 { 2 "mockBidRequest": { 3 "id": "test-req-id", 4 "imp": [ 5 { 6 "id": "test-imp-id", 7 "video": { 8 "mimes": [ 9 "video\/mp4" 10 ], 11 "playbackmethod": [ 12 2 13 ], 14 "protocols": [ 15 2 16 ], 17 "w": 300, 18 "h": 250, 19 "placement": 2, 20 "linearity": 1 21 }, 22 "ext": { 23 "bidder": { 24 "slotid": "m8x9x3roll", 25 "adtype": "interstitial", 26 "publisherid": "123123123", 27 "signkey": "signkey", 28 "keyid": "41", 29 "isTestAuthorization": "true" 30 } 31 } 32 } 33 ], 34 "app": { 35 "bundle": "com.wavehk.android", 36 "name": "Huawei Browser", 37 "ver": "9.1.0.301" 38 }, 39 "device": { 40 "ua": "useragent", 41 "h": 1920, 42 "language": "en", 43 "model": "COL-TEST", 44 "os": "android", 45 "osv": "10.0.0", 46 "devicetype": 4, 47 "make": "huawei", 48 "w": 1080, 49 "ip": "ip", 50 "pxratio": 23.01, 51 "geo": { 52 "country": "ATA" 53 } 54 }, 55 "user": { 56 "ext": { 57 "data": { 58 "gaid": [ 59 "gaid" 60 ], 61 "oaid": [ 62 "oaid" 63 ], 64 "clientTime": [ 65 "2018-08-10 20:01:11.214+0200" 66 ] 67 } 68 } 69 }, 70 "ext": { 71 } 72 }, 73 "httpcalls": [ 74 { 75 "expectedRequest": { 76 "uri": "https://adx-dre.op.hicloud.com/ppsadx/getResult", 77 "headers": { 78 "Accept": [ 79 "application/json" 80 ], 81 "Content-Type": [ 82 "application/json;charset=utf-8" 83 ], 84 "User-Agent": [ 85 "useragent" 86 ], 87 "Authorization": [ 88 "Digest username=123123123,realm=ppsadx/getResult,nonce=1629473330823,response=6fdc975d3adac426cbe607eec736f40ad3db8413312457431e391580e1b475c4,algorithm=HmacSHA256,usertype=1,keyid=41" 89 ] 90 }, 91 "body": { 92 "app": { 93 "lang": "en", 94 "country": "AT", 95 "name": "Huawei Browser", 96 "pkgname": "com.wavehk.android", 97 "version": "9.1.0.301" 98 }, 99 "multislot": [ 100 { 101 "adtype": 12, 102 "slotid": "m8x9x3roll", 103 "test": 1, 104 "w": 300, 105 "h": 250 106 } 107 ], 108 "device": { 109 "height": 1920, 110 "language": "en", 111 "oaid": "oaid", 112 "os": "android", 113 "type": 4, 114 "ip": "ip", 115 "localeCountry": "AT", 116 "pxratio": 23.01, 117 "width": 1080, 118 "model": "COL-TEST", 119 "clientTime": "2018-08-10 20:01:11.214+0200", 120 "gaid": "gaid", 121 "useragent": "useragent", 122 "version": "10.0.0", 123 "maker": "huawei", 124 "belongCountry": "AT" 125 }, 126 "geo": { 127 }, 128 "network": { 129 "type": 0 130 }, 131 "regs": { 132 }, 133 "version": "3.4", 134 "clientAdRequestId": "test-req-id" 135 }, 136 "impIDs":["test-imp-id"] 137 }, 138 "mockResponse": { 139 "status": 200, 140 "body": { 141 "multiad": [ 142 { 143 "adtype": 60, 144 "brsetting": "Y", 145 "content": [ 146 { 147 "contentid": "58001445", 148 "creativetype": 106, 149 "endtime": 1621344684645, 150 "interactiontype": 1, 151 "landingTitle": 1, 152 "metaData": { 153 "adSign": "2", 154 "mediaFile": { 155 "mime": "video/mp4", 156 "width": 720, 157 "height": 1280, 158 "fileSize": 10000, 159 "url": "https://test.png", 160 "sha256": "" 161 }, 162 "apkInfo": { 163 "appIcon": "https://pps-icon.png", 164 "appName": "%E6%89%8B%E6%9C%BA%E6%B7%98%E5%AE%9D", 165 "fileSize": 118902470, 166 "packageName": "com.demo.package", 167 "permPromptForCard": "0", 168 "popNotify": 1, 169 "popUpAfterInstallNew": 1, 170 "priorInstallWay": "2", 171 "sha256": "sha256", 172 "url": "https://test/apkurl", 173 "versionCode": "284", 174 "versionName": "9.6.1.9" 175 }, 176 "appId": "101219405", 177 "appPromotionChannel": "401721412", 178 "clickUrl": "https://ads.huawei.com/usermgtportal/home/index.html#/", 179 "cta": "%e5%ae%89%e8%a3%85", 180 "duration": 6038, 181 "icon": [ 182 { 183 "checkSha256Flag": 1, 184 "fileSize": 10797, 185 "height": 160, 186 "imageType": "img", 187 "sha256": "042479eccbda9a8d7d3aa3da73c42486854407835623a30ffff875cb578242d0", 188 "url": "https://pps-icon.png", 189 "width": 160 190 } 191 ], 192 "imageInfo": [ 193 { 194 "checkSha256Flag": 0, 195 "height": 350, 196 "imageType": "img", 197 "sha256": "8baa56fdb2702b9fb044d95b328936160cd245764375cdb25a4ab504f4ae2e19", 198 "url": "http://image1.jpg", 199 "width": 400 200 }, 201 { 202 "checkSha256Flag": 0, 203 "height": 300, 204 "imageType": "img", 205 "sha256": "8baa56fdb2702b9fb044d95b328936160cd245764375cdb25a4ab504f4ae2e19", 206 "url": "http://image2.jpg", 207 "width": 400 208 } 209 ], 210 "label": "%E6%89%8B%E6%9C%BA%E6%B7%98%E5%AE%9D", 211 "landingPageType": "3", 212 "marketAppId": "C101219405", 213 "title": "%2Ftest%2F", 214 "description": "this is a test ad", 215 "videoInfo": { 216 "autoPlayAreaRatio": 100, 217 "autoStopPlayAreaRatio": 10, 218 "checkSha256Flag": 1, 219 "sha256": "aa08c8ffce82bbcd37cabefd6c8972b407de48f0b4e332e06d4cc18d25377d77", 220 "timeBeforeVideoAutoPlay": 50, 221 "videoAutoPlayOnWifi": "y", 222 "videoAutoPlayWithSound": "n", 223 "videoDownloadUrl": "https://video.mp4", 224 "videoDuration": 6038, 225 "videoFileSize": 949951, 226 "videoPlayMode": 2, 227 "videoRatio": 0.5625, 228 "width": 600, 229 "height": 500 230 } 231 }, 232 "monitor": [ 233 { 234 "eventType": "vastError", 235 "url": [ 236 "http://test/vastError" 237 ] 238 }, 239 { 240 "eventType": "click", 241 "url": [ 242 "http://test/click", 243 "http://test/dspclick" 244 ] 245 }, 246 { 247 "eventType": "imp", 248 "url": [ 249 "http://test/imp", 250 "http://test/dspimp" 251 ] 252 }, 253 { 254 "eventType": "userclose", 255 "url": [ 256 "http://test/userclose" 257 ] 258 }, 259 { 260 "eventType": "playStart", 261 "url": [ 262 "http://test/playStart" 263 ] 264 }, 265 { 266 "eventType": "playEnd", 267 "url": [ 268 "http://test/playEnd1", 269 "http://test/playEnd2" 270 ] 271 }, 272 { 273 "eventType": "playResume", 274 "url": [ 275 "http://test/playResume" 276 ] 277 }, 278 { 279 "eventType": "playPause", 280 "url": [ 281 "http://test/playPause" 282 ] 283 }, 284 { 285 "eventType": "appOpen", 286 "url": [ 287 "http://test/appOpen" 288 ] 289 } 290 ], 291 "paramfromserver": { 292 "a": "1||test", 293 "sig": "", 294 "t": "99990101235959" 295 }, 296 "price": 2.8, 297 "starttime": 1620230400000, 298 "taskid": "48016632" 299 } 300 ], 301 "retcode30": 200, 302 "slotid": "m8x9x3roll" 303 } 304 ], 305 "noReportAdTypeEventList": [ 306 { 307 "adType": 8, 308 "eventTypeList": [ 309 "exception_6" 310 ] 311 } 312 ], 313 "retcode": 200, 314 "totalCacheSize": 300 315 } 316 } 317 } 318 ], 319 "expectedBidResponses": [ 320 { 321 "currency": "USD", 322 "bids": [ 323 { 324 "bid": { 325 "adm": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><VAST version=\"3.0\"><Ad id=\"58001445\"><InLine><AdSystem>HuaweiAds</AdSystem><AdTitle>/test/</AdTitle><Error><![CDATA[http://test/vastError&et=[ERRORCODE]]]></Error><Impression><![CDATA[http://test/imp]]></Impression><Impression><![CDATA[http://test/dspimp]]></Impression><Creatives><Creative adId=\"58001445\" id=\"58001445\"><Linear><Duration>00:00:06.038</Duration><TrackingEvents><Tracking event=\"skip\"><![CDATA[http://test/userclose]]></Tracking><Tracking event=\"closeLinear\"><![CDATA[http://test/userclose]]></Tracking><Tracking event=\"start\"><![CDATA[http://test/playStart]]></Tracking><Tracking event=\"complete\"><![CDATA[http://test/playEnd1]]></Tracking><Tracking event=\"complete\"><![CDATA[http://test/playEnd2]]></Tracking><Tracking event=\"resume\"><![CDATA[http://test/playResume]]></Tracking><Tracking event=\"pause\"><![CDATA[http://test/playPause]]></Tracking></TrackingEvents><VideoClicks><ClickThrough><![CDATA[https://ads.huawei.com/usermgtportal/home/index.html#/]]></ClickThrough><ClickTracking><![CDATA[http://test/click]]></ClickTracking><ClickTracking><![CDATA[http://test/dspclick]]></ClickTracking></VideoClicks><MediaFiles><MediaFile delivery=\"progressive\" type=\"video/mp4\" width=\"720\" height=\"1280\" scalable=\"true\" maintainAspectRatio=\"true\"> <![CDATA[https://test.png]]></MediaFile></MediaFiles></Linear></Creative></Creatives></InLine></Ad></VAST>", 326 "adomain": [ 327 "huaweiads" 328 ], 329 "h": 1280, 330 "w": 720, 331 "crid": "58001445", 332 "id": "test-imp-id", 333 "impid": "test-imp-id", 334 "price": 2.8 335 }, 336 "type": "video" 337 } 338 ] 339 } 340 ] 341 }