campaign_error.proto 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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 = "CampaignErrorProto";
  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 campaign errors.
  25. // Container for enum describing possible campaign errors.
  26. message CampaignErrorEnum {
  27. // Enum describing possible campaign errors.
  28. enum CampaignError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // Cannot target content network.
  34. CANNOT_TARGET_CONTENT_NETWORK = 3;
  35. // Cannot target search network.
  36. CANNOT_TARGET_SEARCH_NETWORK = 4;
  37. // Cannot cover search network without google search network.
  38. CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH = 5;
  39. // Cannot target Google Search network for a CPM campaign.
  40. CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN = 6;
  41. // Must target at least one network.
  42. CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK = 7;
  43. // Only some Google partners are allowed to target partner search network.
  44. CANNOT_TARGET_PARTNER_SEARCH_NETWORK = 8;
  45. // Cannot target content network only as campaign has criteria-level bidding
  46. // strategy.
  47. CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY = 9;
  48. // Cannot modify the start or end date such that the campaign duration would
  49. // not contain the durations of all runnable trials.
  50. CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS = 10;
  51. // Cannot modify dates, budget or status of a trial campaign.
  52. CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN = 11;
  53. // Trying to modify the name of an active or paused campaign, where the name
  54. // is already assigned to another active or paused campaign.
  55. DUPLICATE_CAMPAIGN_NAME = 12;
  56. // Two fields are in conflicting modes.
  57. INCOMPATIBLE_CAMPAIGN_FIELD = 13;
  58. // Campaign name cannot be used.
  59. INVALID_CAMPAIGN_NAME = 14;
  60. // Given status is invalid.
  61. INVALID_AD_SERVING_OPTIMIZATION_STATUS = 15;
  62. // Error in the campaign level tracking URL.
  63. INVALID_TRACKING_URL = 16;
  64. // Cannot set both tracking URL template and tracking setting. A user has
  65. // to clear legacy tracking setting in order to add tracking URL template.
  66. CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING = 17;
  67. // The maximum number of impressions for Frequency Cap should be an integer
  68. // greater than 0.
  69. MAX_IMPRESSIONS_NOT_IN_RANGE = 18;
  70. // Only the Day, Week and Month time units are supported.
  71. TIME_UNIT_NOT_SUPPORTED = 19;
  72. // Operation not allowed on a campaign whose serving status has ended
  73. INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED = 20;
  74. // This budget is exclusively linked to a Campaign that is using experiments
  75. // so it cannot be shared.
  76. BUDGET_CANNOT_BE_SHARED = 21;
  77. // Campaigns using experiments cannot use a shared budget.
  78. CAMPAIGN_CANNOT_USE_SHARED_BUDGET = 22;
  79. // A different budget cannot be assigned to a campaign when there are
  80. // running or scheduled trials.
  81. CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS = 23;
  82. // No link found between the campaign and the label.
  83. CAMPAIGN_LABEL_DOES_NOT_EXIST = 24;
  84. // The label has already been attached to the campaign.
  85. CAMPAIGN_LABEL_ALREADY_EXISTS = 25;
  86. // A ShoppingSetting was not found when creating a shopping campaign.
  87. MISSING_SHOPPING_SETTING = 26;
  88. // The country in shopping setting is not an allowed country.
  89. INVALID_SHOPPING_SALES_COUNTRY = 27;
  90. // The requested channel type is not available according to the customer's
  91. // account setting.
  92. ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE = 31;
  93. // The AdvertisingChannelSubType is not a valid subtype of the primary
  94. // channel type.
  95. INVALID_ADVERTISING_CHANNEL_SUB_TYPE = 32;
  96. // At least one conversion must be selected.
  97. AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED = 33;
  98. // Setting ad rotation mode for a campaign is not allowed. Ad rotation mode
  99. // at campaign is deprecated.
  100. CANNOT_SET_AD_ROTATION_MODE = 34;
  101. // Trying to change start date on a campaign that has started.
  102. CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = 35;
  103. // Trying to modify a date into the past.
  104. CANNOT_SET_DATE_TO_PAST = 36;
  105. // Hotel center id in the hotel setting does not match any customer links.
  106. MISSING_HOTEL_CUSTOMER_LINK = 37;
  107. // Hotel center id in the hotel setting must match an active customer link.
  108. INVALID_HOTEL_CUSTOMER_LINK = 38;
  109. // Hotel setting was not found when creating a hotel ads campaign.
  110. MISSING_HOTEL_SETTING = 39;
  111. // A Campaign cannot use shared campaign budgets and be part of a campaign
  112. // group.
  113. CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP = 40;
  114. // The app ID was not found.
  115. APP_NOT_FOUND = 41;
  116. // Campaign.shopping_setting.enable_local is not supported for the specified
  117. // campaign type.
  118. SHOPPING_ENABLE_LOCAL_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE = 42;
  119. // The merchant does not support the creation of campaigns for Shopping
  120. // Comparison Listing Ads.
  121. MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS = 43;
  122. // The App campaign for engagement cannot be created because there aren't
  123. // enough installs.
  124. INSUFFICIENT_APP_INSTALLS_COUNT = 44;
  125. // The App campaign for engagement cannot be created because the app is
  126. // sensitive.
  127. SENSITIVE_CATEGORY_APP = 45;
  128. // Customers with Housing, Employment, or Credit ads must accept updated
  129. // personalized ads policy to continue creating campaigns.
  130. HEC_AGREEMENT_REQUIRED = 46;
  131. // The field is not compatible with view through conversion optimization.
  132. NOT_COMPATIBLE_WITH_VIEW_THROUGH_CONVERSION_OPTIMIZATION = 49;
  133. // The field type cannot be excluded because an active campaign-asset link
  134. // of this type exists.
  135. INVALID_EXCLUDED_PARENT_ASSET_FIELD_TYPE = 48;
  136. // The app pre-registration campaign cannot be created for non-Android
  137. // applications.
  138. CANNOT_CREATE_APP_PRE_REGISTRATION_FOR_NON_ANDROID_APP = 50;
  139. // The campaign cannot be created since the app is not available for
  140. // pre-registration in any country.
  141. APP_NOT_AVAILABLE_TO_CREATE_APP_PRE_REGISTRATION_CAMPAIGN = 51;
  142. // The type of the Budget is not compatible with this Campaign.
  143. INCOMPATIBLE_BUDGET_TYPE = 52;
  144. // Category bid list in the local services campaign setting contains
  145. // multiple bids for the same category ID.
  146. LOCAL_SERVICES_DUPLICATE_CATEGORY_BID = 53;
  147. // Category bid list in the local services campaign setting contains
  148. // a bid for an invalid category ID.
  149. LOCAL_SERVICES_INVALID_CATEGORY_BID = 54;
  150. // Category bid list in the local services campaign setting is missing a
  151. // bid for a category ID that must be present.
  152. LOCAL_SERVICES_MISSING_CATEGORY_BID = 55;
  153. }
  154. }