github.com/prebid/prebid-server@v0.275.0/endpoints/openrtb2/sample-requests/amp/valid-supplementary/gdpr.json (about)

     1  {
     2    "description": "Amp request comes with a root.regs.ext.gdpr and a GDPR consent string found in root.user.ext.consent",
     3    "query": "tag_id=101",
     4    "config": {
     5      "mockBidders": [
     6        {
     7          "bidderName": "appnexus",
     8          "currency": "USD",
     9          "price": 15
    10        }
    11      ]
    12    },
    13    "mockBidRequest": {
    14      "id": "b9c97a4b-cbc4-483d-b2c4-58a19ed5cfc5",
    15      "site": {
    16        "page": "prebid.org"
    17      },
    18      "imp": [
    19        {
    20          "id": "/19968336/header-bid-tag-0",
    21          "banner": {
    22            "format": [
    23              {
    24                "w": 300,
    25                "h": 600
    26              }
    27            ]
    28          },
    29          "ext": {
    30            "prebid": {
    31              "bidder": {
    32                "appnexus": {
    33                  "placementId": 12883451
    34                }
    35              }
    36            }
    37          }
    38        }
    39      ],
    40      "regs": {
    41        "ext": {
    42          "gdpr": 1
    43        }
    44      },
    45      "user": {
    46        "ext": {
    47          "consent": "some-consent-string"
    48        }
    49      }
    50    },
    51    "expectedAmpResponse": {
    52      "targeting": {
    53        "hb_bidder": "appnexus",
    54        "hb_bidder_appnexus": "appnexus",
    55        "hb_cache_host": "www.pbcserver.com",
    56        "hb_cache_host_appnex": "www.pbcserver.com",
    57        "hb_cache_id": "0",
    58        "hb_cache_id_appnexus": "0",
    59        "hb_cache_path": "/pbcache/endpoint",
    60        "hb_cache_path_appnex": "/pbcache/endpoint",
    61        "hb_pb": "15.00",
    62        "hb_pb_appnexus": "15.00"
    63      },
    64      "ortb2": {
    65        "ext": {
    66          "warnings": {
    67            "general": [
    68              {
    69                "code": 10002,
    70                "message": "debug turned off for account"
    71              }
    72            ]
    73          }
    74        }
    75      }
    76    },
    77    "expectedReturnCode": 200
    78  }