asset_link_error.proto 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. // Copyright 2022 Google LLC
  2. //
  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
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  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.
  14. syntax = "proto3";
  15. package google.ads.googleads.v12.errors;
  16. option csharp_namespace = "Google.Ads.GoogleAds.V12.Errors";
  17. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/errors;errors";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "AssetLinkErrorProto";
  20. option java_package = "com.google.ads.googleads.v12.errors";
  21. option objc_class_prefix = "GAA";
  22. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Errors";
  23. option ruby_package = "Google::Ads::GoogleAds::V12::Errors";
  24. // Proto file describing asset link errors.
  25. // Container for enum describing possible asset link errors.
  26. message AssetLinkErrorEnum {
  27. // Enum describing possible asset link errors.
  28. enum AssetLinkError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // Pinning is not supported for the given asset link field.
  34. PINNING_UNSUPPORTED = 2;
  35. // The given field type is not supported to be added directly through asset
  36. // links.
  37. UNSUPPORTED_FIELD_TYPE = 3;
  38. // The given asset's type and the specified field type are incompatible.
  39. FIELD_TYPE_INCOMPATIBLE_WITH_ASSET_TYPE = 4;
  40. // The specified field type is incompatible with the given campaign type.
  41. FIELD_TYPE_INCOMPATIBLE_WITH_CAMPAIGN_TYPE = 5;
  42. // The campaign advertising channel type cannot be associated with the given
  43. // asset due to channel-based restrictions on the asset's fields.
  44. INCOMPATIBLE_ADVERTISING_CHANNEL_TYPE = 6;
  45. // The image asset provided is not within the dimension constraints
  46. // specified for the submitted asset field.
  47. IMAGE_NOT_WITHIN_SPECIFIED_DIMENSION_RANGE = 7;
  48. // The pinned field is not valid for the submitted asset field.
  49. INVALID_PINNED_FIELD = 8;
  50. // The media bundle asset provided is too large for the submitted asset
  51. // field.
  52. MEDIA_BUNDLE_ASSET_FILE_SIZE_TOO_LARGE = 9;
  53. // Not enough assets are available for use with other fields since other
  54. // assets are pinned to specific fields.
  55. NOT_ENOUGH_AVAILABLE_ASSET_LINKS_FOR_VALID_COMBINATION = 10;
  56. // Not enough assets with fallback are available. When validating the
  57. // minimum number of assets, assets without fallback (for example, assets
  58. // that contain location tag without default value "{LOCATION(City)}") will
  59. // not be counted.
  60. NOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK = 11;
  61. // This is a combination of the
  62. // NOT_ENOUGH_AVAILABLE_ASSET_LINKS_FOR_VALID_COMBINATION and
  63. // NOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK errors. Not enough assets
  64. // with fallback are available since some assets are pinned.
  65. NOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK_FOR_VALID_COMBINATION = 12;
  66. // The YouTube video referenced in the provided asset has been removed.
  67. YOUTUBE_VIDEO_REMOVED = 13;
  68. // The YouTube video referenced in the provided asset is too long for the
  69. // field submitted.
  70. YOUTUBE_VIDEO_TOO_LONG = 14;
  71. // The YouTube video referenced in the provided asset is too short for the
  72. // field submitted.
  73. YOUTUBE_VIDEO_TOO_SHORT = 15;
  74. // The specified field type is excluded for given campaign or ad group.
  75. EXCLUDED_PARENT_FIELD_TYPE = 16;
  76. // The status is invalid for the operation specified.
  77. INVALID_STATUS = 17;
  78. // The YouTube video referenced in the provided asset has unknown duration.
  79. // This might be the case for a livestream video or a video being currently
  80. // uploaded to YouTube. In both cases, the video duration should eventually
  81. // get resolved.
  82. YOUTUBE_VIDEO_DURATION_NOT_DEFINED = 18;
  83. // User cannot create automatically created links.
  84. CANNOT_CREATE_AUTOMATICALLY_CREATED_LINKS = 19;
  85. // Advertiser links cannot link to automatically created asset.
  86. CANNOT_LINK_TO_AUTOMATICALLY_CREATED_ASSET = 20;
  87. // Automatically created links cannot be changed into adveritser links or
  88. // the reverse.
  89. CANNOT_MODIFY_ASSET_LINK_SOURCE = 21;
  90. }
  91. }