github.com/prebid/prebid-server@v0.275.0/adapters/bliink/bliinktest/supplemental/status_bad_request.json (about)

     1  {
     2    "mockBidRequest": {
     3      "id": "some-request-id",
     4      "device": {
     5        "ua": "test-user-agent",
     6        "ip": "123.123.123.123"
     7      },
     8      "user": {
     9        "buyeruid": "awesome-user",
    10        "ext": {
    11          "consent": "gdprConsentString"
    12        }
    13      },
    14      "site": {
    15        "page": "test.com",
    16        "publisher": {
    17          "id": "123456789"
    18        }
    19      },
    20      "imp": [
    21        {
    22          "id": "some-impression-id",
    23          "tagid": "TAGID",
    24          "banner": {
    25            "w": 320,
    26            "h": 50
    27          }
    28        }
    29      ]
    30    },
    31    "httpCalls": [
    32      {
    33        "expectedRequest": {
    34          "headers": {
    35            "Content-Type": [
    36              "application/json;charset=utf-8"
    37            ],
    38            "Accept": [
    39              "application/json"
    40            ],
    41            "X-Openrtb-Version": [
    42              "2.5"
    43            ]
    44          },
    45          "uri": "http://biddertest.url/bid",
    46          "body": {
    47            "id": "some-request-id",
    48            "device": {
    49              "ua": "test-user-agent",
    50              "ip": "123.123.123.123"
    51            },
    52            "imp": [
    53              {
    54                "id": "some-impression-id",
    55                "banner": {
    56                  "w": 320,
    57                  "h": 50
    58                },
    59                "tagid": "TAGID"
    60              }
    61            ],
    62            "site": {
    63              "page": "test.com",
    64              "publisher": {
    65                "id": "123456789"
    66              }
    67            },
    68            "user": {
    69              "buyeruid": "awesome-user",
    70              "ext": {
    71                "consent": "gdprConsentString"
    72              }
    73            }
    74          }
    75        },
    76        "mockResponse": {
    77          "status": 400,
    78          "body": {
    79            "error": {
    80              "message": "Validation failed",
    81              "details": [
    82                {
    83                  "message": "invalid consent"
    84                }
    85              ]
    86            }
    87          }
    88        }
    89      }
    90    ],
    91    "expectedMakeBidsErrors": [
    92      {
    93        "value": "Unexpected status code: 400. Bad request from publisher. Run with request.debug = 1 for more info.",
    94        "comparison": "literal"
    95      }
    96    ]
    97  }