{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adcritter-com/json-schema/adcritter-com-media-asset-detailed-report-response-response-schema.json",
  "title": "MediaAssetDetailedReportResponseResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adcritter-com-reports-api-openapi.yml#/components/schemas/MediaAssetDetailedReportResponseResponse",
  "type": "object",
  "properties": {
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "errors": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Error"
      }
    },
    "data": {
      "$ref": "#/$defs/MediaAssetDetailedReportResponse"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "DateRangeResponse": {
      "type": "object",
      "properties": {
        "start": {
          "type": "string",
          "format": "date"
        },
        "end": {
          "type": "string",
          "format": "date"
        }
      },
      "additionalProperties": false
    },
    "Error": {
      "type": "object",
      "properties": {
        "code": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "MediaAssetAdMetricsResponse": {
      "type": "object",
      "properties": {
        "adId": {
          "type": [
            "string",
            "null"
          ]
        },
        "adName": {
          "type": [
            "string",
            "null"
          ]
        },
        "campaignId": {
          "type": [
            "string",
            "null"
          ]
        },
        "campaignName": {
          "type": [
            "string",
            "null"
          ]
        },
        "impressions": {
          "type": "integer",
          "format": "int64"
        },
        "clicks": {
          "type": "integer",
          "format": "int64"
        },
        "spend": {
          "type": "number",
          "format": "double"
        },
        "ctr": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "cpc": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "cpm": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        }
      },
      "additionalProperties": false
    },
    "MediaAssetDetailedReportResponse": {
      "type": "object",
      "properties": {
        "mediaAssetId": {
          "type": [
            "string",
            "null"
          ]
        },
        "mediaAssetName": {
          "type": [
            "string",
            "null"
          ]
        },
        "assetType": {
          "type": [
            "string",
            "null"
          ]
        },
        "impressions": {
          "type": "integer",
          "format": "int64"
        },
        "clicks": {
          "type": "integer",
          "format": "int64"
        },
        "spend": {
          "type": "number",
          "format": "double"
        },
        "ctr": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "cpc": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "cpm": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "dateRange": {
          "$ref": "#/$defs/DateRangeResponse"
        },
        "ads": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/MediaAssetAdMetricsResponse"
          }
        },
        "daily": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/TimeSeriesPointResponse"
          }
        }
      },
      "additionalProperties": false
    },
    "TimeSeriesPointResponse": {
      "type": "object",
      "properties": {
        "date": {
          "type": [
            "string",
            "null"
          ]
        },
        "impressions": {
          "type": "integer",
          "format": "int64"
        },
        "clicks": {
          "type": "integer",
          "format": "int64"
        },
        "spend": {
          "type": "number",
          "format": "double"
        },
        "uniqueViewers": {
          "type": "integer",
          "format": "int64"
        },
        "ctr": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "cpc": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "cpm": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        }
      },
      "additionalProperties": false
    }
  }
}