{
    "additionalProperties": false,
    "dependencies": {
        "cost": [
            "costModel"
        ]
    },
    "description": "Schema for an ad conversion event",
    "minProperties": 1,
    "properties": {
        "action": {
            "type": "string"
        },
        "advertiserId": {
            "type": "string"
        },
        "campaignId": {
            "type": "string"
        },
        "category": {
            "type": "string"
        },
        "conversionId": {
            "type": "string"
        },
        "cost": {
            "minimum": 0,
            "type": "number"
        },
        "costModel": {
            "enum": [
                "cpa",
                "cpc",
                "cpm"
            ]
        },
        "initialValue": {
            "minimum": 0,
            "type": "number"
        },
        "property": {
            "type": "string"
        }
    },
    "self": {
        "format": "jsonschema",
        "name": "ad_conversion",
        "vendor": "com.snowplowanalytics.snowplow",
        "version": "1-0-0"
    },
    "type": "object"
}