{
  "description": "TCF2 consent type, valid consent_string, gdpr_applies set to true: expect regs.ext.gdpr to be set to 1 and user.ext.consent equal to the consent_string",
  "query": "tag_id=101&consent_type=2&gdpr_applies=true&consent_string=CPdECS0PdECS0ACABBENAzCv_____3___wAAAQNd_X9cAAAAAAAA",
  "config": {
    "mockBidders": [
      {
        "bidderName": "appnexus",
        "currency": "USD",
        "price": 15
      }
    ]
  },
  "mockBidRequest": {
    "id": "b9c97a4b-cbc4-483d-b2c4-58a19ed5cfc5",
    "site": {
      "page": "prebid.org"
    },
    "imp": [
      {
        "id": "/19968336/header-bid-tag-0",
        "banner": {
          "format": [
            {
              "w": 300,
              "h": 600
            }
          ]
        },
        "ext": {
          "prebid": {
            "bidder": {
              "appnexus": {
                "placementId": 12883451
              }
            }
          }
        }
      }
    ]
  },
  "expectedValidatedBidRequest": {
    "id": "b9c97a4b-cbc4-483d-b2c4-58a19ed5cfc5",
    "site": {
      "page": "prebid.org",
      "ext": {
        "amp": 1
      }
    },
    "device": {
      "ip": "192.0.2.1"
    },
    "at": 1,
    "imp": [
      {
        "id": "/19968336/header-bid-tag-0",
        "banner": {
          "format": [
            {
              "w": 300,
              "h": 600
            }
          ]
        },
        "secure": 1,
        "ext": {
          "prebid": {
            "bidder": {
              "appnexus": {
                "placementId": 12883451
              }
            }
          }
        }
      }
    ],
    "regs": {
      "gdpr": 1
    },
    "user": {
      "consent": "CPdECS0PdECS0ACABBENAzCv_____3___wAAAQNd_X9cAAAAAAAA"
    },
    "ext": {
      "prebid": {
        "cache": {
          "bids": {}
        },
        "channel": {
          "name": "amp",
          "version": ""
        },
        "targeting": {
          "pricegranularity": {
            "precision": 2,
            "ranges": [
              {
                "min": 0,
                "max": 20,
                "increment": 0.1
              }
            ]
          },
          "includewinners": true,
          "includebidderkeys": true
        }
      }
    }
  },
  "expectedAmpResponse": {
    "targeting": {
      "hb_bidder": "appnexus",
      "hb_bidder_appnexus": "appnexus",
      "hb_cache_host": "www.pbcserver.com",
      "hb_cache_host_appnex": "www.pbcserver.com",
      "hb_cache_id": "0",
      "hb_cache_id_appnexus": "0",
      "hb_cache_path": "/pbcache/endpoint",
      "hb_cache_path_appnex": "/pbcache/endpoint",
      "hb_env": "amp",
      "hb_env_appnexus": "amp",
      "hb_pb": "15.00",
      "hb_pb_appnexus": "15.00"
    },
    "ortb2": {
      "ext": {
        "warnings": {
          "general": [
            {
              "code": 10002,
              "message": "debug turned off for account"
            }
          ]
        }
      }
    }
  },
  "expectedReturnCode": 200
}