- [JSON representation](https://developers.google.com/doubleclick-advertisers/rest/v5/File#SCHEMA_REPRESENTATION)
- [Status](https://developers.google.com/doubleclick-advertisers/rest/v5/File#Status)
- [Format](https://developers.google.com/doubleclick-advertisers/rest/v5/File#Format)

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"`.

| JSON representation |
|---|
| ``` { "id": string, "reportId": string, "etag": string, "status": enum (`https://developers.google.com/doubleclick-advertisers/rest/v5/File#Status`), "fileName": string, "kind": string, "dateRange": { object (`https://developers.google.com/doubleclick-advertisers/rest/v5/DateRange`) }, "format": enum (`https://developers.google.com/doubleclick-advertisers/rest/v5/File#Format`), "lastModifiedTime": string, "urls": { "browserUrl": string, "apiUrl": string } } ``` |

| Fields ||
|---|---|
| `id` | `string (https://developers.google.com/discovery/v1/type-format format)` The unique ID of this report file. |
| `reportId` | `string (https://developers.google.com/discovery/v1/type-format format)` The ID of the report this file was generated from. |
| `etag` | `string` Etag of this resource. |
| `status` | ``enum (`https://developers.google.com/doubleclick-advertisers/rest/v5/File#Status`)`` The status of the report file. |
| `fileName` | `string` The filename of the file. |
| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string `"dfareporting#file"`. |
| `dateRange` | ``object (`https://developers.google.com/doubleclick-advertisers/rest/v5/DateRange`)`` 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. |
| `format` | ``enum (`https://developers.google.com/doubleclick-advertisers/rest/v5/File#Format`)`` The output format of the report. Only available once the file is available. |
| `lastModifiedTime` | `string (https://developers.google.com/discovery/v1/type-format format)` The timestamp in milliseconds since epoch when this file was last modified. |
| `urls` | `object` The URLs where the completed report file can be downloaded. |
| `urls.browserUrl` | `string` The URL for downloading the report data through a browser. |
| `urls.apiUrl` | `string` The URL for downloading the report data through the API. |

## Status

| Enums ||
|---|---|
| `PROCESSING` |   |
| `REPORT_AVAILABLE` |   |
| `FAILED` |   |
| `CANCELLED` |   |
| `QUEUED` |   |

## Format

| Enums ||
|---|---|
| `CSV` |   |
| `EXCEL` |   |