{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://globaladalliance.com/downloads/schemas/ms-rtb-bid-response.schema.json",
  "title": "MS-RTB BidResponse v1.0",
  "type": "object",
  "additionalProperties": false,
  "required": ["request_id", "dsp_node_id", "bids"],
  "properties": {
    "request_id": { "type": "string" },
    "dsp_node_id": { "type": "string" },
    "dsp_signature": { "type": "string", "contentEncoding": "base64" },
    "bids": { "type": "array", "items": { "$ref": "#/$defs/Bid" } },
    "processing_time_us": { "type": "integer", "minimum": 0 }
  },
  "$defs": {
    "Bid": {
      "type": "object",
      "additionalProperties": false,
      "required": ["bid_id", "slot_id", "price_usd", "advertiser_domain"],
      "properties": {
        "bid_id": { "type": "string" },
        "slot_id": { "type": "string" },
        "price_usd": { "type": "number", "minimum": 0 },
        "creative_payload": { "type": "string" },
        "win_notice_url": { "type": "string", "format": "uri" },
        "advertiser_domain": { "type": "string" }
      }
    }
  }
}