{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-campaign-manager/json-schema/google-campaign-manager-file-list-schema.json",
  "title": "FileList",
  "description": "List of files for a report.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-campaign-manager-files-api-openapi.yml#/components/schemas/FileList",
  "type": "object",
  "properties": {
    "kind": {
      "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#fileList\".",
      "type": "string"
    },
    "nextPageToken": {
      "type": "string",
      "description": "Continuation token used to page through files. To retrieve the next page of results, set the next request's \"pageToken\" to the value of this field. The page token is only valid for a limited amount of time and should not be persisted."
    },
    "etag": {
      "type": "string",
      "description": "Etag of this resource."
    },
    "items": {
      "type": "array",
      "description": "The files returned in this response.",
      "items": {
        "$ref": "#/$defs/File"
      }
    }
  },
  "$defs": {
    "DateRange": {
      "properties": {
        "endDate": {
          "type": "string",
          "format": "date"
        },
        "kind": {
          "description": "The kind of resource this is, in this case dfareporting#dateRange.",
          "type": "string"
        },
        "startDate": {
          "format": "date",
          "type": "string"
        },
        "relativeDateRange": {
          "description": "The date range relative to the date of when the report is run.",
          "type": "string",
          "enum": [
            "TODAY",
            "YESTERDAY",
            "WEEK_TO_DATE",
            "MONTH_TO_DATE",
            "QUARTER_TO_DATE",
            "YEAR_TO_DATE",
            "PREVIOUS_WEEK",
            "PREVIOUS_MONTH",
            "PREVIOUS_QUARTER",
            "PREVIOUS_YEAR",
            "LAST_7_DAYS",
            "LAST_30_DAYS",
            "LAST_90_DAYS",
            "LAST_365_DAYS",
            "LAST_24_MONTHS",
            "LAST_14_DAYS",
            "LAST_60_DAYS"
          ]
        }
      },
      "type": "object",
      "description": "Represents a date range."
    },
    "File": {
      "description": "Represents a File resource. A file contains the metadata for a report run. It shows the status of the run and holds the URLs to the generated report data if the run is finished and the status is \"REPORT_AVAILABLE\".",
      "properties": {
        "format": {
          "enum": [
            "CSV",
            "EXCEL"
          ],
          "type": "string",
          "description": "The output format of the report. Only available once the file is available."
        },
        "status": {
          "enum": [
            "PROCESSING",
            "REPORT_AVAILABLE",
            "FAILED",
            "CANCELLED",
            "QUEUED"
          ],
          "type": "string",
          "description": "The status of the report file."
        },
        "dateRange": {
          "$ref": "#/$defs/DateRange",
          "description": "The date range for which the file has report data. The date range will always be the absolute date range for which the report is run."
        },
        "id": {
          "type": "string",
          "description": "The unique ID of this report file.",
          "format": "int64"
        },
        "urls": {
          "type": "object",
          "description": "The URLs where the completed report file can be downloaded.",
          "properties": {
            "browserUrl": {
              "description": "The URL for downloading the report data through a browser.",
              "type": "string"
            },
            "apiUrl": {
              "description": "The URL for downloading the report data through the API.",
              "type": "string"
            }
          }
        },
        "fileName": {
          "description": "The filename of the file.",
          "type": "string"
        },
        "lastModifiedTime": {
          "format": "int64",
          "description": "The timestamp in milliseconds since epoch when this file was last modified.",
          "type": "string"
        },
        "kind": {
          "type": "string",
          "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#file\"."
        },
        "reportId": {
          "description": "The ID of the report this file was generated from.",
          "format": "int64",
          "type": "string"
        },
        "etag": {
          "description": "Etag of this resource.",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}