1// Copyright 2023 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 15syntax = "proto3"; 16 17package google.ads.googleads.v14.errors; 18 19option csharp_namespace = "Google.Ads.GoogleAds.V14.Errors"; 20option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v14/errors;errors"; 21option java_multiple_files = true; 22option java_outer_classname = "CampaignErrorProto"; 23option java_package = "com.google.ads.googleads.v14.errors"; 24option objc_class_prefix = "GAA"; 25option php_namespace = "Google\\Ads\\GoogleAds\\V14\\Errors"; 26option ruby_package = "Google::Ads::GoogleAds::V14::Errors"; 27 28// Proto file describing campaign errors. 29 30// Container for enum describing possible campaign errors. 31message CampaignErrorEnum { 32 // Enum describing possible campaign errors. 33 enum CampaignError { 34 // Enum unspecified. 35 UNSPECIFIED = 0; 36 37 // The received error code is not known in this version. 38 UNKNOWN = 1; 39 40 // Cannot target content network. 41 CANNOT_TARGET_CONTENT_NETWORK = 3; 42 43 // Cannot target search network. 44 CANNOT_TARGET_SEARCH_NETWORK = 4; 45 46 // Cannot cover search network without google search network. 47 CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH = 5; 48 49 // Cannot target Google Search network for a CPM campaign. 50 CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN = 6; 51 52 // Must target at least one network. 53 CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK = 7; 54 55 // Only some Google partners are allowed to target partner search network. 56 CANNOT_TARGET_PARTNER_SEARCH_NETWORK = 8; 57 58 // Cannot target content network only as campaign has criteria-level bidding 59 // strategy. 60 CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY = 9; 61 62 // Cannot modify the start or end date such that the campaign duration would 63 // not contain the durations of all runnable trials. 64 CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS = 10; 65 66 // Cannot modify dates, budget or status of a trial campaign. 67 CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN = 11; 68 69 // Trying to modify the name of an active or paused campaign, where the name 70 // is already assigned to another active or paused campaign. 71 DUPLICATE_CAMPAIGN_NAME = 12; 72 73 // Two fields are in conflicting modes. 74 INCOMPATIBLE_CAMPAIGN_FIELD = 13; 75 76 // Campaign name cannot be used. 77 INVALID_CAMPAIGN_NAME = 14; 78 79 // Given status is invalid. 80 INVALID_AD_SERVING_OPTIMIZATION_STATUS = 15; 81 82 // Error in the campaign level tracking URL. 83 INVALID_TRACKING_URL = 16; 84 85 // Cannot set both tracking URL template and tracking setting. A user has 86 // to clear legacy tracking setting in order to add tracking URL template. 87 CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING = 17; 88 89 // The maximum number of impressions for Frequency Cap should be an integer 90 // greater than 0. 91 MAX_IMPRESSIONS_NOT_IN_RANGE = 18; 92 93 // Only the Day, Week and Month time units are supported. 94 TIME_UNIT_NOT_SUPPORTED = 19; 95 96 // Operation not allowed on a campaign whose serving status has ended 97 INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED = 20; 98 99 // This budget is exclusively linked to a Campaign that is using experiments 100 // so it cannot be shared. 101 BUDGET_CANNOT_BE_SHARED = 21; 102 103 // Campaigns using experiments cannot use a shared budget. 104 CAMPAIGN_CANNOT_USE_SHARED_BUDGET = 22; 105 106 // A different budget cannot be assigned to a campaign when there are 107 // running or scheduled trials. 108 CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS = 23; 109 110 // No link found between the campaign and the label. 111 CAMPAIGN_LABEL_DOES_NOT_EXIST = 24; 112 113 // The label has already been attached to the campaign. 114 CAMPAIGN_LABEL_ALREADY_EXISTS = 25; 115 116 // A ShoppingSetting was not found when creating a shopping campaign. 117 MISSING_SHOPPING_SETTING = 26; 118 119 // The country in shopping setting is not an allowed country. 120 INVALID_SHOPPING_SALES_COUNTRY = 27; 121 122 // The requested channel type is not available according to the customer's 123 // account setting. 124 ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE = 31; 125 126 // The AdvertisingChannelSubType is not a valid subtype of the primary 127 // channel type. 128 INVALID_ADVERTISING_CHANNEL_SUB_TYPE = 32; 129 130 // At least one conversion must be selected. 131 AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED = 33; 132 133 // Setting ad rotation mode for a campaign is not allowed. Ad rotation mode 134 // at campaign is deprecated. 135 CANNOT_SET_AD_ROTATION_MODE = 34; 136 137 // Trying to change start date on a campaign that has started. 138 CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = 35; 139 140 // Trying to modify a date into the past. 141 CANNOT_SET_DATE_TO_PAST = 36; 142 143 // Hotel center id in the hotel setting does not match any customer links. 144 MISSING_HOTEL_CUSTOMER_LINK = 37; 145 146 // Hotel center id in the hotel setting must match an active customer link. 147 INVALID_HOTEL_CUSTOMER_LINK = 38; 148 149 // Hotel setting was not found when creating a hotel ads campaign. 150 MISSING_HOTEL_SETTING = 39; 151 152 // A Campaign cannot use shared campaign budgets and be part of a campaign 153 // group. 154 CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP = 40; 155 156 // The app ID was not found. 157 APP_NOT_FOUND = 41; 158 159 // Campaign.shopping_setting.enable_local is not supported for the specified 160 // campaign type. 161 SHOPPING_ENABLE_LOCAL_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE = 42; 162 163 // The merchant does not support the creation of campaigns for Shopping 164 // Comparison Listing Ads. 165 MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS = 43; 166 167 // The App campaign for engagement cannot be created because there aren't 168 // enough installs. 169 INSUFFICIENT_APP_INSTALLS_COUNT = 44; 170 171 // The App campaign for engagement cannot be created because the app is 172 // sensitive. 173 SENSITIVE_CATEGORY_APP = 45; 174 175 // Customers with Housing, Employment, or Credit ads must accept updated 176 // personalized ads policy to continue creating campaigns. 177 HEC_AGREEMENT_REQUIRED = 46; 178 179 // The field is not compatible with view through conversion optimization. 180 NOT_COMPATIBLE_WITH_VIEW_THROUGH_CONVERSION_OPTIMIZATION = 49; 181 182 // The field type cannot be excluded because an active campaign-asset link 183 // of this type exists. 184 INVALID_EXCLUDED_PARENT_ASSET_FIELD_TYPE = 48; 185 186 // The app pre-registration campaign cannot be created for non-Android 187 // applications. 188 CANNOT_CREATE_APP_PRE_REGISTRATION_FOR_NON_ANDROID_APP = 50; 189 190 // The campaign cannot be created since the app is not available for 191 // pre-registration in any country. 192 APP_NOT_AVAILABLE_TO_CREATE_APP_PRE_REGISTRATION_CAMPAIGN = 51; 193 194 // The type of the Budget is not compatible with this Campaign. 195 INCOMPATIBLE_BUDGET_TYPE = 52; 196 197 // Category bid list in the local services campaign setting contains 198 // multiple bids for the same category ID. 199 LOCAL_SERVICES_DUPLICATE_CATEGORY_BID = 53; 200 201 // Category bid list in the local services campaign setting contains 202 // a bid for an invalid category ID. 203 LOCAL_SERVICES_INVALID_CATEGORY_BID = 54; 204 205 // Category bid list in the local services campaign setting is missing a 206 // bid for a category ID that must be present. 207 LOCAL_SERVICES_MISSING_CATEGORY_BID = 55; 208 209 // The requested change in status is not supported. 210 INVALID_STATUS_CHANGE = 57; 211 212 // Travel Campaign's travel_account_id does not match any customer links. 213 MISSING_TRAVEL_CUSTOMER_LINK = 58; 214 215 // Travel Campaign's travel_account_id matches an existing customer link 216 // but the customer link is not active. 217 INVALID_TRAVEL_CUSTOMER_LINK = 59; 218 219 // The asset set type is invalid to be set in 220 // excluded_parent_asset_set_types field. 221 INVALID_EXCLUDED_PARENT_ASSET_SET_TYPE = 62; 222 223 // Campaign.hotel_property_asset_set must point to an asset set of type 224 // HOTEL_PROPERTY. 225 ASSET_SET_NOT_A_HOTEL_PROPERTY_ASSET_SET = 63; 226 227 // The hotel property asset set can only be set on Performance Max for 228 // travel goals campaigns. 229 HOTEL_PROPERTY_ASSET_SET_ONLY_FOR_PERFORMANCE_MAX_FOR_TRAVEL_GOALS = 64; 230 231 // Customer's average daily spend is too high to enable this feature. 232 AVERAGE_DAILY_SPEND_TOO_HIGH = 65; 233 234 // Cannot attach the campaign to a deleted campaign group. 235 CANNOT_ATTACH_TO_REMOVED_CAMPAIGN_GROUP = 66; 236 237 // Cannot attach the campaign to this bidding strategy. 238 CANNOT_ATTACH_TO_BIDDING_STRATEGY = 67; 239 240 // A budget with a different period cannot be assigned to the campaign. 241 CANNOT_CHANGE_BUDGET_PERIOD = 68; 242 243 // Customer does not have enough conversions to enable this feature. 244 NOT_ENOUGH_CONVERSIONS = 71; 245 246 // This campaign type can only have one conversion action. 247 CANNOT_SET_MORE_THAN_ONE_CONVERSION_ACTION = 72; 248 249 // The field is not compatible with the budget type. 250 NOT_COMPATIBLE_WITH_BUDGET_TYPE = 73; 251 252 // The feature is incompatible with ConversionActionType.UPLOAD_CLICKS. 253 NOT_COMPATIBLE_WITH_UPLOAD_CLICKS_CONVERSION = 74; 254 255 // App campaign setting app ID must match selective optimization conversion 256 // action app ID. 257 APP_ID_MUST_MATCH_CONVERSION_ACTION_APP_ID = 76; 258 259 // Selective optimization conversion action with Download category is not 260 // allowed. 261 CONVERSION_ACTION_WITH_DOWNLOAD_CATEGORY_NOT_ALLOWED = 77; 262 263 // One software download for selective optimization conversion action is 264 // required for this campaign conversion action. 265 CONVERSION_ACTION_WITH_DOWNLOAD_CATEGORY_REQUIRED = 78; 266 267 // Conversion tracking is not enabled and is required for this feature. 268 CONVERSION_TRACKING_NOT_ENABLED = 79; 269 270 // The field is not compatible with the bidding strategy type. 271 NOT_COMPATIBLE_WITH_BIDDING_STRATEGY_TYPE = 80; 272 273 // Campaign is not compatible with a conversion tracker that has Google 274 // attribution enabled. 275 NOT_COMPATIBLE_WITH_GOOGLE_ATTRIBUTION_CONVERSIONS = 81; 276 277 // Customer level conversion lag is too high. 278 CONVERSION_LAG_TOO_HIGH = 82; 279 280 // The advertiser set as an advertising partner is not an actively linked 281 // advertiser to this customer. 282 NOT_LINKED_ADVERTISING_PARTNER = 83; 283 284 // Invalid number of advertising partner IDs. 285 INVALID_NUMBER_OF_ADVERTISING_PARTNER_IDS = 84; 286 } 287} 288