# REST Resource: accounts.projects.deliveries

- [Resource: Delivery](https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#Delivery)
  - [JSON representation](https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#Delivery.SCHEMA_REPRESENTATION)
- [S3Destination](https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#S3Destination)
  - [JSON representation](https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#S3Destination.SCHEMA_REPRESENTATION)
- [GcsDestination](https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#GcsDestination)
  - [JSON representation](https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#GcsDestination.SCHEMA_REPRESENTATION)
- [SftpDestination](https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#SftpDestination)
  - [JSON representation](https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#SftpDestination.SCHEMA_REPRESENTATION)
- [DeliveryMetadata](https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#DeliveryMetadata)
  - [JSON representation](https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#DeliveryMetadata.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#METHODS_SUMMARY)

## Resource: Delivery

Represents a delivery of MMM data to a customer.

| JSON representation |
|---|
| ``` { "name": string, "deliveryId": string, "createTime": string, "startDate": { object (`https://developers.google.com/mmm-data-platform/reference/rest/v0/Date`) }, "endDate": { object (`https://developers.google.com/mmm-data-platform/reference/rest/v0/Date`) }, "fileCount": integer, "deliveryMetadata": [ { object (`https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#DeliveryMetadata`) } ], // Union field `destination` can be only one of the following: "s3Destination": { object (`https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#S3Destination`) }, "gcsDestination": { object (`https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#GcsDestination`) }, "sftpDestination": { object (`https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#SftpDestination`) } // End of list of possible types for union field `destination`. } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Identifier. The unique name of this delivery resource. Format: `accounts/{account}/projects/{project}/deliveries/{delivery}` |
| `deliveryId` | `string` Output only. The ID of this delivery. Corresponds to the `{delivery}` segment in the resource name. Must be a UUID. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The instant when the delivery was completed. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `startDate` | ``object (`https://developers.google.com/mmm-data-platform/reference/rest/v0/Date`)`` Output only. The start date for the date range covered by the delivery. The delivered reports may not include all dates if no campaigns were active on certain days within the range. |
| `endDate` | ``object (`https://developers.google.com/mmm-data-platform/reference/rest/v0/Date`)`` Output only. The end date for the date range covered by the delivery. The delivered reports may not include all dates if no campaigns were active on certain days within the range. |
| `fileCount` | `integer` Output only. How many files were included in this delivery. |
| `deliveryMetadata[]` | ``object (`https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#DeliveryMetadata`)`` Output only. The metadata about the files in this delivery. |
| Union field `destination`. The data lake destination of the files in this delivery. `destination` can be only one of the following: ||
| `s3Destination` | ``object (`https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#S3Destination`)`` The S3 destination where the files were delivered. |
| `gcsDestination` | ``object (`https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#GcsDestination`)`` The Google Cloud Storage destination where the files were delivered. |
| `sftpDestination` | ``object (`https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries#SftpDestination`)`` The SFTP destination where the files were delivered. |

## S3Destination

The S3 destination where the files were delivered.

| JSON representation |
|---|
| ``` { "bucket": string, "prefix": string } ``` |

| Fields ||
|---|---|
| `bucket` | `string` The name of the S3 bucket where the files were delivered. |
| `prefix` | `string` The prefix of the files in the S3 bucket. |

## GcsDestination

The Google Cloud Storage destination where the files were delivered.

| JSON representation |
|---|
| ``` { "bucket": string, "prefix": string } ``` |

| Fields ||
|---|---|
| `bucket` | `string` The name of the Cloud Storage bucket where the files were delivered. |
| `prefix` | `string` The prefix of the files in the Cloud Storage bucket. |

## SftpDestination

The SFTP destination where the files were delivered.

| JSON representation |
|---|
| ``` { "host": string, "port": string, "path": string } ``` |

| Fields ||
|---|---|
| `host` | `string` The name of the SFTP server where the files were delivered. |
| `port` | `string (https://developers.google.com/discovery/v1/type-format format)` The port of the SFTP server. |
| `path` | `string` The path of the files in the SFTP server. |

## DeliveryMetadata

Metadata about a delivery.

| JSON representation |
|---|
| ``` { "reportType": enum (`https://developers.google.com/mmm-data-platform/reference/rest/v0/ReportType`), "fileCount": integer, "recordCount": string } ``` |

| Fields ||
|---|---|
| `reportType` | ``enum (`https://developers.google.com/mmm-data-platform/reference/rest/v0/ReportType`)`` Report type of the data in the delivery. |
| `fileCount` | `integer` Number of files in the delivery for this particular report type. |
| `recordCount` | `string (https://developers.google.com/discovery/v1/type-format format)` Total number of records in the delivery for this particular report type. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries/get` | Gets a delivery for a given project. |
| ### `https://developers.google.com/mmm-data-platform/reference/rest/v0/accounts.projects.deliveries/list` | Lists deliveries for a given project. |