1 // Copyright 2019 Google LLC.
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
18 package google.ads.googleads.v1.errors;
20 import "google/api/annotations.proto";
22 option csharp_namespace = "Google.Ads.GoogleAds.V1.Errors";
23 option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors";
24 option java_multiple_files = true;
25 option java_outer_classname = "MediaFileErrorProto";
26 option java_package = "com.google.ads.googleads.v1.errors";
27 option objc_class_prefix = "GAA";
28 option php_namespace = "Google\\Ads\\GoogleAds\\V1\\Errors";
29 option ruby_package = "Google::Ads::GoogleAds::V1::Errors";
30 // Proto file describing media file errors.
32 // Container for enum describing possible media file errors.
33 message MediaFileErrorEnum {
34 // Enum describing possible media file errors.
39 // The received error code is not known in this version.
42 // Cannot create a standard icon type.
43 CANNOT_CREATE_STANDARD_ICON = 2;
45 // May only select Standard Icons alone.
46 CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES = 3;
48 // Image contains both a media file ID and data.
49 CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA = 4;
51 // A media file with given type and reference ID already exists.
54 // A required field was not specified or is an empty string.
57 // A media file may only be modified once per call.
58 RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 7;
60 // Field is not supported for the media sub type.
61 FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE = 8;
63 // The media file ID is invalid.
64 INVALID_MEDIA_FILE_ID = 9;
66 // The media subtype is invalid.
67 INVALID_MEDIA_SUB_TYPE = 10;
69 // The media file type is invalid.
70 INVALID_MEDIA_FILE_TYPE = 11;
72 // The mimetype is invalid.
73 INVALID_MIME_TYPE = 12;
75 // The media reference ID is invalid.
76 INVALID_REFERENCE_ID = 13;
78 // The YouTube video ID is invalid.
79 INVALID_YOU_TUBE_ID = 14;
81 // Media file has failed transcoding
82 MEDIA_FILE_FAILED_TRANSCODING = 15;
84 // Media file has not been transcoded.
85 MEDIA_NOT_TRANSCODED = 16;
87 // The media type does not match the actual media file's type.
88 MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE = 17;
90 // None of the fields have been specified.
91 NO_FIELDS_SPECIFIED = 18;
93 // One of reference ID or media file ID must be specified.
94 NULL_REFERENCE_ID_AND_MEDIA_ID = 19;
96 // The string has too many characters.
99 // The specified type is not supported.
100 UNSUPPORTED_TYPE = 21;
102 // YouTube is unavailable for requesting video data.
103 YOU_TUBE_SERVICE_UNAVAILABLE = 22;
105 // The YouTube video has a non positive duration.
106 YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION = 23;
108 // The YouTube video ID is syntactically valid but the video was not found.
109 YOU_TUBE_VIDEO_NOT_FOUND = 24;