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