{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-campaign-manager/json-schema/google-campaign-manager-tv-campaign-detail-schema.json",
  "title": "TvCampaignDetail",
  "description": "TvCampaignDetail contains data from a TV campaign for specific start dates and date windows.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-campaign-manager-tv-campaign-details-api-openapi.yml#/components/schemas/TvCampaignDetail",
  "type": "object",
  "properties": {
    "timepoints": {
      "description": "The timepoints of the TV campaign.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/TvCampaignTimepoint"
      }
    },
    "id": {
      "type": "string",
      "description": "ID of this TV campaign."
    },
    "kind": {
      "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#tvCampaignSummary\".",
      "type": "string"
    }
  },
  "$defs": {
    "TvCampaignTimepoint": {
      "type": "object",
      "description": "A single data point for TvCampaignDetail, which holds information about the TV campaign for a specific start date and date window.",
      "properties": {
        "spend": {
          "type": "number",
          "description": "The spend within the time range of the timepoint.",
          "format": "double"
        },
        "startDate": {
          "description": "The start date of the timepoint. A string in the format of \"yyyy-MM-dd\".",
          "type": "string"
        },
        "dateWindow": {
          "type": "string",
          "enum": [
            "WEEKS_UNSPECIFIED",
            "DAYS_ONE",
            "WEEKS_ONE",
            "WEEKS_FOUR",
            "WEEKS_EIGHT",
            "WEEKS_TWELVE"
          ],
          "description": "The date window of the timepoint."
        }
      }
    }
  }
}