github.com/prebid/prebid-server@v0.275.0/adapters/huaweiads/huaweiadstest/supplemental/bad_response_not_native.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": "m8x9x3rzff",
    14              "adtype": "native",
    15              "publisherid": "123",
    16              "signkey": "signkey",
    17              "keyid": "41",
    18              "isTestAuthorization": "true"
    19            }
    20          }
    21        }
    22      ],
    23      "app": {
    24        "bundle": "com.wavehk.android",
    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": "ip",
    40        "pxratio": 23.01,
    41        "geo": {
    42          "country": ""
    43        }
    44      },
    45      "user": {
    46        "ext": {
    47          "data": {
    48            "gaid": [
    49              "gaid"
    50            ],
    51            "oaid": [
    52              "oaid"
    53            ],
    54            "clientTime": [
    55              "2018-11-02 16:34:07.981+1300"
    56            ]
    57          }
    58        }
    59      },
    60      "ext": {
    61      }
    62    },
    63    "httpcalls": [
    64      {
    65        "expectedRequest": {
    66          "uri": "https://adx-dra.op.hicloud.com/ppsadx/getResult",
    67          "headers": {
    68            "Accept": [
    69              "application/json"
    70            ],
    71            "Content-Type": [
    72              "application/json;charset=utf-8"
    73            ],
    74            "User-Agent": [
    75              "useragent"
    76            ],
    77            "Authorization": [
    78              "Digest username=123,realm=ppsadx/getResult,nonce=1629473330823,response=d1d61a13a83e1468aa4dff5c8a6cee0b8b381173ca3eb6fa9b313937684d87c0,algorithm=HmacSHA256,usertype=1,keyid=41"
    79            ]
    80          },
    81          "body": {
    82            "app": {
    83              "lang": "en",
    84              "country": "ZA",
    85              "name": "Huawei Browser",
    86              "pkgname": "com.wavehk.android",
    87              "version": "9.1.0.301"
    88            },
    89            "multislot": [
    90              {
    91                "adtype": 3,
    92                "slotid": "m8x9x3rzff",
    93                "test": 1,
    94                "detailedCreativeTypeList": [
    95                  "903"
    96                ]
    97              }
    98            ],
    99            "device": {
   100              "height": 1920,
   101              "language": "zh",
   102              "oaid": "oaid",
   103              "os": "android",
   104              "type": 4,
   105              "ip": "ip",
   106              "localeCountry": "ZA",
   107              "pxratio": 23.01,
   108              "width": 1080,
   109              "clientTime": "2018-11-02 16:34:07.981+1300",
   110              "gaid": "gaid",
   111              "useragent": "useragent",
   112              "version": "10.0.0",
   113              "maker": "huawei",
   114              "model": "COL-TEST",
   115              "belongCountry": "ZA"
   116            },
   117            "geo": {
   118            },
   119            "network": {
   120              "type": 0
   121            },
   122            "regs": {
   123            },
   124            "version": "3.4",
   125            "clientAdRequestId": "test-req-id"
   126          }
   127        },
   128        "mockResponse": {
   129          "status": 200,
   130          "body": {
   131            "ctrlSwitchs": "0",
   132            "dsp1cost": 61,
   133            "dspcost": 108,
   134            "multiad": [
   135              {
   136                "adtype": 8,
   137                "brsetting": "Y",
   138                "content": [
   139                  {
   140                    "clickActionList": [
   141                      1
   142                    ],
   143                    "contentid": "58025103",
   144                    "creativetype": 2,
   145                    "ctrlSwitchs": "001011001001010112",
   146                    "endtime": 1621428898335,
   147                    "filterList": [
   148                      3
   149                    ],
   150                    "interactiontype": 1,
   151                    "landingTitle": 1,
   152                    "metaData": {
   153                      "adSign": "2",
   154                      "appPromotionChannel": "401721412",
   155                      "clickUrl": "https://task/clickurl",
   156                      "imageInfo": [
   157                        {
   158                          "checkSha256Flag": 1,
   159                          "height": 300,
   160                          "imageType": "img",
   161                          "sha256": "f5d8487cddaecec45b73fc078649478c80ec646bfec8ed7da4ff931f90eab232",
   162                          "url": "https://test/1.png",
   163                          "width": 250
   164                        }
   165                      ],
   166                      "label": "Banner_API",
   167                      "landingPageType": "3"
   168                    },
   169                    "monitor": [
   170                      {
   171                        "eventType": "click",
   172                        "url": [
   173                          "http://test/click"
   174                        ]
   175                      },
   176                      {
   177                        "eventType": "imp",
   178                        "url": [
   179                          "http://test/imp"
   180                        ]
   181                      },
   182                      {
   183                        "eventType": "userclose",
   184                        "url": [
   185                          "http://test/userclose"
   186                        ]
   187                      }
   188                    ],
   189                    "paramfromserver": {
   190                      "a": "1||test",
   191                      "sig": "",
   192                      "t": "99990101235959"
   193                    },
   194                    "price": 2.8,
   195                    "starttime": 1621267200000,
   196                    "taskid": "48017658"
   197                  }
   198                ],
   199                "retcode30": 200,
   200                "slotid": "m8x9x3rzff"
   201              }
   202            ],
   203            "retcode": 200,
   204            "totalCacheSize": 300
   205          }
   206        }
   207      }
   208    ],
   209    "expectedBidResponses": [
   210    ],
   211    "expectedMakeRequestsErrors": [],
   212    "expectedMakeBidsErrors": [
   213      {
   214        "value": "generate Adm field from HuaweiAds response failed: extract Adm for Native ad: huaweiads response is not a native ad",
   215        "comparison": "literal"
   216      }
   217    ]
   218  }