> [!CAUTION]
> **Caution:** This documentation is for Google Ads API **v24** . The latest active version is [**v26**](https://developers.google.com/google-ads/api/reference/rpc/latest/MediaFileErrorEnum.MediaFileError).

Enum describing possible media file errors.

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

| Enums ||
|---|---|
| ## `CANNOT_CREATE_STANDARD_ICON` | Cannot create a standard icon type. |
| ## `CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES` | May only select Standard Icons alone. |
| ## `CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA` | Image contains both a media file ID and data. |
| ## `DUPLICATE_MEDIA` | A media file with given type and reference ID already exists. |
| ## `EMPTY_FIELD` | A required field was not specified or is an empty string. |
| ## `FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE` | Field is not supported for the media sub type. |
| ## `INVALID_MEDIA_FILE_ID` | The media file ID is invalid. |
| ## `INVALID_MEDIA_FILE_TYPE` | The media file type is invalid. |
| ## `INVALID_MEDIA_SUB_TYPE` | The media subtype is invalid. |
| ## `INVALID_MIME_TYPE` | The mimetype is invalid. |
| ## `INVALID_REFERENCE_ID` | The media reference ID is invalid. |
| ## `INVALID_YOU_TUBE_ID` | The YouTube video ID is invalid. |
| ## `MEDIA_FILE_FAILED_TRANSCODING` | Media file has failed transcoding |
| ## `MEDIA_NOT_TRANSCODED` | Media file has not been transcoded. |
| ## `MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE` | The media type does not match the actual media file's type. |
| ## `NO_FIELDS_SPECIFIED` | None of the fields have been specified. |
| ## `NULL_REFERENCE_ID_AND_MEDIA_ID` | One of reference ID or media file ID must be specified. |
| ## `RESOURCE_REFERENCED_IN_MULTIPLE_OPS` | A media file may only be modified once per call. |
| ## `TOO_LONG` | The string has too many characters. |
| ## `UNKNOWN` | The received error code is not known in this version. |
| ## `UNSPECIFIED` | Enum unspecified. |
| ## `UNSUPPORTED_TYPE` | The specified type is not supported. |
| ## `YOU_TUBE_SERVICE_UNAVAILABLE` | YouTube is unavailable for requesting video data. |
| ## `YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION` | The YouTube video has a non positive duration. |
| ## `YOU_TUBE_VIDEO_NOT_FOUND` | The YouTube video ID is syntactically valid but the video was not found. |