github.com/prebid/prebid-server/v2@v2.18.0/adapters/grid/gridtest/exemplary/with-siteuser-keywords.json (about)

     1  {
     2      "mockBidRequest": {
     3          "id": "test-request-id",
     4          "site": {
     5              "page": "https://good.site/url",
     6              "keywords": "siteKey1,siteKey2"
     7          },
     8          "user": {
     9              "keywords": "userKey1"
    10          },
    11          "imp": [{
    12              "id": "test-imp-id",
    13              "banner": {
    14                  "format": [{
    15                      "w": 300,
    16                      "h": 250
    17                  }]
    18              },
    19              "ext": {
    20                  "bidder": {
    21                      "uid": 1
    22                  }
    23              }
    24          }]
    25      },
    26  
    27      "httpCalls": [{
    28          "expectedRequest": {
    29              "uri": "http://localhost/prebid",
    30              "body": {
    31                  "ext": {
    32                      "keywords": {
    33                          "site": {
    34                              "ortb2": [
    35                                  {
    36                                      "name": "keywords",
    37                                      "segments": [
    38                                          { "name": "keywords", "value": "siteKey1" },
    39                                          { "name": "keywords", "value": "siteKey2" }
    40                                      ]
    41                                  }
    42                              ]
    43                          },
    44                          "user": {
    45                              "ortb2": [
    46                                  {
    47                                      "name": "keywords",
    48                                      "segments": [
    49                                          { "name": "keywords", "value": "userKey1" }
    50                                      ]
    51                                  }
    52                              ]
    53                          }
    54                      }
    55                  },
    56                  "id": "test-request-id",
    57                  "site": {
    58                      "page": "https://good.site/url",
    59                      "keywords": "siteKey1,siteKey2"
    60                  },
    61                  "user": {
    62                      "keywords": "userKey1"
    63                  },
    64                  "imp": [{
    65                      "id": "test-imp-id",
    66                      "banner": {
    67                          "format": [{
    68                              "w": 300,
    69                              "h": 250
    70                          }]
    71                      },
    72                      "ext": {
    73                          "bidder": {
    74                              "uid": 1
    75                          }
    76                      }
    77                  }]
    78              },
    79              "impIDs":["test-imp-id"]
    80          },
    81          "mockResponse": {
    82              "status": 200,
    83              "body": {
    84                  "id": "test-request-id",
    85                  "seatbid": [{
    86                      "seat": "grid",
    87                      "bid": [{
    88                          "id": "randomid",
    89                          "impid": "test-imp-id",
    90                          "price": 0.500000,
    91                          "adid": "12345678",
    92                          "adm": "some-test-ad",
    93                          "cid": "987",
    94                          "crid": "12345678",
    95                          "h": 250,
    96                          "w": 300
    97                      }]
    98                  }],
    99                  "cur": "USD"
   100              }
   101          }
   102      }],
   103  
   104      "expectedBidResponses": [{
   105          "currency": "USD",
   106          "bids": [{
   107              "bid": {
   108                  "id": "randomid",
   109                  "impid": "test-imp-id",
   110                  "price": 0.5,
   111                  "adm": "some-test-ad",
   112                  "adid": "12345678",
   113                  "cid": "987",
   114                  "crid": "12345678",
   115                  "w": 300,
   116                  "h": 250
   117              },
   118              "type": "banner"
   119          }]
   120      }]
   121  }