github.com/prebid/prebid-server/v2@v2.18.0/adapters/yandex/yandextest/supplemental/simple-banner-sizes.json (about)

     1  {
     2    "mockBidRequest": {
     3      "id": "request_id",
     4      "imp": [
     5        {
     6          "id": "invalid_width",
     7          "banner": {
     8            "w": 0,
     9            "h": 600
    10          },
    11          "ext": {
    12            "bidder": {
    13              "page_id": 111,
    14              "imp_id": 1
    15            }
    16          }
    17        },
    18        {
    19          "id": "invalid_height",
    20          "banner": {
    21            "w": 400,
    22            "h": 0
    23          },
    24          "ext": {
    25            "bidder": {
    26              "page_id": 222,
    27              "imp_id": 2
    28            }
    29          }
    30        },
    31        {
    32          "id": "invalid_size",
    33          "banner": {
    34            "w": 0,
    35            "h": 0
    36          },
    37          "ext": {
    38            "bidder": {
    39              "page_id": 222,
    40              "imp_id": 3
    41            }
    42          }
    43        },
    44        {
    45          "id": "invalid_no_size_no_formats",
    46          "banner": {},
    47          "ext": {
    48            "bidder": {
    49              "page_id": 222,
    50              "imp_id": 5
    51            }
    52          }
    53        },
    54        {
    55          "id": "invalid_size",
    56          "banner": {
    57            "w": 0,
    58            "h": 0
    59          },
    60          "ext": {
    61            "bidder": {
    62              "page_id": 222,
    63              "imp_id": 3
    64            }
    65          }
    66        },
    67        {
    68          "id": "no_size_but_valid_formats",
    69          "banner": {
    70            "format": [
    71              {
    72                "w": 600,
    73                "h": 500
    74              },
    75              {
    76                "w": 300,
    77                "h": 600
    78              }
    79            ]
    80          },
    81          "ext": {
    82            "bidder": {
    83              "page_id": 222,
    84              "imp_id": 4
    85            }
    86          }
    87        }
    88      ],
    89      "site": {
    90        "domain": "www.example.com",
    91        "page": "http://www.example.com"
    92      },
    93      "cur": [
    94        "USD"
    95      ],
    96      "device": {
    97        "ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36",
    98        "ip": "127.0.0.1"
    99      },
   100      "tmax": 500
   101    },
   102    "httpCalls": [
   103      {
   104        "expectedRequest": {
   105          "uri": "https://bs-metadsp.yandex.ru/prebid/222?imp-id=4&ssp-cur=USD&ssp-id=10500&target-ref=www.example.com",
   106          "headers": {
   107            "User-Agent": [
   108              "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"
   109            ],
   110            "X-Forwarded-For": [
   111              "127.0.0.1"
   112            ],
   113            "X-Real-Ip": [
   114              "127.0.0.1"
   115            ],
   116            "Content-Type": [
   117              "application/json;charset=utf-8"
   118            ],
   119            "Referer": [
   120              "http://www.example.com"
   121            ],
   122            "Accept": [
   123              "application/json"
   124            ]
   125          },
   126          "body": {
   127            "id": "request_id",
   128            "imp": [
   129              {
   130                "id": "no_size_but_valid_formats",
   131                "banner": {
   132                  "w": 600,
   133                  "h": 500,
   134                  "format": [
   135                    {
   136                      "w": 600,
   137                      "h": 500
   138                    },
   139                    {
   140                      "w": 300,
   141                      "h": 600
   142                    }
   143                  ]
   144                },
   145                "ext": {
   146                  "bidder": {
   147                    "page_id": 222,
   148                    "imp_id": 4
   149                  }
   150                }
   151              }
   152            ],
   153            "site": {
   154              "domain": "www.example.com",
   155              "page": "http://www.example.com"
   156            },
   157            "cur": [
   158              "USD"
   159            ],
   160            "device": {
   161              "ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36",
   162              "ip": "127.0.0.1"
   163            },
   164            "tmax": 500
   165          },
   166          "impIDs":["no_size_but_valid_formats"]
   167        },
   168        "mockResponse": {
   169          "status": 200,
   170          "headers": {},
   171          "body": {
   172            "id": "request_id",
   173            "seatbid": [
   174              {
   175                "bid": [
   176                  {
   177                    "id": "bid_id4",
   178                    "impid": "no_size_but_valid_formats",
   179                    "price": 1.25,
   180                    "crid": "crid",
   181                    "adm": "adm001",
   182                    "h": 800,
   183                    "w": 400
   184                  }
   185                ]
   186              }
   187            ],
   188            "bidid": "bid_id"
   189          }
   190        }
   191      }
   192    ],
   193    "expectedBidResponses": [
   194      {
   195        "bids": [
   196          {
   197            "bid": {
   198              "id": "bid_id4",
   199              "impid": "no_size_but_valid_formats",
   200              "price": 1.25,
   201              "adm": "adm001",
   202              "crid": "crid",
   203              "w": 400,
   204              "h": 800
   205            },
   206            "type": "banner"
   207          }
   208        ]
   209      }
   210    ],
   211    "expectedMakeRequestsErrors": [
   212      {
   213        "value": "Invalid size",
   214        "comparison": "regex"
   215      },
   216      {
   217        "value": "Invalid size",
   218        "comparison": "regex"
   219      },
   220      {
   221        "value": "Invalid size",
   222        "comparison": "regex"
   223      },
   224      {
   225        "value": "Invalid size",
   226        "comparison": "regex"
   227      },
   228      {
   229        "value": "Invalid size",
   230        "comparison": "regex"
   231      }
   232    ]
   233  }