{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/civai-co/json-schema/civai-co-ad-plan-create-schema.json",
  "title": "AdPlanCreate",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audience-resolver-api.civai.co-openapi.json#/components/schemas/AdPlanCreate",
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Title"
    },
    "channels": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Channels"
    },
    "spend_cap_minor": {
      "type": "integer",
      "exclusiveMinimum": 0.0,
      "title": "Spend Cap Minor"
    },
    "currency": {
      "type": "string",
      "maxLength": 8,
      "title": "Currency",
      "default": "USD"
    },
    "account_mode": {
      "type": "string",
      "enum": [
        "nova_account",
        "owner_account"
      ],
      "title": "Account Mode",
      "default": "owner_account"
    },
    "cta_destination": {
      "type": "string",
      "enum": [
        "agent_chat",
        "website",
        "social_profile"
      ],
      "title": "Cta Destination",
      "default": "agent_chat"
    },
    "target_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Target Url"
    },
    "headline": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Headline"
    },
    "body_text": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Body Text"
    },
    "asset_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Asset Id"
    },
    "calendar_row_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Calendar Row Id"
    },
    "leads_target": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Leads Target"
    },
    "stop_rule_cpl_minor": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Stop Rule Cpl Minor"
    },
    "max_bid_minor": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Bid Minor"
    },
    "ends_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ends At"
    }
  },
  "type": "object",
  "required": [
    "title",
    "spend_cap_minor"
  ]
}