github.com/prebid/prebid-server/v2@v2.18.0/exchange/exchangetest/mediatypepricegranularity-native.json (about)

     1  {
     2      "incomingRequest": {
     3          "ortbRequest": {
     4              "id": "some-request-id",
     5              "site": {
     6                  "page": "test.somepage.com"
     7              },
     8              "imp": [
     9                  {
    10                      "id": "my-imp-id",
    11                      "video": {
    12                          "mimes": [
    13                              "video/mp4"
    14                          ]
    15                      },
    16                      "ext": {
    17                          "prebid": {
    18                              "bidder": {
    19                                  "appnexus": {
    20                                      "placementId": 1
    21                                  }
    22                              }
    23                          }
    24                      }
    25                  },
    26                  {
    27                      "id": "imp-id-2",
    28                      "video": {
    29                          "mimes": [
    30                              "video/mp4"
    31                          ]
    32                      },
    33                      "ext": {
    34                          "prebid": {
    35                              "bidder": {
    36                                  "appnexus": {
    37                                      "placementId": 1
    38                                  }
    39                              }
    40                          }
    41                      }
    42                  }
    43              ],
    44              "ext": {
    45                  "prebid": {
    46                      "targeting": {
    47                          "includebrandcategory": {
    48                              "primaryadserver": 1,
    49                              "publisher": "",
    50                              "withcategory": true
    51                          },
    52                          "pricegranularity": {
    53                              "precision": 2,
    54                              "ranges": [
    55                                  {
    56                                      "min": 0,
    57                                      "max": 20,
    58                                      "increment": 2
    59                                  }
    60                              ]
    61                          },
    62                          "mediatypepricegranularity": {
    63                              "banner": {
    64                                  "precision": 3,
    65                                  "ranges": [
    66                                      {
    67                                          "max": 20,
    68                                          "increment": 4.5
    69                                      }
    70                                  ]
    71                              },
    72                              "video": {
    73                                  "precision": 4,
    74                                  "ranges": [
    75                                      {
    76                                          "min": 10,
    77                                          "max": 30,
    78                                          "increment": 1.5
    79                                      }
    80                                  ]
    81                              },
    82                              "native": {
    83                                  "precision": 5,
    84                                  "ranges": [
    85                                      {
    86                                          "max": 30,
    87                                          "increment": 1.8
    88                                      }
    89                                  ]
    90                              }
    91                          },
    92                          "includewinners": true,
    93                          "includebidderkeys": true,
    94                          "appendbiddernames": true
    95                      }
    96                  }
    97              }
    98          },
    99          "usersyncs": {
   100              "appnexus": "123"
   101          }
   102      },
   103      "outgoingRequests": {
   104          "appnexus": {
   105              "mockResponse": {
   106                  "pbsSeatBids": [
   107                      {
   108                          "pbsBids": [
   109                              {
   110                                  "ortbBid": {
   111                                      "id": "apn-bid",
   112                                      "impid": "my-imp-id",
   113                                      "price": 24,
   114                                      "w": 200,
   115                                      "h": 250,
   116                                      "crid": "creative-1",
   117                                      "cat": [
   118                                          "IAB1-1"
   119                                      ],
   120                                      "mtype": 4
   121                                  },
   122                                  "bidType": "native"
   123                              },
   124                              {
   125                                  "ortbBid": {
   126                                      "id": "apn-other-bid",
   127                                      "impid": "imp-id-2",
   128                                      "price": 29,
   129                                      "w": 300,
   130                                      "h": 500,
   131                                      "crid": "creative-3",
   132                                      "cat": [
   133                                          "IAB1-2"
   134                                      ],
   135                                      "mtype": 4
   136                                  },
   137                                  "bidType": "native"
   138                              }
   139                          ],
   140                          "seat": "appnexus"
   141                      }
   142                  ]
   143              }
   144          }
   145      },
   146      "response": {
   147          "bids": {
   148              "id": "some-request-id",
   149              "seatbid": [
   150                  {
   151                      "seat": "appnexus",
   152                      "bid": [
   153                          {
   154                              "id": "apn-bid",
   155                              "impid": "my-imp-id",
   156                              "price": 24,
   157                              "w": 200,
   158                              "h": 250,
   159                              "crid": "creative-1",
   160                              "cat": [
   161                                  "IAB1-1"
   162                              ],
   163                              "mtype": 4,
   164                              "ext": {
   165                                  "origbidcpm": 24,
   166                                  "prebid": {
   167                                      "meta": {
   168                                      },
   169                                      "type": "native",
   170                                      "targeting": {
   171                                          "hb_bidder": "appnexus",
   172                                          "hb_bidder_appnexus": "appnexus",
   173                                          "hb_cache_host": "www.pbcserver.com",
   174                                          "hb_cache_host_appnex": "www.pbcserver.com",
   175                                          "hb_cache_path": "/pbcache/endpoint",
   176                                          "hb_cache_path_appnex": "/pbcache/endpoint",
   177                                          "hb_pb": "23.40000",
   178                                          "hb_pb_appnexus": "23.40000",
   179                                          "hb_pb_cat_dur": "23.40000_VideoGames_0s_appnexus",
   180                                          "hb_pb_cat_dur_appnex": "23.40000_VideoGames_0s_appnexus",
   181                                          "hb_size": "200x250",
   182                                          "hb_size_appnexus": "200x250"
   183                                      }
   184                                  }
   185                              }
   186                          },
   187                          {
   188                              "cat": [
   189                                  "IAB1-2"
   190                              ],
   191                              "crid": "creative-3",
   192                              "mtype": 4,
   193                              "ext": {
   194                                  "origbidcpm": 29,
   195                                  "prebid": {
   196                                      "meta": {
   197                                      },
   198                                      "targeting": {
   199                                          "hb_bidder": "appnexus",
   200                                          "hb_bidder_appnexus": "appnexus",
   201                                          "hb_cache_host": "www.pbcserver.com",
   202                                          "hb_cache_host_appnex": "www.pbcserver.com",
   203                                          "hb_cache_path": "/pbcache/endpoint",
   204                                          "hb_cache_path_appnex": "/pbcache/endpoint",
   205                                          "hb_pb": "28.80000",
   206                                          "hb_pb_appnexus": "28.80000",
   207                                          "hb_pb_cat_dur": "28.80000_HomeDecor_0s_appnexus",
   208                                          "hb_pb_cat_dur_appnex": "28.80000_HomeDecor_0s_appnexus",
   209                                          "hb_size": "300x500",
   210                                          "hb_size_appnexus": "300x500"
   211                                      },
   212                                      "type": "native"
   213                                  }
   214                              },
   215                              "h": 500,
   216                              "id": "apn-other-bid",
   217                              "impid": "imp-id-2",
   218                              "price": 29,
   219                              "w": 300
   220                          }
   221                      ]
   222                  }
   223              ]
   224          }
   225      }
   226  }