{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linkedin/json-schema/linkedin-ad-campaign-schema.json",
  "title": "AdCampaign",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linkedin-ad-campaigns-api-openapi.yml#/components/schemas/AdCampaign",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64"
    },
    "name": {
      "type": "string"
    },
    "account": {
      "type": "string",
      "description": "urn:li:sponsoredAccount:{id}"
    },
    "status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "PAUSED",
        "ARCHIVED",
        "COMPLETED",
        "CANCELED",
        "DRAFT",
        "PENDING_DELETION",
        "REMOVED"
      ]
    },
    "type": {
      "type": "string",
      "enum": [
        "TEXT_AD",
        "SPONSORED_UPDATES",
        "SPONSORED_INMAILS",
        "DYNAMIC"
      ]
    },
    "costType": {
      "type": "string",
      "enum": [
        "CPC",
        "CPM",
        "CPV"
      ]
    },
    "dailyBudget": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "string"
        },
        "currencyCode": {
          "type": "string"
        }
      }
    },
    "associatedEntity": {
      "type": "string",
      "description": "urn:li:organization:{id}"
    },
    "audienceExpansionEnabled": {
      "type": "boolean"
    },
    "locale": {
      "type": "object"
    },
    "targetingCriteria": {
      "type": "object"
    },
    "test": {
      "type": "boolean"
    }
  }
}