{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adcritter-com/json-schema/adcritter-com-ad-response-response-schema.json",
  "title": "AdResponseResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adcritter-com-ads-api-openapi.yml#/components/schemas/AdResponseResponse",
  "type": "object",
  "properties": {
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "errors": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Error"
      }
    },
    "data": {
      "$ref": "#/$defs/AdResponse"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "AdDimensionsResponse": {
      "type": "object",
      "properties": {
        "width": {
          "type": "integer",
          "format": "int32"
        },
        "height": {
          "type": "integer",
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "AdResponse": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "adType": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "destinationUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "adUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "dimensions": {
          "$ref": "#/$defs/AdDimensionsResponse"
        },
        "campaignId": {
          "type": [
            "string",
            "null"
          ]
        },
        "mediaAssetId": {
          "type": [
            "string",
            "null"
          ]
        },
        "headline": {
          "type": [
            "string",
            "null"
          ]
        },
        "body": {
          "type": [
            "string",
            "null"
          ]
        },
        "companyName": {
          "type": [
            "string",
            "null"
          ]
        },
        "callToAction": {
          "type": [
            "string",
            "null"
          ]
        },
        "audioDetails": {
          "$ref": "#/$defs/AudioDetailsResponse"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "AudioDetailsResponse": {
      "type": "object",
      "properties": {
        "uploadedUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "duration": {
          "type": "number",
          "format": "double"
        },
        "fileSize": {
          "type": "integer",
          "format": "int64"
        }
      },
      "additionalProperties": false
    },
    "Error": {
      "type": "object",
      "properties": {
        "code": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}