{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/domain-group/main/json-schema/domain-group-campaign-api-v1-project-performance-data-response-schema.json",
  "title": "CampaignAPI.v1.ProjectPerformanceDataResponse",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/domain-group-campaignreporting-api-openapi.yml#/components/schemas/CampaignAPI.v1.ProjectPerformanceDataResponse",
  "required": [
    "data"
  ],
  "type": "object",
  "properties": {
    "data": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/CampaignAPI.v1.ProjectPerformanceResponse"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "CampaignAPI.v1.ProjectPerformanceResponse": {
      "required": [
        "domainAgencyId",
        "ioNumber",
        "projectId"
      ],
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "format": "date"
        },
        "domainAgencyId": {
          "type": [
            "string",
            "null"
          ]
        },
        "ioNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "projectId": {
          "type": [
            "string",
            "null"
          ]
        },
        "projectName": {
          "type": [
            "string",
            "null"
          ]
        },
        "pageViews": {
          "type": "integer",
          "format": "int32"
        },
        "saveAndShares": {
          "type": "integer",
          "format": "int32"
        },
        "totalLeads": {
          "type": "integer",
          "format": "int32"
        },
        "emailEnquiries": {
          "type": "integer",
          "format": "int32"
        },
        "phoneLeads": {
          "type": "integer",
          "format": "int32"
        },
        "phoneReveals": {
          "type": "integer",
          "format": "int32"
        },
        "agentDetailsViews": {
          "type": "integer",
          "format": "int32"
        },
        "photoViews": {
          "type": "integer",
          "format": "int32"
        },
        "videoViews": {
          "type": "integer",
          "format": "int32"
        },
        "mapViews": {
          "type": "integer",
          "format": "int32"
        },
        "spend": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "cpe": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        }
      },
      "additionalProperties": false
    }
  }
}