github.com/prebid/prebid-server@v0.275.0/adapters/huaweiads/huaweiadstest/supplemental/bad_response_dont_find_impid.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": "m8x9x3rzf1",
    20              "adtype": "banner",
    21              "publisherid": "123",
    22              "signkey": "signkey",
    23              "keyid": "41",
    24              "isTestAuthorization": "true"
    25            }
    26          }
    27        },
    28        {
    29          "id": "test-imp-id",
    30          "banner": {
    31            "format": [
    32              {
    33                "w": 300,
    34                "h": 250
    35              }
    36            ],
    37            "w": 300,
    38            "h": 250
    39          },
    40          "ext": {
    41            "bidder": {
    42              "slotid": "m8x9x3rzf2",
    43              "adtype": "banner",
    44              "publisherid": "123",
    45              "signkey": "signkey",
    46              "keyid": "41",
    47              "isTestAuthorization": "true"
    48            }
    49          }
    50        }
    51      ],
    52      "app": {
    53        "bundle": "com.wavehk.android",
    54        "name": "Huawei Browser",
    55        "ver": "9.1.0.301"
    56      },
    57      "device": {
    58        "ua": "useragent",
    59        "h": 1920,
    60        "language": "zh",
    61        "geoCountry": "CH",
    62        "model": "COL-TEST",
    63        "os": "android",
    64        "osv": "10.0.0",
    65        "devicetype": 4,
    66        "make": "huawei",
    67        "w": 1080,
    68        "ip": "ip",
    69        "pxratio": 23.01,
    70        "geo": {
    71          "country": ""
    72        }
    73      },
    74      "user": {
    75        "ext": {
    76          "data": {
    77            "gaid": [
    78              "gaid"
    79            ],
    80            "oaid": [
    81              "oaid"
    82            ],
    83            "clientTime": [
    84              "2018-11-02 16:34:07.981+1300"
    85            ]
    86          }
    87        }
    88      },
    89      "ext": {
    90      }
    91    },
    92    "httpcalls": [
    93      {
    94        "expectedRequest": {
    95          "uri": "https://adx-dra.op.hicloud.com/ppsadx/getResult",
    96          "headers": {
    97            "Accept": [
    98              "application/json"
    99            ],
   100            "Content-Type": [
   101              "application/json;charset=utf-8"
   102            ],
   103            "User-Agent": [
   104              "useragent"
   105            ],
   106            "Authorization": [
   107              "Digest username=123,realm=ppsadx/getResult,nonce=1629473330823,response=d1d61a13a83e1468aa4dff5c8a6cee0b8b381173ca3eb6fa9b313937684d87c0,algorithm=HmacSHA256,usertype=1,keyid=41"
   108            ]
   109          },
   110          "body": {
   111            "app": {
   112              "lang": "en",
   113              "country": "ZA",
   114              "name": "Huawei Browser",
   115              "pkgname": "com.wavehk.android",
   116              "version": "9.1.0.301"
   117            },
   118            "multislot": [
   119              {
   120                "adtype": 8,
   121                "slotid": "m8x9x3rzf1",
   122                "test": 1,
   123                "format": [
   124                  {
   125                    "h": 250,
   126                    "w": 300
   127                  }
   128                ],
   129                "h": 250,
   130                "w": 300
   131              },
   132              {
   133                "adtype": 8,
   134                "slotid": "m8x9x3rzf2",
   135                "test": 1,
   136                "format": [
   137                  {
   138                    "h": 250,
   139                    "w": 300
   140                  }
   141                ],
   142                "h": 250,
   143                "w": 300
   144              }
   145            ],
   146            "device": {
   147              "height": 1920,
   148              "language": "zh",
   149              "oaid": "oaid",
   150              "os": "android",
   151              "type": 4,
   152              "ip": "ip",
   153              "localeCountry": "ZA",
   154              "pxratio": 23.01,
   155              "width": 1080,
   156              "clientTime": "2018-11-02 16:34:07.981+1300",
   157              "gaid": "gaid",
   158              "useragent": "useragent",
   159              "version": "10.0.0",
   160              "maker": "huawei",
   161              "model": "COL-TEST",
   162              "belongCountry": "ZA"
   163            },
   164            "geo": {
   165            },
   166            "network": {
   167              "type": 0
   168            },
   169            "regs": {
   170            },
   171            "version": "3.4",
   172            "clientAdRequestId": "test-req-id"
   173          }
   174        },
   175        "mockResponse": {
   176          "status": 200,
   177          "body": {
   178            "ctrlSwitchs": "0",
   179            "dsp1cost": 61,
   180            "dspcost": 108,
   181            "multiad": [
   182              {
   183                "adtype": 8,
   184                "content": [
   185                  {
   186                    "clickActionList": [
   187                      1
   188                    ],
   189                    "contentid": "58025103",
   190                    "creativetype": 2,
   191                    "ctrlSwitchs": "001011001001010112",
   192                    "endtime": 1621428898335,
   193                    "filterList": [
   194                      3
   195                    ],
   196                    "interactiontype": 1,
   197                    "landingTitle": 1,
   198                    "metaData": {
   199                      "adSign": "2",
   200                      "appPromotionChannel": "401721412",
   201                      "clickUrl": "https://task/clickurl",
   202                      "imageInfo": [
   203                        {
   204                          "checkSha256Flag": 1,
   205                          "height": 300,
   206                          "imageType": "img",
   207                          "sha256": "f5d8487cddaecec45b73fc078649478c80ec646bfec8ed7da4ff931f90eab232",
   208                          "url": "https://test/1.png",
   209                          "width": 250
   210                        }
   211                      ],
   212                      "label": "Banner_API",
   213                      "landingPageType": "3"
   214                    },
   215                    "monitor": [
   216                      {
   217                        "eventType": "click",
   218                        "url": [
   219                          "http://test/click"
   220                        ]
   221                      },
   222                      {
   223                        "eventType": "imp",
   224                        "url": [
   225                          "http://test/imp"
   226                        ]
   227                      },
   228                      {
   229                        "eventType": "userclose",
   230                        "url": [
   231                          "http://test/userclose"
   232                        ]
   233                      }
   234                    ],
   235                    "paramfromserver": {
   236                      "a": "1||test",
   237                      "sig": "",
   238                      "t": "99990101235959"
   239                    },
   240                    "price": 2.8,
   241                    "starttime": 1621267200000,
   242                    "taskid": "48017658"
   243                  }
   244                ],
   245                "retcode30": 200,
   246                "slotid": "m8x9x3rzf1"
   247              },
   248              {
   249                "adtype": 8,
   250                "content": [
   251                  {
   252                    "clickActionList": [
   253                      1
   254                    ],
   255                    "contentid": "58025103",
   256                    "creativetype": 2,
   257                    "ctrlSwitchs": "001011001001010112",
   258                    "endtime": 1621428898335,
   259                    "filterList": [
   260                      3
   261                    ],
   262                    "interactiontype": 1,
   263                    "landingTitle": 1,
   264                    "metaData": {
   265                      "adSign": "2",
   266                      "appPromotionChannel": "401721412",
   267                      "clickUrl": "https://task/clickurl",
   268                      "imageInfo": [
   269                        {
   270                          "checkSha256Flag": 1,
   271                          "height": 300,
   272                          "imageType": "img",
   273                          "sha256": "f5d8487cddaecec45b73fc078649478c80ec646bfec8ed7da4ff931f90eab232",
   274                          "url": "https://test/1.png",
   275                          "width": 250
   276                        }
   277                      ],
   278                      "label": "Banner_API",
   279                      "landingPageType": "3"
   280                    },
   281                    "monitor": [
   282                      {
   283                        "eventType": "click",
   284                        "url": [
   285                          "http://test/click"
   286                        ]
   287                      },
   288                      {
   289                        "eventType": "imp",
   290                        "url": [
   291                          "http://test/imp"
   292                        ]
   293                      },
   294                      {
   295                        "eventType": "userclose",
   296                        "url": [
   297                          "http://test/userclose"
   298                        ]
   299                      }
   300                    ],
   301                    "paramfromserver": {
   302                      "a": "1||test",
   303                      "sig": "",
   304                      "t": "99990101235959"
   305                    },
   306                    "price": 2.8,
   307                    "starttime": 1621267200000,
   308                    "taskid": "48017658"
   309                  }
   310                ],
   311                "retcode30": 200,
   312                "slotid": "m8x9x3rzf3"
   313              }
   314            ],
   315            "retcode": 200,
   316            "totalCacheSize": 300
   317          }
   318        }
   319      }
   320    ],
   321    "expectedBidResponses": [
   322        {
   323            "currency":"USD",
   324            "bids":[
   325                {
   326            "bid": {
   327              "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://task/clickurl' style=\"text-decoration:none\" onclick=sendGetReq()> <img src='https://test/1.png' width='250' height='300'/> </a> <img height=\"1\" width=\"1\" src='http://test/imp' >  <script type=\"text/javascript\">var dspClickTrackings = [\"http://test/click\"];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>",
   328              "adomain": [
   329                "huaweiads"
   330              ],
   331              "crid": "58025103",
   332              "id": "test-imp-id",
   333              "impid": "test-imp-id",
   334              "price": 2.8,
   335              "h": 300,
   336              "w": 250
   337            },
   338            "type": "banner"
   339                }
   340            ]
   341        }
   342    ],
   343    "expectedMakeRequestsErrors": [],
   344    "expectedMakeBidsErrors": []
   345  }