aboutsummaryrefslogtreecommitdiff
path: root/google/ads/googleads/v0/errors/media_error.proto
blob: db5dc0a35f35ecdb8815cb1485d1f6713a0641f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
// implied. See the License for the specific language governing
// permissions and limitations under the License.


// Proto file describing media errors.
syntax = "proto3";

package google.ads.googleads.v0.errors;

option java_package = "com.google.ads.googleads.v0.errors";
option java_outer_classname = "MediaErrorProto";
option java_multiple_files = true;

// Objective-C prefix. Google Ads API.
option objc_class_prefix = "GAA";
option csharp_namespace = "Google.Ads.GoogleAds.V0.Errors";
option php_namespace = "Google\\Ads\\GoogleAds\\V0\\Errors";
option php_metadata_namespace = "Google\\Ads\\GoogleAds\\V0\\Errors";

// Container for enum describing possible media errors.
message MediaErrorEnum {

  // Enum describing possible media errors.
  enum MediaError {
    // Enum unspecified.
    UNSPECIFIED = 0;
    // The received error code is not known in this version.
    UNKNOWN = 1;
    // Cannot add a standard icon type
    CANNOT_ADD_STANDARD_ICON = 2;
    // May only select Standard Icons alone
    CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES = 3;
    // Image contains both a media ID and media data.
    CANNOT_SPECIFY_MEDIA_ID_AND_DATA = 4;
    // A media with given type and reference id already exists
    DUPLICATE_MEDIA = 5;
    // A required field was not specified or is an empty string.
    EMPTY_FIELD = 6;
    // A media may only be modified once per call
    RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 7;
    // Field is not supported for the media sub type.
    FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE = 8;
    // The media id is invalid
    INVALID_MEDIA_ID = 9;
    // The media subtype is invalid
    INVALID_MEDIA_SUB_TYPE = 10;
    // The media type is invalid
    INVALID_MEDIA_TYPE = 11;
    // The mimetype is invalid
    INVALID_MIME_TYPE = 12;
    // The media reference id is invalid
    INVALID_REFERENCE_ID = 13;
    // The YouTube video id is invalid
    INVALID_YOU_TUBE_ID = 14;
    // Media has failed transcoding
    MEDIA_FAILED_TRANSCODING = 15;
    // Media has not been transcoded
    MEDIA_NOT_TRANSCODED = 16;
    // The MediaType does not match the actual media object's type
    MEDIA_TYPE_DOES_NOT_MATCH_OBJECT_TYPE = 17;
    // None of the fields have been specified.
    NO_FIELDS_SPECIFIED = 18;
    // One of reference Id or media Id must be specified
    NULL_REFERENCE_ID_AND_MEDIA_ID = 19;
    // The string has too many characters.
    TOO_LONG = 20;
    // The specified operation is not supported. Only ADD, SET, and REMOVE are
    // supported
    UNSUPPORTED_OPERATION = 21;
    // The specified type is not supported.
    UNSUPPORTED_TYPE = 22;
    // YouTube is unavailable for requesting video data.
    YOU_TUBE_SERVICE_UNAVAILABLE = 23;
    // The YouTube video has a non positive duration.
    YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION = 24;
    // The YouTube video id is syntactically valid but the video was not found.
    YOU_TUBE_VIDEO_NOT_FOUND = 25;
  }
}