{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linkedin-ads/json-schema/linkedin-ads-ad-campaign-schema.json",
  "title": "AdCampaign",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linkedin-ads-ad-accounts-api-openapi.yml#/components/schemas/AdCampaign",
  "type": "object",
  "properties": {
    "account": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "TEXT_AD",
        "SPONSORED_UPDATES",
        "SPONSORED_INMAILS"
      ]
    },
    "costType": {
      "type": "string",
      "enum": [
        "CPC",
        "CPM",
        "CPV"
      ]
    },
    "dailyBudget": {
      "$ref": "#/$defs/MoneyAmount"
    },
    "unitCost": {
      "$ref": "#/$defs/MoneyAmount"
    },
    "locale": {
      "type": "object",
      "properties": {
        "country": {
          "type": "string"
        },
        "language": {
          "type": "string"
        }
      }
    },
    "runSchedule": {
      "type": "object",
      "properties": {
        "start": {
          "type": "integer",
          "format": "int64"
        },
        "end": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "targetingCriteria": {
      "type": "object"
    },
    "audienceExpansionEnabled": {
      "type": "boolean"
    },
    "creativeSelection": {
      "type": "string"
    },
    "offsiteDeliveryEnabled": {
      "type": "boolean"
    }
  },
  "$defs": {
    "MoneyAmount": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "string"
        },
        "currencyCode": {
          "type": "string"
        }
      }
    }
  }
}