github.com/prebid/prebid-server@v0.275.0/adapters/grid/gridtest/exemplary/native-as-string.json (about)

     1  {
     2      "mockBidRequest": {
     3          "id": "test-request-id",
     4          "site": {
     5              "page": "https://good.site/url"
     6          },
     7          "imp": [{
     8              "id": "test-imp-id",
     9              "native": {
    10                  "ver": "1.1",
    11                  "request": "request string"
    12              },
    13              "ext": {
    14                  "bidder": {
    15                      "uid": 1
    16                  }
    17              }
    18          }]
    19      },
    20  
    21      "httpCalls": [{
    22          "expectedRequest": {
    23              "uri": "http://localhost/prebid",
    24              "body": {
    25                  "id": "test-request-id",
    26                  "site": {
    27                      "page": "https://good.site/url"
    28                  },
    29                  "imp": [{
    30                      "id": "test-imp-id",
    31                      "native": {
    32                          "ver": "1.1",
    33                          "request_native": "request string"
    34                      },
    35                      "ext": {
    36                          "bidder": {
    37                              "uid": 1
    38                          }
    39                      }
    40                  }]
    41              }
    42          },
    43          "mockResponse": {
    44              "status": 200,
    45              "body": {
    46                  "id": "test-request-id",
    47                  "seatbid": [{
    48                      "seat": "grid",
    49                      "bid": [{
    50                          "id": "randomid",
    51                          "impid": "test-imp-id",
    52                          "price": 0.500000,
    53                          "adid": "12345678",
    54                          "adm_native": {
    55                              "some_native_key": "native_value"
    56                          },
    57                          "cid": "987",
    58                          "crid": "12345678",
    59                          "h": 250,
    60                          "w": 300
    61                      }]
    62                  }],
    63                  "cur": "USD"
    64              }
    65          }
    66      }],
    67  
    68      "expectedBidResponses": [{
    69          "currency": "USD",
    70          "bids": [{
    71              "bid": {
    72                  "id": "randomid",
    73                  "impid": "test-imp-id",
    74                  "price": 0.5,
    75                  "adm": "{\"some_native_key\":\"native_value\"}",
    76                  "adid": "12345678",
    77                  "cid": "987",
    78                  "crid": "12345678",
    79                  "w": 300,
    80                  "h": 250
    81              },
    82              "type": "native"
    83          }]
    84      }]
    85  }