github.com/prebid/prebid-server@v0.275.0/adapters/huaweiads/huaweiadstest/exemplary/banner1_without_userext.json (about)

     1  {
     2    "mockBidRequest": {
     3      "id": "test-req-id",
     4      "imp": [
     5        {
     6          "id": "test-imp-id",
     7          "banner": {
     8            "format": [
     9              {
    10                "w": 300,
    11                "h": 250
    12              }
    13            ],
    14            "w": 300,
    15            "h": 250
    16          },
    17          "ext": {
    18            "bidder": {
    19              "slotid": "m8x9x3rzff",
    20              "adtype": "banner",
    21              "publisherid": "123 ",
    22              "signkey": "signkey ",
    23              "keyid": "41",
    24              "isTestAuthorization": "true"
    25            }
    26          }
    27        }
    28      ],
    29      "app": {
    30        "bundle": "com.example.p1",
    31        "name": "Huawei Browser",
    32        "ver": "9.1.0.301",
    33        "content": {
    34          "language": "zh"
    35        }
    36      },
    37      "device": {
    38        "ua": "useragent",
    39        "h": 1920,
    40        "language": "zh",
    41        "model": "COL-TEST",
    42        "os": "android",
    43        "osv": "10.0.0",
    44        "devicetype": 4,
    45        "make": "huawei",
    46        "w": 1080,
    47        "ip": "ip",
    48        "ifa": "e4fe9bde-caa0-47b6-908d-ffba3fa184f2",
    49        "pxratio": 23.01,
    50        "mccmnc": "460",
    51        "geo": {
    52          "country": "CHN"
    53        }
    54      },
    55      "user": {
    56        "ext": {
    57          "data": {
    58            "clientTime": [
    59              "2018-11-02 16:34:07.981+1300"
    60            ]
    61          },
    62          "consent": "CPaYLJBPaYLJBIPAAAENCSCgAPAAAAAAAAAAGsQAQGsAAAAA.YAAAAAAAAAA"
    63        }
    64      },
    65      "regs": {
    66        "coppa": 1
    67      },
    68      "ext": {
    69      }
    70    },
    71    "httpcalls": [
    72      {
    73        "expectedRequest": {
    74          "uri": "https://acd.op.hicloud.com/ppsadx/getResult",
    75          "headers": {
    76            "Accept": [
    77              "application/json"
    78            ],
    79            "Content-Type": [
    80              "application/json;charset=utf-8"
    81            ],
    82            "User-Agent": [
    83              "useragent"
    84            ],
    85            "Authorization": [
    86              "Digest username=123,realm=ppsadx/getResult,nonce=1629473330823,response=d1d61a13a83e1468aa4dff5c8a6cee0b8b381173ca3eb6fa9b313937684d87c0,algorithm=HmacSHA256,usertype=1,keyid=41"
    87            ]
    88          },
    89          "body": {
    90            "app": {
    91              "lang": "zh",
    92              "country": "CN",
    93              "name": "Huawei Browser",
    94              "pkgname": "com.example.pkgname1",
    95              "version": "9.1.0.301"
    96            },
    97            "multislot": [
    98              {
    99                "adtype": 8,
   100                "slotid": "m8x9x3rzff",
   101                "test": 1,
   102                "format": [
   103                  {
   104                    "w": 300,
   105                    "h": 250
   106                  }
   107                ],
   108                "w": 300,
   109                "h": 250
   110              }
   111            ],
   112            "device": {
   113              "height": 1920,
   114              "language": "zh",
   115              "os": "android",
   116              "type": 4,
   117              "ip": "ip",
   118              "localeCountry": "CN",
   119              "pxratio": 23.01,
   120              "width": 1080,
   121              "clientTime": "2018-11-02 16:34:07.981+1300",
   122              "gaid": "e4fe9bde-caa0-47b6-908d-ffba3fa184f2",
   123              "useragent": "useragent",
   124              "version": "10.0.0",
   125              "maker": "huawei",
   126              "model": "COL-TEST",
   127              "belongCountry": "CN"
   128            },
   129            "geo": {
   130            },
   131            "network": {
   132              "type": 0
   133            },
   134            "regs": {
   135              "coppa": 1
   136            },
   137            "consent": "CPaYLJBPaYLJBIPAAAENCSCgAPAAAAAAAAAAGsQAQGsAAAAA.YAAAAAAAAAA",
   138            "version": "3.4",
   139            "clientAdRequestId": "test-req-id"
   140          }
   141        },
   142        "mockResponse": {
   143          "status": 200,
   144          "body": {
   145            "ctrlSwitchs": "0",
   146            "dsp1cost": 61,
   147            "dspcost": 108,
   148            "multiad": [
   149              {
   150                "adtype": 8,
   151                "brsetting": "Y",
   152                "content": [
   153                  {
   154                    "clickActionList": [
   155                      1
   156                    ],
   157                    "contentid": "58025103",
   158                    "creativetype": 2,
   159                    "ctrlSwitchs": "001011001001010112",
   160                    "endtime": 1621428898335,
   161                    "filterList": [
   162                      3
   163                    ],
   164                    "interactiontype": 1,
   165                    "landingTitle": 1,
   166                    "metaData": {
   167                      "adSign": "2",
   168                      "appPromotionChannel": "401721412",
   169                      "clickUrl": "https://ads.huawei.com/usermgtportal/home/index.html#/",
   170                      "imageInfo": [
   171                        {
   172                          "checkSha256Flag": 1,
   173                          "height": 300,
   174                          "imageType": "img",
   175                          "sha256": "f5d8487cddaecec45b73fc078649478c80ec646bfec8ed7da4ff931f90eab232",
   176                          "url": "https://ads.huawei.com/usermgtportal/home/img/huawei_logo_black.aaec817d.svg",
   177                          "width": 250
   178                        }
   179                      ],
   180                      "label": "Banner_API",
   181                      "landingPageType": "3"
   182                    },
   183                    "monitor": [
   184                      {
   185                        "eventType": "click",
   186                        "url": [
   187                          "http://test/click1",
   188                          "http://test/click2",
   189                          "http://test/click3"
   190                        ]
   191                      },
   192                      {
   193                        "eventType": "imp",
   194                        "url": [
   195                          "http://test/imp1",
   196                          "http://test/imp2",
   197                          "http://test/imp3"
   198                        ]
   199                      }
   200                    ],
   201                    "paramfromserver": {
   202                      "a": "1||test",
   203                      "sig": "",
   204                      "t": "99990101235959"
   205                    },
   206                    "price": 2.8,
   207                    "starttime": 1621267200000,
   208                    "taskid": "48017658"
   209                  }
   210                ],
   211                "retcode30": 200,
   212                "slotid": "m8x9x3rzff"
   213              }
   214            ],
   215            "noReportAdTypeEventList": [
   216              {
   217                "adType": 8,
   218                "eventTypeList": [
   219                  "exception_6"
   220                ]
   221              }
   222            ],
   223            "retcode": 200,
   224            "totalCacheSize": 300
   225          }
   226        }
   227      }
   228    ],
   229    "expectedBidResponses": [
   230      {
   231        "currency": "USD",
   232        "bids": [
   233          {
   234            "bid": {
   235              "adm": "<style> html, body  { margin: 0; padding: 0; width: 100%; height: 100%; vertical-align: middle; }  html  { display: table; }  body { display: table-cell; vertical-align: middle; text-align: center; -webkit-text-size-adjust: none; }  </style> <span class=\"title-link advertiser_label\"></span> <a href='https://ads.huawei.com/usermgtportal/home/index.html#/' style=\"text-decoration:none\" onclick=sendGetReq()> <img src='https://ads.huawei.com/usermgtportal/home/img/huawei_logo_black.aaec817d.svg' width='250' height='300'/> </a> <img height=\"1\" width=\"1\" src='http://test/imp1' >  <img height=\"1\" width=\"1\" src='http://test/imp2' >  <img height=\"1\" width=\"1\" src='http://test/imp3' >  <script type=\"text/javascript\">var dspClickTrackings = [\"http://test/click1\",\"http://test/click2\",\"http://test/click3\"];function sendGetReq() {sendSomeGetReq(dspClickTrackings)}function sendOneGetReq(url) {var req = new XMLHttpRequest();req.open('GET', url, true);req.send(null);}function sendSomeGetReq(urls) {for (var i = 0; i < urls.length; i++) {sendOneGetReq(urls[i]);}}</script>",
   236              "adomain": [
   237                "huaweiads"
   238              ],
   239              "crid": "58025103",
   240              "id": "test-imp-id",
   241              "impid": "test-imp-id",
   242              "price": 2.8,
   243              "h": 300,
   244              "w": 250
   245            },
   246            "type": "banner"
   247          }
   248        ]
   249      }
   250    ]
   251  }