github.com/prebid/prebid-server/v2@v2.18.0/endpoints/openrtb2/sample-requests/amp/consent-through-query/gdpr-legacy-tcf2-consent-through-query.json (about)

     1  {
     2    "description": "TCF2 consent type, valid consent string passed through legacy gdpr_consent field, gdpr_applies set to true: expect regs.ext.gdpr to be set to 1 and user.ext.consent equal to the consent_string",
     3    "query": "tag_id=101&consent_type=2&gdpr_applies=true&gdpr_consent=CPdECS0PdECS0ACABBENAzCv_____3___wAAAQNd_X9cAAAAAAAA",
     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    },
    41    "expectedValidatedBidRequest": {
    42      "id": "b9c97a4b-cbc4-483d-b2c4-58a19ed5cfc5",
    43      "site": {
    44        "page": "prebid.org",
    45        "ext": {
    46          "amp": 1
    47        }
    48      },
    49      "device": {
    50        "ip": "192.0.2.1"
    51      },
    52      "at": 1,
    53      "imp": [
    54        {
    55          "id": "/19968336/header-bid-tag-0",
    56          "banner": {
    57            "format": [
    58              {
    59                "w": 300,
    60                "h": 600
    61              }
    62            ]
    63          },
    64          "secure": 1,
    65          "ext": {
    66            "prebid": {
    67              "bidder": {
    68                "appnexus": {
    69                  "placementId": 12883451
    70                }
    71              }
    72            }
    73          }
    74        }
    75      ],
    76      "regs": {
    77        "ext": {
    78          "gdpr": 1
    79        }
    80      },
    81      "user": {
    82        "ext": {
    83          "consent": "CPdECS0PdECS0ACABBENAzCv_____3___wAAAQNd_X9cAAAAAAAA"
    84        }
    85      },
    86      "ext": {
    87        "prebid": {
    88          "cache": {
    89            "bids": {}
    90          },
    91          "channel": {
    92            "name": "amp",
    93            "version": ""
    94          },
    95          "targeting": {
    96            "pricegranularity": {
    97              "precision": 2,
    98              "ranges": [
    99                {
   100                  "min": 0,
   101                  "max": 20,
   102                  "increment": 0.1
   103                }
   104              ]
   105            },
   106            "includewinners": true,
   107            "includebidderkeys": true,
   108            "mediatypepricegranularity": {}
   109          }
   110        }
   111      }
   112    },
   113    "expectedAmpResponse": {
   114      "targeting": {
   115        "hb_bidder": "appnexus",
   116        "hb_bidder_appnexus": "appnexus",
   117        "hb_cache_host": "www.pbcserver.com",
   118        "hb_cache_host_appnex": "www.pbcserver.com",
   119        "hb_cache_id": "0",
   120        "hb_cache_id_appnexus": "0",
   121        "hb_cache_path": "/pbcache/endpoint",
   122        "hb_cache_path_appnex": "/pbcache/endpoint",
   123        "hb_pb": "15.00",
   124        "hb_pb_appnexus": "15.00"
   125      },
   126      "ortb2": {
   127        "ext": {
   128          "warnings": {
   129            "general": [
   130              {
   131                "code": 10002,
   132                "message": "debug turned off for account"
   133              }
   134            ]
   135          }
   136        }
   137      }
   138    },
   139    "expectedReturnCode": 200
   140  }