github.com/prebid/prebid-server@v0.275.0/adapters/huaweiads/huaweiadstest/exemplary/rollVideo.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 "maxduration": 10 22 }, 23 "ext": { 24 "bidder": { 25 "slotid": "testslotid", 26 "adtype": "roll", 27 "publisherid": "123123123", 28 "signkey": "signkey", 29 "keyid": "41", 30 "isTestAuthorization": "true" 31 } 32 } 33 } 34 ], 35 "app": { 36 "bundle": "com.wavehk.android", 37 "name": "Huawei Browser", 38 "ver": "9.1.0.301" 39 }, 40 "device": { 41 "ua": "useragent", 42 "h": 1920, 43 "language": "en", 44 "model": "COL-TEST", 45 "os": "android", 46 "osv": "10.0.0", 47 "devicetype": 4, 48 "make": "huawei", 49 "w": 1080, 50 "ip": "ip", 51 "pxratio": 23.01, 52 "geo": { 53 "country": "ATA" 54 } 55 }, 56 "user": { 57 "ext": { 58 "data": { 59 "gaid": [ 60 "gaid" 61 ], 62 "oaid": [ 63 "oaid" 64 ], 65 "clientTime": [ 66 "2018-08-10 20:01:11.214+0200" 67 ] 68 } 69 } 70 }, 71 "ext": { 72 } 73 }, 74 "httpcalls": [ 75 { 76 "expectedRequest": { 77 "uri": "https://adx-dre.op.hicloud.com/ppsadx/getResult", 78 "headers": { 79 "Accept": [ 80 "application/json" 81 ], 82 "Content-Type": [ 83 "application/json;charset=utf-8" 84 ], 85 "User-Agent": [ 86 "useragent" 87 ], 88 "Authorization": [ 89 "Digest username=123123123,realm=ppsadx/getResult,nonce=1629473330823,response=6fdc975d3adac426cbe607eec736f40ad3db8413312457431e391580e1b475c4,algorithm=HmacSHA256,usertype=1,keyid=41" 90 ] 91 }, 92 "body": { 93 "app": { 94 "lang": "en", 95 "country": "AT", 96 "name": "Huawei Browser", 97 "pkgname": "com.wavehk.android", 98 "version": "9.1.0.301" 99 }, 100 "multislot": [ 101 { 102 "adtype": 60, 103 "slotid": "testslotid", 104 "totalDuration": 10, 105 "test": 1, 106 "w": 300, 107 "h": 250 108 } 109 ], 110 "device": { 111 "height": 1920, 112 "language": "en", 113 "oaid": "oaid", 114 "os": "android", 115 "type": 4, 116 "ip": "ip", 117 "localeCountry": "AT", 118 "pxratio": 23.01, 119 "width": 1080, 120 "model": "COL-TEST", 121 "clientTime": "2018-08-10 20:01:11.214+0200", 122 "gaid": "gaid", 123 "useragent": "useragent", 124 "version": "10.0.0", 125 "maker": "huawei", 126 "belongCountry": "AT" 127 }, 128 "geo": { 129 }, 130 "network": { 131 "type": 0 132 }, 133 "regs": { 134 }, 135 "version": "3.4", 136 "clientAdRequestId": "test-req-id" 137 } 138 }, 139 "mockResponse": { 140 "status": 200, 141 "body": { 142 "multiad": [ 143 { 144 "adtype": 60, 145 "content": [ 146 { 147 "contentid": "58001445", 148 "creativetype": 106, 149 "endtime": 1621344684645, 150 "interactiontype": 3, 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 "intent": "https%3A%2F%2Fhibobi.app.link%2FK1sog7A40hb", 179 "clickUrl": "https://ads.huawei.com/usermgtportal/home/index.html#/", 180 "cta": "%e5%ae%89%e8%a3%85", 181 "duration": 6038, 182 "icon": [ 183 { 184 "checkSha256Flag": 1, 185 "fileSize": 10797, 186 "height": 160, 187 "imageType": "img", 188 "sha256": "042479eccbda9a8d7d3aa3da73c42486854407835623a30ffff875cb578242d0", 189 "url": "https://pps-icon.png", 190 "width": 160 191 } 192 ], 193 "imageInfo": [ 194 { 195 "checkSha256Flag": 0, 196 "height": 350, 197 "imageType": "img", 198 "sha256": "8baa56fdb2702b9fb044d95b328936160cd245764375cdb25a4ab504f4ae2e19", 199 "url": "http://image1.jpg", 200 "width": 400 201 }, 202 { 203 "checkSha256Flag": 0, 204 "height": 300, 205 "imageType": "img", 206 "sha256": "8baa56fdb2702b9fb044d95b328936160cd245764375cdb25a4ab504f4ae2e19", 207 "url": "http://image2.jpg", 208 "width": 400 209 } 210 ], 211 "label": "%E6%89%8B%E6%9C%BA%E6%B7%98%E5%AE%9D", 212 "landingPageType": "3", 213 "marketAppId": "C101219405", 214 "title": "%2Ftest%2F", 215 "description": "this is a test ad", 216 "videoInfo": { 217 "autoPlayAreaRatio": 100, 218 "autoStopPlayAreaRatio": 10, 219 "checkSha256Flag": 1, 220 "sha256": "aa08c8ffce82bbcd37cabefd6c8972b407de48f0b4e332e06d4cc18d25377d77", 221 "timeBeforeVideoAutoPlay": 50, 222 "videoAutoPlayOnWifi": "y", 223 "videoAutoPlayWithSound": "n", 224 "videoDownloadUrl": "https://consumer.huawei.com/content/dam/huawei-cbg-site/ecommerce/ae/2022/may/watch-gt-3-pro/subscribe-phase/video/update/MKT_Odin_Frigga_PV_EN_30s%20Horizontal%20SHM.mp4", 225 "videoDuration": 6038, 226 "videoFileSize": 949951, 227 "videoPlayMode": 2, 228 "videoRatio": 0.5625, 229 "width": 600, 230 "height": 500 231 } 232 }, 233 "monitor": [ 234 { 235 "eventType": "vastError", 236 "url": [ 237 "http://test/vastError" 238 ] 239 }, 240 { 241 "eventType": "click", 242 "url": [ 243 "http://test/click", 244 "http://test/dspclick" 245 ] 246 }, 247 { 248 "eventType": "imp", 249 "url": [ 250 "http://test/imp", 251 "http://test/dspimp" 252 ] 253 }, 254 { 255 "eventType": "userclose", 256 "url": [ 257 "http://test/userclose" 258 ] 259 }, 260 { 261 "eventType": "playStart", 262 "url": [ 263 "http://test/playStart" 264 ] 265 }, 266 { 267 "eventType": "playEnd", 268 "url": [ 269 "http://test/playEnd1", 270 "http://test/playEnd2" 271 ] 272 }, 273 { 274 "eventType": "playResume", 275 "url": [ 276 "http://test/playResume" 277 ] 278 }, 279 { 280 "eventType": "playPause", 281 "url": [ 282 "http://test/playPause" 283 ] 284 }, 285 { 286 "eventType": "appOpen", 287 "url": [ 288 "http://test/appOpen" 289 ] 290 } 291 ], 292 "price": 2.8, 293 "starttime": 1620230400000, 294 "taskid": "48016632" 295 } 296 ], 297 "retcode30": 200, 298 "slotid": "testslotid" 299 } 300 ], 301 "retcode": 200, 302 "totalCacheSize": 300 303 } 304 } 305 } 306 ], 307 "expectedBidResponses": [ 308 { 309 "currency": "USD", 310 "bids": [ 311 { 312 "bid": { 313 "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://hibobi.app.link/K1sog7A40hb]]></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>", 314 "adomain": [ 315 "huaweiads" 316 ], 317 "h": 1280, 318 "w": 720, 319 "crid": "58001445", 320 "id": "test-imp-id", 321 "impid": "test-imp-id", 322 "price": 2.8 323 }, 324 "type": "video" 325 } 326 ] 327 } 328 ] 329 }