A media file.

[Proto definition ![GitHub](https://developers.google.com/site-assets/logo-github.svg)](https://github.com/googleapis/googleapis/blob/master/google/ads/googleads/v25/resources/media_file.proto)

| Fields ||
|---|---|
| ## `file_size` | `int64` Output only. The size of the media file in bytes. |
| ## `id` | `int64` Output only. The ID of the media file. |
| ## `mediatype` Union field. The specific type of the media file. `mediatype` can be only one of the following: ||
| ### `audio` | `https://developers.google.com/google-ads/api/reference/rpc/v25/MediaAudio` Output only. Encapsulates an Audio. |
| ### `image` | `https://developers.google.com/google-ads/api/reference/rpc/v25/MediaImage` Immutable. Encapsulates an Image. |
| ### `media_bundle` | `https://developers.google.com/google-ads/api/reference/rpc/v25/MediaBundle` Immutable. A ZIP archive media the content of which contains HTML5 assets. |
| ### `video` | `https://developers.google.com/google-ads/api/reference/rpc/v25/MediaVideo` Immutable. Encapsulates a Video. |
| ## `mime_type` | `https://developers.google.com/google-ads/api/reference/rpc/v25/MimeTypeEnum.MimeType` Output only. The mime type of the media file. |
| ## `name` | `string` Immutable. The name of the media file. The name can be used by clients to help identify previously uploaded media. |
| ## `resource_name` | `string` Immutable. The resource name of the media file. Media file resource names have the form: `customers/{customer_id}/mediaFiles/{media_file_id}` |
| ## `source_url` | `string` Immutable. The URL of where the original media file was downloaded from (or a file name). Only used for media of type AUDIO and IMAGE. |
| ## `type` | `https://developers.google.com/google-ads/api/reference/rpc/v25/MediaTypeEnum.MediaType` Immutable. Type of the media file. |