{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/albertsons/refs/heads/main/json-schema/retail-media-api-create-campaign-request-schema.json",
  "title": "Create Campaign Request",
  "description": "Request body for creating a new advertising campaign.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Display name for the new campaign.",
      "example": "Summer Grocery Promotion"
    },
    "budget": {
      "type": "number",
      "format": "double",
      "description": "Total budget allocated to the campaign in USD.",
      "example": 25000.0
    },
    "startDate": {
      "type": "string",
      "format": "date",
      "description": "Campaign start date (ISO 8601).",
      "example": "2026-06-01"
    },
    "endDate": {
      "type": "string",
      "format": "date",
      "description": "Campaign end date (ISO 8601).",
      "example": "2026-08-31"
    },
    "targetAudienceIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of audience segment IDs for targeting.",
      "example": [
        "aud-001",
        "aud-002"
      ]
    }
  },
  "required": [
    "name",
    "budget",
    "startDate",
    "endDate"
  ]
}