{
    "format": "ndjson",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "conversion_data": {
            "type": "object",
            "properties": {
                "conversion_id": {
                    "type": "string"
                },
                "publisher_id": {
                    "type": "string"
                },
                "campaign_id": {
                    "type": "string"
                },
                "conversion_time": {
                    "type": "string"
                },
                "creative_type": {},
                "creative_id": {},
                "specific_creative_id": {},
                "customer_type": {},
                "referer_ip": {},
                "last_modified": {
                    "type": "string"
                },
                "conversion_type": {
                    "type": "integer"
                },
                "ref_device_id": {
                    "type": "integer"
                },
                "ref_partnership_model_id": {
                    "type": "integer"
                },
                "ref_traffic_source_id": {
                    "type": "integer"
                },
                "ref_conversion_metric_id": {
                    "type": "integer"
                },
                "ref_user_context_id": {
                    "type": "integer"
                },
                "campaign_title": {
                    "type": "string"
                },
                "publisher_name": {
                    "type": "string"
                },
                "was_disputed": {
                    "type": "boolean"
                },
                "conversion_items": {
                    "type": "array",
                    "items": [
                        {
                            "type": "object",
                            "properties": {
                                "conversion_item_id": {
                                    "type": "string"
                                },
                                "sku": {
                                    "type": "string"
                                },
                                "category": {
                                    "type": "string"
                                },
                                "item_value": {
                                    "type": "number"
                                },
                                "item_publisher_commission": {
                                    "type": "integer"
                                },
                                "item_status": {
                                    "type": "string"
                                },
                                "publisher_self_bill_id": {
                                    "type": "string"
                                },
                                "reject_reason": {},
                                "voucher_codes": {
                                    "type": "array",
                                    "items": [
                                        {
                                            "type": "object",
                                            "properties": {
                                                "voucher_code": {},
                                                "voucher_status": {},
                                                "voucher_code_id": {}
                                            }
                                        }
                                    ]
                                },
                                "meta_data": {
                                    "type": "object",
                                    "properties": {
                                        "adam_id": {
                                            "type": "integer"
                                        },
                                        "gross_value": {
                                            "type": "number"
                                        },
                                        "subscription_type": {
                                            "type": "string"
                                        },
                                        "acquisition_detail": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "required": [
                                "conversion_item_id",
                                "sku",
                                "category",
                                "item_value",
                                "item_publisher_commission",
                                "item_status",
                                "publisher_self_bill_id",
                                "reject_reason",
                                "voucher_codes",
                                "meta_data"
                            ]
                        }
                    ]
                },
                "meta_data": {
                    "type": "object",
                    "properties": {
                        "web_order_time": {
                            "type": "string"
                        }
                    },
                    "required": ["web_order_time"]
                },
                "ref_origin_id": {
                    "type": "integer"
                },
                "publisher_reference": {
                    "type": "string"
                },
                "advertiser_reference": {
                    "type": "string"
                },
                "conversion_reference": {
                    "type": "integer"
                },
                "customer_reference": {
                    "type": "string"
                },
                "source_referer": {
                    "type": "string"
                },
                "currency": {
                    "type": "string"
                },
                "country": {
                    "type": "string"
                },
                "ref_device": {
                    "type": "string"
                },
                "ref_partnership_model": {
                    "type": "string"
                },
                "ref_traffic_source": {
                    "type": "string"
                },
                "ref_user_context": {
                    "type": "string"
                },
                "ref_conversion_metric": {
                    "type": "string"
                },
                "ref_origin": {
                    "type": "string"
                },
                "conversion_value": {
                    "type": "object",
                    "properties": {
                        "conversion_status": {
                            "type": "string"
                        },
                        "value": {
                            "type": "number"
                        },
                        "publisher_commission": {
                            "type": "integer"
                        }
                    },
                    "required": ["conversion_status", "value", "publisher_commission"]
                },
                "click": {
                    "type": "object",
                    "properties": {
                        "campaign_id": {},
                        "publisher_id": {},
                        "type": {},
                        "status": {},
                        "set_time": {},
                        "set_ip": {},
                        "last_used": {
                            "type": "integer"
                        },
                        "last_ip": {},
                        "creative_id": {
                            "type": "integer"
                        },
                        "creative_type": {
                            "type": "integer"
                        },
                        "specific_creative_id": {
                            "type": "integer"
                        },
                        "ref_device_id": {},
                        "ref_partnership_model_id": {},
                        "ref_traffic_source_id": {},
                        "ref_user_context_id": {},
                        "ref_origin_id": {},
                        "referer": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "campaign_id",
                        "publisher_id",
                        "type",
                        "status",
                        "set_time",
                        "set_ip",
                        "last_used",
                        "last_ip",
                        "creative_id",
                        "creative_type",
                        "specific_creative_id",
                        "ref_device_id",
                        "ref_partnership_model_id",
                        "ref_traffic_source_id",
                        "ref_user_context_id",
                        "ref_origin_id",
                        "referer"
                    ]
                },
                "conversion_lag": {
                    "type": "integer"
                }
            },
            "required": [
                "conversion_id",
                "publisher_id",
                "campaign_id",
                "conversion_time",
                "creative_type",
                "creative_id",
                "specific_creative_id",
                "customer_type",
                "referer_ip",
                "last_modified",
                "conversion_type",
                "ref_device_id",
                "ref_partnership_model_id",
                "ref_traffic_source_id",
                "ref_conversion_metric_id",
                "ref_user_context_id",
                "campaign_title",
                "publisher_name",
                "was_disputed",
                "conversion_items",
                "meta_data",
                "ref_origin_id",
                "publisher_reference",
                "advertiser_reference",
                "conversion_reference",
                "customer_reference",
                "source_referer",
                "currency",
                "country",
                "ref_device",
                "ref_partnership_model",
                "ref_traffic_source",
                "ref_user_context",
                "ref_conversion_metric",
                "ref_origin",
                "conversion_value",
                "click",
                "conversion_lag"
            ]
        }
    },
    "required": ["conversion_data"]
}
