campaign_experiment_error.proto 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 = "CampaignExperimentErrorProto";
  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 experiment errors.
  25. // Container for enum describing possible campaign experiment errors.
  26. message CampaignExperimentErrorEnum {
  27. // Enum describing possible campaign experiment errors.
  28. enum CampaignExperimentError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // An active campaign or experiment with this name already exists.
  34. DUPLICATE_NAME = 2;
  35. // Experiment cannot be updated from the current state to the
  36. // requested target state. For example, an experiment can only graduate
  37. // if its status is ENABLED.
  38. INVALID_TRANSITION = 3;
  39. // Cannot create an experiment from a campaign using an explicitly shared
  40. // budget.
  41. CANNOT_CREATE_EXPERIMENT_WITH_SHARED_BUDGET = 4;
  42. // Cannot create an experiment for a removed base campaign.
  43. CANNOT_CREATE_EXPERIMENT_FOR_REMOVED_BASE_CAMPAIGN = 5;
  44. // Cannot create an experiment from a draft, which has a status other than
  45. // proposed.
  46. CANNOT_CREATE_EXPERIMENT_FOR_NON_PROPOSED_DRAFT = 6;
  47. // This customer is not allowed to create an experiment.
  48. CUSTOMER_CANNOT_CREATE_EXPERIMENT = 7;
  49. // This campaign is not allowed to create an experiment.
  50. CAMPAIGN_CANNOT_CREATE_EXPERIMENT = 8;
  51. // Trying to set an experiment duration which overlaps with another
  52. // experiment.
  53. EXPERIMENT_DURATIONS_MUST_NOT_OVERLAP = 9;
  54. // All non-removed experiments must start and end within their campaign's
  55. // duration.
  56. EXPERIMENT_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION = 10;
  57. // The experiment cannot be modified because its status is in a terminal
  58. // state, such as REMOVED.
  59. CANNOT_MUTATE_EXPERIMENT_DUE_TO_STATUS = 11;
  60. }
  61. }