[<button style="margin-top:15px">Help me build a query</button>](https://developers.google.com/google-ads/api/fields/v26/media_file_query_builder) [<button style="margin-top:15px">Proto definition ![GitHub](https://developers.google.com/site-assets/logo-github.svg)</button>](https://github.com/googleapis/googleapis/blob/master/google/ads/googleads/v26/resources/media_file.proto)

A media file.

| Attributed resources |
|---|
| [customer](https://developers.google.com/google-ads/api/fields/v26/customer) |

Fields from the above resources may be selected along with this
resource in your SELECT and WHERE clauses. These fields **will not segment**
metrics in your `SELECT` clause.

## media_file.audio.ad_duration_millis

Field descriptionOutput only. The duration of the Audio in milliseconds.
Category`ATTRIBUTE` Data Type`INT64` Type URL`N/A` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[media_file](https://developers.google.com/google-ads/api/fields/v26/media_file)

## media_file.file_size

Field descriptionOutput only. The size of the media file in bytes.
Category`ATTRIBUTE` Data Type`INT64` Type URL`N/A` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[media_file](https://developers.google.com/google-ads/api/fields/v26/media_file)

## media_file.id

Field descriptionOutput only. The ID of the media file.
Category`ATTRIBUTE` Data Type`INT64` Type URL`N/A` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[media_file](https://developers.google.com/google-ads/api/fields/v26/media_file)

## media_file.image.full_size_image_url

Field descriptionOutput only. The url to the full size version of the image.
Category`ATTRIBUTE` Data Type`STRING` Type URL`N/A` FilterableTrue SelectableTrue SortableFalse RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[media_file](https://developers.google.com/google-ads/api/fields/v26/media_file)

## media_file.image.preview_size_image_url

Field descriptionOutput only. The url to the preview size version of the image.
Category`ATTRIBUTE` Data Type`STRING` Type URL`N/A` FilterableTrue SelectableTrue SortableFalse RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[media_file](https://developers.google.com/google-ads/api/fields/v26/media_file)

## media_file.media_bundle.url

Field descriptionOutput only. The url to access the uploaded zipped data.
For example, <https://tpc.googlesyndication.com/simgad/123>
This field is read-only.
Category`ATTRIBUTE` Data Type`STRING` Type URL`N/A` FilterableTrue SelectableTrue SortableFalse RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[media_file](https://developers.google.com/google-ads/api/fields/v26/media_file)

## media_file.mime_type

Field descriptionOutput only. The mime type of the media file.
Category`ATTRIBUTE` Data Type `ENUM`
`AUDIO_MP3``AUDIO_WAV``FLASH``HTML5_AD_ZIP``IMAGE_GIF``IMAGE_JPEG``IMAGE_PNG``MSEXCEL``MSWORD``PDF``RTF``TEXT_HTML``UNKNOWN``UNSPECIFIED` Type URL`https://developers.google.com/google-ads/api/reference/rpc/v26/MimeTypeEnum.MimeType` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[media_file](https://developers.google.com/google-ads/api/fields/v26/media_file)

## media_file.name

Field descriptionImmutable. The name of the media file. The name can be used by clients to
help identify previously uploaded media.
Category`ATTRIBUTE` Data Type`STRING` Type URL`N/A` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[media_file](https://developers.google.com/google-ads/api/fields/v26/media_file)

## media_file.resource_name

Field descriptionImmutable. The resource name of the media file.
Media file resource names have the form:

`customers/{customer_id}/mediaFiles/{media_file_id}`
Category`ATTRIBUTE` Data Type`RESOURCE_NAME` Type URL`N/A` FilterableTrue SelectableTrue SortableFalse RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[media_file](https://developers.google.com/google-ads/api/fields/v26/media_file)

## media_file.source_url

Field descriptionImmutable. The URL of where the original media file was downloaded from (or
a file name). Only used for media of type AUDIO and IMAGE.
Category`ATTRIBUTE` Data Type`STRING` Type URL`N/A` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[media_file](https://developers.google.com/google-ads/api/fields/v26/media_file)

## media_file.type

Field descriptionImmutable. Type of the media file.
Category`ATTRIBUTE` Data Type `ENUM`
`AUDIO``DYNAMIC_IMAGE``ICON``IMAGE``MEDIA_BUNDLE``UNKNOWN``UNSPECIFIED``VIDEO` Type URL`https://developers.google.com/google-ads/api/reference/rpc/v26/MediaTypeEnum.MediaType` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[media_file](https://developers.google.com/google-ads/api/fields/v26/media_file)

## media_file.video.ad_duration_millis

Field descriptionOutput only. The duration of the Video in milliseconds.
Category`ATTRIBUTE` Data Type`INT64` Type URL`N/A` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[media_file](https://developers.google.com/google-ads/api/fields/v26/media_file)

## media_file.video.advertising_id_code

Field descriptionOutput only. The Advertising Digital Identification code for this video, as
defined by the American Association of Advertising Agencies, used mainly
for television commercials.
Category`ATTRIBUTE` Data Type`STRING` Type URL`N/A` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[media_file](https://developers.google.com/google-ads/api/fields/v26/media_file)

## media_file.video.isci_code

Field descriptionOutput only. The Industry Standard Commercial Identifier code for this
video, used mainly for television commercials.
Category`ATTRIBUTE` Data Type`STRING` Type URL`N/A` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[media_file](https://developers.google.com/google-ads/api/fields/v26/media_file)

## media_file.video.youtube_video_id

Field descriptionImmutable. The YouTube video ID (as seen in YouTube URLs). Adding prefix
"https://www.youtube.com/watch?v=" to this ID will get the YouTube
streaming URL for this video.
Category`ATTRIBUTE` Data Type`STRING` Type URL`N/A` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[media_file](https://developers.google.com/google-ads/api/fields/v26/media_file)