github.com/prebid/prebid-server/v2@v2.18.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\":1080,\"hmin\":607},\"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":["903","901","904","905"], 96 "format":[{"w":225,"h":150},{"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}], 97 "test": 1 98 } 99 ], 100 "device": { 101 "height": 1920, 102 "language": "zh", 103 "oaid": "oaid", 104 "os": "android", 105 "type": 4, 106 "ip": "152.193.6.74", 107 "localeCountry": "ZA", 108 "pxratio": 23.01, 109 "model": "COL-TEST", 110 "width": 1080, 111 "clientTime": "2018-11-02 16:34:07.981+1300", 112 "gaid": "gaid", 113 "useragent": "useragent", 114 "version": "10.0.0", 115 "maker": "huawei", 116 "belongCountry": "ZA" 117 }, 118 "geo": { 119 }, 120 "network": { 121 "type": 0 122 }, 123 "regs": { 124 }, 125 "version": "3.4", 126 "clientAdRequestId": "test-req-id" 127 }, 128 "impIDs":["test-imp-id"] 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": 607, 180 "imageType": "img", 181 "sha256": "8baa56fdb2702b9fb044d95b328936160cd245764375cdb25a4ab504f4ae2e19", 182 "url": "http://image1.jpg", 183 "width": 1080 184 } 185 ], 186 "label": "%E6%89%8B%E6%9C%BA%E6%B7%98%E5%AE%9D", 187 "landingPageType": "3", 188 "marketAppId": "C101219405", 189 "title": "%2Ftest%2F", 190 "description": "this is a test ad", 191 "videoInfo": { 192 "autoPlayAreaRatio": 100, 193 "autoStopPlayAreaRatio": 10, 194 "checkSha256Flag": 1, 195 "sha256": "aa08c8ffce82bbcd37cabefd6c8972b407de48f0b4e332e06d4cc18d25377d77", 196 "timeBeforeVideoAutoPlay": 50, 197 "videoAutoPlayOnWifi": "y", 198 "videoAutoPlayWithSound": "n", 199 "videoDownloadUrl": "https://video.mp4", 200 "videoDuration": 6038, 201 "videoFileSize": 949951, 202 "videoPlayMode": 2, 203 "videoRatio": 0.5625, 204 "width": 600, 205 "height": 500 206 } 207 }, 208 "monitor": [ 209 { 210 "eventType": "vastError", 211 "url": [ 212 "http://test/vastError" 213 ] 214 }, 215 { 216 "eventType": "click", 217 "url": [ 218 "http://test/click", 219 "http://test/dspclick" 220 ] 221 }, 222 { 223 "eventType": "imp", 224 "url": [ 225 "http://test/imp", 226 "http://test/dspimp" 227 ] 228 }, 229 { 230 "eventType": "userclose", 231 "url": [ 232 "http://test/userclose" 233 ] 234 }, 235 { 236 "eventType": "playStart", 237 "url": [ 238 "http://test/playStart" 239 ] 240 }, 241 { 242 "eventType": "playEnd", 243 "url": [ 244 "http://test/playEnd1", 245 "http://test/playEnd2" 246 ] 247 }, 248 { 249 "eventType": "playResume", 250 "url": [ 251 "http://test/playResume" 252 ] 253 }, 254 { 255 "eventType": "playPause", 256 "url": [ 257 "http://test/playPause" 258 ] 259 }, 260 { 261 "eventType": "appOpen", 262 "url": [ 263 "http://test/appOpen" 264 ] 265 } 266 ], 267 "paramfromserver": { 268 "a": "1||test", 269 "sig": "", 270 "t": "99990101235959" 271 }, 272 "price": 2.8, 273 "starttime": 1620230400000, 274 "taskid": "48016632" 275 } 276 ], 277 "retcode30": 200, 278 "slotid": "u42ohmaufh" 279 } 280 ], 281 "noReportAdTypeEventList": [ 282 { 283 "adType": 3, 284 "eventTypeList": [ 285 "installFail" 286 ] 287 } 288 ], 289 "retcode": 200, 290 "totalCacheSize": 300 291 } 292 } 293 } 294 ], 295 "expectedBidResponses": [ 296 { 297 "currency": "USD", 298 "bids": [ 299 { 300 "bid": { 301 "adomain": [ 302 "huaweiads" 303 ], 304 "crid": "58022259", 305 "adm": "{\"ver\":\"1.2\",\"assets\":[{\"id\":100,\"title\":{\"text\":\"/test/\",\"len\":6}},{\"id\":101,\"img\":{\"type\":3,\"url\":\"http://image1.jpg\",\"w\":1080,\"h\":607}},{\"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\"}]}", 306 "id": "test-imp-id", 307 "impid": "test-imp-id", 308 "price": 2.8, 309 "h": 500, 310 "w": 600 311 }, 312 "type": "native" 313 } 314 ] 315 } 316 ] 317 }