{
    "additionalProperties": false,
    "dependencies": {
        "cost": [
            "costModel"
        ]
    },
    "description": "Schema for an ad click event",
    "properties": {
        "advertiserId": {
            "type": "string"
        },
        "bannerId": {
            "type": "string"
        },
        "campaignId": {
            "type": "string"
        },
        "clickId": {
            "type": "string"
        },
        "cost": {
            "minimum": 0,
            "type": "number"
        },
        "costModel": {
            "enum": [
                "cpa",
                "cpc",
                "cpm"
            ]
        },
        "impressionId": {
            "type": "string"
        },
        "targetUrl": {
            "minLength": 1,
            "type": "string"
        },
        "zoneId": {
            "type": "string"
        }
    },
    "required": [
        "targetUrl"
    ],
    "self": {
        "format": "jsonschema",
        "name": "ad_click",
        "vendor": "com.snowplowanalytics.snowplow",
        "version": "1-0-0"
    },
    "type": "object"
}