github.com/prebid/prebid-server/v2@v2.18.0/endpoints/openrtb2/sample-requests/adservertargeting/valid-invalid-and-warnings.json (about)

     1  {
     2    "description": "This demonstrates all of the OpenRTB extensions supported by Prebid Server. Very few requests will need all of these at once.",
     3    "config": {
     4      "mockBidders": [
     5        {
     6          "bidderName": "appnexus",
     7          "currency": "USD",
     8          "price": 1.00
     9        },
    10        {
    11          "bidderName": "rubicon",
    12          "currency": "USD",
    13          "price": 1.00
    14        }
    15      ]
    16    },
    17    "mockBidRequest": {
    18      "id": "some-request-id",
    19      "site": {
    20        "page": "prebid.org",
    21        "content": {
    22          "episode": 6,
    23          "title": "episodeName",
    24          "series": "TvName",
    25          "season": "season3",
    26          "len": 900
    27        }
    28      },
    29      "user": {
    30        "ext": {
    31          "consent": "gdpr-consent-string",
    32          "prebid": {
    33            "buyeruids": {
    34              "appnexus": "override-appnexus-id-in-cookie"
    35            }
    36          }
    37        }
    38      },
    39      "regs": {
    40        "ext": {
    41          "gdpr": 1,
    42          "us_privacy": "1NYN"
    43        }
    44      },
    45      "imp": [
    46        {
    47          "id": "some-impression-id",
    48          "video": {
    49            "mimes": [
    50              "video/mp4"
    51            ],
    52            "maxduration": 30,
    53            "protocols": [
    54              2,
    55              3
    56            ],
    57            "w": 640,
    58            "h": 480
    59          },
    60          "ext": {
    61            "appnexus": {
    62              "placementId": 12883452
    63            },
    64            "rubicon": {
    65              "accountId": 1001,
    66              "siteId": 113932,
    67              "zoneId": 535510
    68            }
    69          }
    70        }
    71      ],
    72      "tmax": 500,
    73      "ext": {
    74        "prebid": {
    75          "aliases": {
    76            "districtm": "appnexus"
    77          },
    78          "bidadjustmentfactors": {
    79            "appnexus": 1.01,
    80            "districtm": 0.98,
    81            "rubicon": 0.99
    82          },
    83          "cache": {
    84            "bids": {}
    85          },
    86          "channel": {
    87            "name": "video",
    88            "version": "1.0"
    89          },
    90          "adservertargeting": [
    91            {
    92              "key": "adt_hb_req_imp_maxduration",
    93              "source": "bidrequest",
    94              "value": "imp.video.maxduration"
    95            },
    96            {
    97              "key": "adt_hb_req_imp_w",
    98              "source": "bidrequest",
    99              "value": "imp.video.w"
   100            },
   101            {
   102              "key": "adt_hb_req_imp_h",
   103              "source": "bidrequest",
   104              "value": "imp.video.h"
   105            },
   106            {
   107              "key": "adt_hb_req_site_contest_param",
   108              "source": "bidrequest",
   109              "value": "site.content.season"
   110            },
   111            {
   112              "key": "adt_hb_static_thing",
   113              "source": "static",
   114              "value": "test-static-value"
   115            },
   116            {
   117              "key": "adt_{{BIDDER}}_impid",
   118              "source": "bidresponse",
   119              "value": "seatbid.bid.impid"
   120            },
   121            {
   122              "key": "adt_custom2",
   123              "source": "bidresponse",
   124              "value": "seatbid.bid.price"
   125            },
   126            {
   127              "key": "adt_hb_req_imp_maxduration",
   128              "source": "bidrequest",
   129              "value": "imp.video.mimes"
   130            },
   131            {
   132              "key": "adt_hb_req_imp_w",
   133              "source": "bidrequest",
   134              "value": "imp.video"
   135            },
   136            {
   137              "key": "adt_hb_req_site_contest_param",
   138              "source": "bidrequest",
   139              "value": "site.content"
   140            },
   141            {
   142              "key": "",
   143              "source": "bidrequest",
   144              "value": "imp.video"
   145            },
   146            {
   147              "key": "adt_hb_req_site_contest_param",
   148              "source": "",
   149              "value": "site.content"
   150            },
   151            {
   152              "key": "adt_{{BIDDER}}_impid",
   153              "source": "bidresponse",
   154              "value": ""
   155            },
   156            {
   157              "key": "adt_incorrect_bidresp",
   158              "source": "bidresponse",
   159              "value": "incorrect"
   160            }
   161          ]
   162        }
   163      }
   164    },
   165    "expectedBidResponse": {
   166      "id": "some-request-id",
   167      "seatbid": [
   168        {
   169          "bid": [
   170            {
   171              "id": "appnexus-bid",
   172              "impid": "some-impression-id",
   173              "price": 1.01,
   174              "ext": {
   175                "origbidcpm": 1,
   176                "origbidcur": "USD",
   177                "prebid": {
   178                  "meta": {
   179                    "adaptercode": "appnexus"
   180                  },
   181                  "targeting": {
   182                    "adt_appnexus_impid": "some-impression-id",
   183                    "adt_custom2": "1.01",
   184                    "adt_hb_req_imp_h": "480",
   185                    "adt_hb_req_imp_maxdu": "30",
   186                    "adt_hb_req_imp_w": "640",
   187                    "adt_hb_req_site_cont": "season3",
   188                    "adt_hb_static_thing": "test-static-value"
   189                  },
   190                  "type": "banner"
   191                }
   192              }
   193            }
   194          ],
   195          "seat": "appnexus"
   196        },
   197        {
   198          "bid": [
   199            {
   200              "id": "rubicon-bid",
   201              "impid": "some-impression-id",
   202              "price": 0.99,
   203              "ext": {
   204                "origbidcpm": 1,
   205                "origbidcur": "USD",
   206                "prebid": {
   207                  "meta": {
   208                    "adaptercode": "rubicon"
   209                  },
   210                  "targeting": {
   211                    "adt_custom2": "0.99",
   212                    "adt_hb_req_imp_h": "480",
   213                    "adt_hb_req_imp_maxdu": "30",
   214                    "adt_hb_req_imp_w": "640",
   215                    "adt_hb_req_site_cont": "season3",
   216                    "adt_hb_static_thing": "test-static-value",
   217                    "adt_rubicon_impid": "some-impression-id"
   218                  },
   219                  "type": "banner"
   220                }
   221              }
   222            }
   223          ],
   224          "seat": "rubicon"
   225        }
   226      ],
   227      "bidid": "test bid id",
   228      "cur": "USD",
   229      "nbr": 0,
   230      "ext": {
   231        "warnings": {
   232          "general": [
   233            {
   234              "code": 10002,
   235              "message": "debug turned off for account"
   236            },
   237            {
   238              "code": 10007,
   239              "message": "Key is empty for the ad server targeting object at index 10"
   240            },
   241            {
   242              "code": 10007,
   243              "message": "Incorrect source for the ad server targeting object at index 11"
   244            },
   245            {
   246              "code": 10007,
   247              "message": "Value is empty for the ad server targeting object at index 12"
   248            },
   249            {
   250              "code": 10007,
   251              "message": "incorrect value type for path: imp.video.mimes, value can only be string or number"
   252            },
   253            {
   254              "code": 10007,
   255              "message": "incorrect value type for path: imp.video, value can only be string or number"
   256            },
   257            {
   258              "code": 10007,
   259              "message": "incorrect value type for path: site.content, value can only be string or number"
   260            },
   261            {
   262              "code": 10007,
   263              "message": "key not found for field in bid response: incorrect for bidder"
   264            },
   265            {
   266              "code": 10007,
   267              "message": "key not found for field in bid response: incorrect for bidder"
   268            }
   269          ]
   270        }
   271      }
   272    },
   273    "expectedReturnCode": 200
   274  }