{
  "$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-social-performance-data-response-schema.json",
  "title": "CampaignAPI.v1.SocialPerformanceDataResponse",
  "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.SocialPerformanceDataResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/CampaignAPI.v1.SocialPerformanceResponse"
      }
    },
    "pageNumber": {
      "type": "integer",
      "format": "int32"
    },
    "pageSize": {
      "type": "integer",
      "format": "int32"
    },
    "totalCount": {
      "type": "integer",
      "format": "int32"
    },
    "totalPages": {
      "type": "integer",
      "format": "int32"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "CampaignAPI.v1.SocialPerformanceResponse": {
      "required": [
        "creativeId",
        "creativeName",
        "domainAgencyId"
      ],
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "format": "date"
        },
        "domainAgencyId": {
          "type": [
            "string",
            "null"
          ]
        },
        "creativeId": {
          "type": [
            "string",
            "null"
          ]
        },
        "creativeName": {
          "type": [
            "string",
            "null"
          ]
        },
        "campaignName": {
          "type": [
            "string",
            "null"
          ]
        },
        "projectId": {
          "type": [
            "string",
            "null"
          ]
        },
        "projectName": {
          "type": [
            "string",
            "null"
          ]
        },
        "impressions": {
          "type": "integer",
          "format": "int32"
        },
        "enquiries": {
          "type": "integer",
          "format": "int32"
        },
        "clicks": {
          "type": "integer",
          "format": "int32"
        },
        "ctr": {
          "type": "number",
          "format": "double"
        }
      },
      "additionalProperties": false
    }
  }
}