{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Improve Digital Adapter Params",
  "description": "A schema which validates params accepted by Improve Digital adapter",
  "type": "object",
  "properties": {
    "placementId": {
      "type": "integer",
      "minimum": 1,
      "description": "The placement ID from Improve Digital"
    },
    "publisherId": {
      "type": "integer",
      "minimum": 1,
      "description": "The publisher ID from Improve Digital"
    },
    "keyValues": {
      "type": "object",
      "description": "Contains one or more key-value pairings for key-value targeting"
    },
    "size": {
      "type": "object",
      "properties": {
        "w": {
          "type": "integer"
        },
        "h": {
          "type": "integer"
        }
      },
      "required": [
        "w",
        "h"
      ],
      "description": "Placement size"
    }
  },
  "required": ["placementId"]
}
