{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/taboola/main/json-schema/taboola-campaign-schema.json", "title": "Taboola Campaign", "description": "Campaign resource exposed by the Taboola Backstage API.", "type": "object", "required": ["advertiser_id", "name"], "properties": { "id": { "type": "string" }, "advertiser_id": { "type": "string" }, "name": { "type": "string" }, "branding_text": { "type": "string" }, "tracking_code": { "type": "string" }, "cpc": { "type": "number" }, "spending_limit": { "type": "number" }, "spending_limit_model": { "type": "string", "enum": ["ENTIRE", "DAILY", "MONTHLY"] }, "daily_cap": { "type": "number" }, "daily_ad_delivery_model": { "type": "string", "enum": ["STABLE", "ACCELERATED"] }, "start_date": { "type": "string", "format": "date" }, "end_date": { "type": "string", "format": "date" }, "is_active": { "type": "boolean" }, "status": { "type": "string", "enum": ["RUNNING", "PAUSED", "PENDING_APPROVAL", "REJECTED", "TERMINATED", "EXPIRED", "FROZEN"] }, "approval_state": { "type": "string" }, "marketing_objective": { "type": "string", "enum": [ "ONLINE_PURCHASES", "LEADS_GENERATION", "DRIVE_WEBSITE_TRAFFIC", "BRAND_AWARENESS", "MOBILE_APP_INSTALL" ] }, "bid_strategy": { "type": "string", "enum": ["FIXED", "SMART", "MAX_CONVERSIONS", "TARGET_CPA"] }, "bid_type": { "type": "string", "enum": ["CPC", "CPM", "VCPM"] }, "pricing_model": { "type": "string" }, "cpa_goal": { "type": "number" }, "spent": { "type": "number" }, "country_targeting": { "$ref": "#/$defs/targeting" }, "sub_country_targeting": { "$ref": "#/$defs/targeting" }, "platform_targeting": { "$ref": "#/$defs/targeting" }, "publisher_targeting": { "$ref": "#/$defs/targeting" }, "contextual_segments_targeting": { "$ref": "#/$defs/targeting" } }, "$defs": { "targeting": { "type": "object", "properties": { "type": { "type": "string", "enum": ["INCLUDE", "EXCLUDE", "ALL"] }, "value": { "type": "array", "items": { "type": "string" } }, "href": { "type": "string" } } } } }