{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Rubicon Adapter Params",
    "description": "A schema which validates params accepted by the Rubicon adapter",
    "type": "object",
    "properties": {
        "accountId": {
            "type": "integer",
            "minimum": 1,
            "description": "An ID which identifies the publisher's account"
        },
        "siteId": {
            "type": "integer",
            "minimum": 1,
            "description": "An ID which identifies the site selling the impression"
        },
        "zoneId": {
            "type": "integer",
            "minimum": 1,
            "description": "An ID which identifies the sub-section of the site where the impression is located"
        },
        "inventory": {
            "type": "object",
            "description": "An object defining arbitrary targeting key/value pairs related to the page",
            "additionalProperties": {
                "type": "string"
            }
        },
        "visitor": {
            "type": "object",
            "description": "An object defining arbitrary targeting key/value pairs related to the visitor",
            "additionalProperties": {
                "type": "string"
            }
        },
        "video": {
            "type": "object",
            "description": "An object defining additional Rubicon video parameters",
            "properties": {
                "Language": {
                    "type": "string",
                    "description": "Language of the ad - should match content video"
                },
                "PlayerHeight": {
                    "type": "integer",
                    "description": "Height in pixels of the video player"
                },
                "PlayerWidth": {
                    "type": "integer",
                    "description": "Width in pixels of the video player"
                },
                "VideoSizeID": {
                    "type": "integer",
                    "description": "Rubicon size_id, used to describe type of video ad (preroll, postroll, etc)"
                },
                "Skip": {
                    "type": "integer",
                    "description": "Can this ad be skipped ( 0 = no, 1 = yes)"
                },
                "SkipDelay": {
                    "type": "integer",
                    "description": "number of seconds until the ad can be skipped"
                }
            }
        }
    },
    "required": [
        "accountId",
        "siteId",
        "zoneId"
    ]
}