github.com/prebid/prebid-server/v2@v2.18.0/endpoints/openrtb2/sample-requests/hooks/amp_bidder_reject.json (about)

     1  {
     2    "description": "Amp request",
     3    "query": "tag_id=101&trace=verbose",
     4    "config": {
     5      "mockBidders": [
     6        {"bidderName": "appnexus", "currency": "USD", "price": 2},
     7        {"bidderName": "rubicon", "currency": "USD", "price": 1}
     8      ]
     9    },
    10    "mockBidRequest": {
    11      "id": "my-req-id",
    12      "site": {
    13        "page": "test.somepage.com"
    14      },
    15      "imp": [
    16        {
    17          "id": "my-imp-id",
    18          "banner": {
    19            "format": [
    20              {
    21                "w": 300,
    22                "h": 600
    23              }
    24            ]
    25          },
    26          "ext": {
    27            "prebid": {
    28              "bidder": {
    29                "appnexus": {
    30                  "placementId": 12883451
    31                },
    32                "rubicon": {
    33                  "placementId": 12883451
    34                }
    35              }
    36            }
    37          }
    38        }
    39      ],
    40      "ext": {
    41        "prebid": {
    42          "debug": true,
    43          "aliases": {
    44            "unknown": "appnexus",
    45            "foo": "rubicon"
    46          }
    47        }
    48      }
    49    },
    50    "expectedAmpResponse": {
    51      "targeting": {
    52        "hb_bidder": "rubicon",
    53        "hb_bidder_rubicon": "rubicon",
    54        "hb_cache_host": "www.pbcserver.com",
    55        "hb_cache_host_rubico": "www.pbcserver.com",
    56        "hb_cache_id": "0",
    57        "hb_cache_id_rubicon": "0",
    58        "hb_cache_path": "/pbcache/endpoint",
    59        "hb_cache_path_rubico": "/pbcache/endpoint",
    60        "hb_pb": "1.00",
    61        "hb_pb_rubicon": "1.00"
    62      },
    63      "ortb2": {
    64        "ext": {
    65          "warnings": {
    66            "appnexus": [
    67              {
    68                "code": 11,
    69                "message": "Module foobar (hook: foo) rejected request with code 123 at bidder_request stage"
    70              }
    71            ]
    72          },
    73          "prebid": {
    74            "modules": {
    75              "errors": {
    76                "foobar": {
    77                  "foo": [
    78                    "Module foobar (hook: foo) rejected request with code 123 at bidder_request stage"
    79                  ]
    80                }
    81              },
    82              "trace": {
    83                "stages": [
    84                  {
    85                    "outcomes": [
    86                      {
    87                        "entity": "appnexus",
    88                        "groups": [
    89                          {
    90                            "invocation_results": [
    91                              {
    92                                "action": "reject",
    93                                "analytics_tags": {},
    94                                "hook_id": {
    95                                  "hook_impl_code": "foo",
    96                                  "module_code": "foobar"
    97                                },
    98                                "message": "",
    99                                "status": "success"
   100                              }
   101                            ]
   102                          }
   103                        ]
   104                      },
   105                      {
   106                        "entity": "rubicon",
   107                        "groups": [
   108                          {
   109                            "invocation_results": [
   110                              {
   111                                "action": "no_action",
   112                                "analytics_tags": {},
   113                                "hook_id": {
   114                                  "hook_impl_code": "foo",
   115                                  "module_code": "foobar"
   116                                },
   117                                "message": "",
   118                                "status": "success"
   119                              }
   120                            ]
   121                          }
   122                        ]
   123                      }
   124                    ],
   125                    "stage": "bidder_request"
   126                  }
   127                ]
   128              }
   129            }
   130          }
   131        }
   132      }
   133    },
   134    "expectedReturnCode": 200
   135  }