github.com/prebid/prebid-server/v2@v2.18.0/adapters/huaweiads/huaweiadstest/exemplary/rewardedVideo.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": "testslotid",
    25              "adtype": "rewarded",
    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": 7,
   102                "slotid": "testslotid",
   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": 7,
   144                "content": [
   145                  {
   146                    "contentid": "58001445",
   147                    "creativetype": 106,
   148                    "endtime": 1621344684645,
   149                    "interactiontype": 1,
   150                    "landingTitle": 1,
   151                    "metaData": {
   152                      "adSign": "2",
   153                      "mediaFile": {
   154                        "mime": "video/mp4",
   155                        "width": 720,
   156                        "height": 1280,
   157                        "fileSize": 10000,
   158                        "url": "https://test.png",
   159                        "sha256": ""
   160                      },
   161                      "apkInfo": {
   162                        "appIcon": "https://appimg.dbankcdn.com/application/icon144/678727f6687b4382ade1fa4cfc77e165.png",
   163                        "appName": "%E6%89%8B%E6%9C%BA%E6%B7%98%E5%AE%9D",
   164                        "fileSize": 118902470,
   165                        "packageName": "com.demo.package",
   166                        "permPromptForCard": "0",
   167                        "popNotify": 1,
   168                        "popUpAfterInstallNew": 1,
   169                        "priorInstallWay": "2",
   170                        "sha256": "sha256",
   171                        "url": "https://test/apkurl",
   172                        "versionCode": "284",
   173                        "versionName": "9.6.1.9"
   174                      },
   175                      "appId": "101219405",
   176                      "appPromotionChannel": "401721412",
   177                      "clickUrl": "https://ads.huawei.com/usermgtportal/home/index.html#/",
   178                      "cta": "%e5%ae%89%e8%a3%85",
   179                      "duration": 6038,
   180                      "icon": [
   181                        {
   182                          "checkSha256Flag": 1,
   183                          "fileSize": 10797,
   184                          "height": 160,
   185                          "imageType": "img",
   186                          "sha256": "042479eccbda9a8d7d3aa3da73c42486854407835623a30ffff875cb578242d0",
   187                          "url": "https://appimg.dbankcdn.com/application/icon144/678727f6687b4382ade1fa4cfc77e165.png",
   188                          "width": 160
   189                        }
   190                      ],
   191                      "imageInfo": [
   192                        {
   193                          "checkSha256Flag": 0,
   194                          "height": 350,
   195                          "imageType": "img",
   196                          "sha256": "8baa56fdb2702b9fb044d95b328936160cd245764375cdb25a4ab504f4ae2e19",
   197                          "url": "http://image1.jpg",
   198                          "width": 400
   199                        },
   200                        {
   201                          "checkSha256Flag": 0,
   202                          "height": 300,
   203                          "imageType": "img",
   204                          "sha256": "8baa56fdb2702b9fb044d95b328936160cd245764375cdb25a4ab504f4ae2e19",
   205                          "url": "http://image2.jpg",
   206                          "width": 400
   207                        }
   208                      ],
   209                      "label": "%E6%89%8B%E6%9C%BA%E6%B7%98%E5%AE%9D",
   210                      "landingPageType": "3",
   211                      "marketAppId": "C101219405",
   212                      "title": "%2Ftest%2F",
   213                      "description": "this is a test ad",
   214                      "videoInfo": {
   215                        "autoPlayAreaRatio": 100,
   216                        "autoStopPlayAreaRatio": 10,
   217                        "checkSha256Flag": 1,
   218                        "sha256": "aa08c8ffce82bbcd37cabefd6c8972b407de48f0b4e332e06d4cc18d25377d77",
   219                        "timeBeforeVideoAutoPlay": 50,
   220                        "videoAutoPlayOnWifi": "y",
   221                        "videoAutoPlayWithSound": "n",
   222                        "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",
   223                        "videoDuration": 6038,
   224                        "videoFileSize": 949951,
   225                        "videoPlayMode": 2,
   226                        "videoRatio": 0.5625,
   227                        "width": 600,
   228                        "height": 500
   229                      }
   230                    },
   231                    "monitor": [
   232                      {
   233                        "eventType": "vastError",
   234                        "url": [
   235                          "http://test/vastError"
   236                        ]
   237                      },
   238                      {
   239                        "eventType": "click",
   240                        "url": [
   241                          "http://test/click",
   242                          "http://test/dspclick"
   243                        ]
   244                      },
   245                      {
   246                        "eventType": "imp",
   247                        "url": [
   248                          "http://test/imp",
   249                          "http://test/dspimp"
   250                        ]
   251                      },
   252                      {
   253                        "eventType": "userclose",
   254                        "url": [
   255                          "http://test/userclose"
   256                        ]
   257                      },
   258                      {
   259                        "eventType": "playStart",
   260                        "url": [
   261                          "http://test/playStart"
   262                        ]
   263                      },
   264                      {
   265                        "eventType": "playEnd",
   266                        "url": [
   267                          "http://test/playEnd1"
   268                        ]
   269                      },
   270                      {
   271                        "eventType": "playResume",
   272                        "url": [
   273                          "http://test/playResume"
   274                        ]
   275                      },
   276                      {
   277                        "eventType": "playPause",
   278                        "url": [
   279                          "http://test/playPause"
   280                        ]
   281                      },
   282                      {
   283                        "eventType": "appOpen",
   284                        "url": [
   285                          "http://test/appOpen"
   286                        ]
   287                      }
   288                    ],
   289                    "price": 2.8,
   290                    "starttime": 1620230400000,
   291                    "taskid": "48016632"
   292                  }
   293                ],
   294                "retcode30": 200,
   295                "slotid": "testslotid"
   296              }
   297            ],
   298            "retcode": 200
   299          }
   300        }
   301      }
   302    ],
   303    "expectedBidResponses": [
   304      {
   305        "currency": "USD",
   306        "bids": [
   307          {
   308            "bid": {
   309              "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=\"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://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]]></MediaFile></MediaFiles></Linear></Creative><Creative adId=\"58001445\" id=\"58001445\"><CompanionAds><Companion width=\"160\" height=\"160\"><StaticResource creativeType=\"image/png\"><![CDATA[https://appimg.dbankcdn.com/application/icon144/678727f6687b4382ade1fa4cfc77e165.png]]></StaticResource><CompanionClickThrough><![CDATA[https://ads.huawei.com/usermgtportal/home/index.html#/]]></CompanionClickThrough></Companion></CompanionAds></Creative></Creatives></InLine></Ad></VAST>",
   310              "adomain": [
   311                "huaweiads"
   312              ],
   313              "h": 500,
   314              "w": 600,
   315              "crid": "58001445",
   316              "id": "test-imp-id",
   317              "impid": "test-imp-id",
   318              "price": 2.8
   319            },
   320            "type": "video"
   321          }
   322        ]
   323      }
   324    ]
   325  }