github.com/prebid/prebid-server/v2@v2.18.0/adapters/yieldlab/yieldlabtest/exemplary/banner.json (about)

     1  {
     2    "mockBidRequest": {
     3      "id": "test-request-id",
     4      "imp": [
     5        {
     6          "id": "test-imp-id",
     7          "banner": {
     8            "format": [
     9              {
    10                "w": 728,
    11                "h": 90
    12              },
    13              {
    14                "w": 800,
    15                "h": 300
    16              }
    17            ]
    18          },
    19          "ext": {
    20            "bidder": {
    21              "adslotId": "12345",
    22              "supplyId": "123456789",
    23              "targeting": {
    24                "key1": "value1",
    25                "key2": "value2"
    26              },
    27              "extId": "abc"
    28            }
    29          }
    30        }
    31      ],
    32      "user": {
    33        "buyeruid": "34a53e82-0dc3-4815-8b7e-b725ede0361c"
    34      },
    35      "device": {
    36        "ifa": "hello-ads",
    37        "devicetype": 4,
    38        "connectiontype": 6,
    39        "geo": {
    40          "lat": 51.499488,
    41          "lon": -0.128953
    42        },
    43        "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36",
    44        "ip": "169.254.13.37",
    45        "h": 1098,
    46        "w": 814
    47      },
    48      "site": {
    49        "id": "fake-site-id",
    50        "publisher": {
    51          "id": "1"
    52        },
    53        "page": "http://localhost:9090/gdpr.html"
    54      }
    55    },
    56    "httpCalls": [
    57      {
    58        "expectedRequest": {
    59          "headers": {
    60            "Accept": [
    61              "application/json"
    62            ],
    63            "Cookie": [
    64              "id=34a53e82-0dc3-4815-8b7e-b725ede0361c"
    65            ],
    66            "Referer": [
    67              "http://localhost:9090/gdpr.html"
    68            ],
    69            "User-Agent": [
    70              "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"
    71            ],
    72            "X-Forwarded-For": [
    73              "169.254.13.37"
    74            ]
    75          },
    76          "uri": "https://ad.yieldlab.net/testing/12345?content=json&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&sizes=12345%3A728x90%7C800x300&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads",
    77          "impIDs":["test-imp-id"]
    78        },
    79        "mockResponse": {
    80          "status": 200,
    81          "body": [
    82            {
    83              "id": 12345,
    84              "price": 201,
    85              "advertiser": "yieldlab",
    86              "adsize": "728x90",
    87              "pid": 1234,
    88              "did": 5678,
    89              "pvid": "40cb3251-1e1e-4cfd-8edc-7d32dc1a21e5"
    90            }
    91          ]
    92        }
    93      }
    94    ],
    95    "expectedBidResponses": [
    96      {
    97        "currency": "EUR",
    98        "bids": [
    99          {
   100            "bid": {
   101              "adm": "<script src=\"https://ad.yieldlab.net/d/12345/123456789/728x90?id=abc&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&pvid=40cb3251-1e1e-4cfd-8edc-7d32dc1a21e5&ts=testing\"></script>",
   102              "crid": "12345123433",
   103              "dealid": "1234",
   104              "id": "12345",
   105              "impid": "test-imp-id",
   106              "price": 2.01,
   107              "w": 728,
   108              "h": 90
   109            },
   110            "type": "banner"
   111          }
   112        ]
   113      }
   114    ]
   115  }