github.com/prebid/prebid-server@v0.275.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                                      "type": "native",
   168                                      "targeting": {
   169                                          "hb_bidder": "appnexus",
   170                                          "hb_bidder_appnexus": "appnexus",
   171                                          "hb_cache_host": "www.pbcserver.com",
   172                                          "hb_cache_host_appnex": "www.pbcserver.com",
   173                                          "hb_cache_path": "/pbcache/endpoint",
   174                                          "hb_cache_path_appnex": "/pbcache/endpoint",
   175                                          "hb_pb": "23.40000",
   176                                          "hb_pb_appnexus": "23.40000",
   177                                          "hb_pb_cat_dur": "23.40000_VideoGames_0s_appnexus",
   178                                          "hb_pb_cat_dur_appnex": "23.40000_VideoGames_0s_appnexus",
   179                                          "hb_size": "200x250",
   180                                          "hb_size_appnexus": "200x250"
   181                                      }
   182                                  }
   183                              }
   184                          },
   185                          {
   186                              "cat": [
   187                                  "IAB1-2"
   188                              ],
   189                              "crid": "creative-3",
   190                              "mtype": 4,
   191                              "ext": {
   192                                  "origbidcpm": 29,
   193                                  "prebid": {
   194                                      "targeting": {
   195                                          "hb_bidder": "appnexus",
   196                                          "hb_bidder_appnexus": "appnexus",
   197                                          "hb_cache_host": "www.pbcserver.com",
   198                                          "hb_cache_host_appnex": "www.pbcserver.com",
   199                                          "hb_cache_path": "/pbcache/endpoint",
   200                                          "hb_cache_path_appnex": "/pbcache/endpoint",
   201                                          "hb_pb": "28.80000",
   202                                          "hb_pb_appnexus": "28.80000",
   203                                          "hb_pb_cat_dur": "28.80000_HomeDecor_0s_appnexus",
   204                                          "hb_pb_cat_dur_appnex": "28.80000_HomeDecor_0s_appnexus",
   205                                          "hb_size": "300x500",
   206                                          "hb_size_appnexus": "300x500"
   207                                      },
   208                                      "type": "native"
   209                                  }
   210                              },
   211                              "h": 500,
   212                              "id": "apn-other-bid",
   213                              "impid": "imp-id-2",
   214                              "price": 29,
   215                              "w": 300
   216                          }
   217                      ]
   218                  }
   219              ]
   220          }
   221      }
   222  }