experiment_error.proto 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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.v11.errors;
  16. option csharp_namespace = "Google.Ads.GoogleAds.V11.Errors";
  17. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v11/errors;errors";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "ExperimentErrorProto";
  20. option java_package = "com.google.ads.googleads.v11.errors";
  21. option objc_class_prefix = "GAA";
  22. option php_namespace = "Google\\Ads\\GoogleAds\\V11\\Errors";
  23. option ruby_package = "Google::Ads::GoogleAds::V11::Errors";
  24. // Proto file describing experiment errors.
  25. // Container for enum describing possible experiment error.
  26. message ExperimentErrorEnum {
  27. // Enum describing possible experiment errors.
  28. enum ExperimentError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // The start date of an experiment cannot be set in the past.
  34. // Use a start date in the future.
  35. CANNOT_SET_START_DATE_IN_PAST = 2;
  36. // The end date of an experiment is before its start date.
  37. // Use an end date after the start date.
  38. END_DATE_BEFORE_START_DATE = 3;
  39. // The start date of an experiment is too far in the future.
  40. // Use a start date no more than 1 year in the future.
  41. START_DATE_TOO_FAR_IN_FUTURE = 4;
  42. // The experiment has the same name as an existing active experiment.
  43. DUPLICATE_EXPERIMENT_NAME = 5;
  44. // Experiments can only be modified when they are ENABLED.
  45. CANNOT_MODIFY_REMOVED_EXPERIMENT = 6;
  46. // The start date of an experiment cannot be modified if the existing start
  47. // date has already passed.
  48. START_DATE_ALREADY_PASSED = 7;
  49. // The end date of an experiment cannot be set in the past.
  50. CANNOT_SET_END_DATE_IN_PAST = 8;
  51. // The status of an experiment cannot be set to REMOVED.
  52. CANNOT_SET_STATUS_TO_REMOVED = 9;
  53. // The end date of an expired experiment cannot be modified.
  54. CANNOT_MODIFY_PAST_END_DATE = 10;
  55. // The status is invalid.
  56. INVALID_STATUS = 11;
  57. // Experiment arm contains campaigns with invalid advertising channel type.
  58. INVALID_CAMPAIGN_CHANNEL_TYPE = 12;
  59. // A pair of trials share members and have overlapping date ranges.
  60. OVERLAPPING_MEMBERS_AND_DATE_RANGE = 13;
  61. // Experiment arm contains invalid traffic split.
  62. INVALID_TRIAL_ARM_TRAFFIC_SPLIT = 14;
  63. // Experiment contains trial arms with overlapping traffic split.
  64. TRAFFIC_SPLIT_OVERLAPPING = 15;
  65. // The total traffic split of trial arms is not equal to 100.
  66. SUM_TRIAL_ARM_TRAFFIC_UNEQUALS_TO_TRIAL_TRAFFIC_SPLIT_DENOMINATOR = 16;
  67. // Traffic split related settings (like traffic share bounds) can't be
  68. // modified after the experiment has started.
  69. CANNOT_MODIFY_TRAFFIC_SPLIT_AFTER_START = 17;
  70. // The experiment could not be found.
  71. EXPERIMENT_NOT_FOUND = 18;
  72. // Experiment has not begun.
  73. EXPERIMENT_NOT_YET_STARTED = 19;
  74. // The experiment cannot have more than one control arm.
  75. CANNOT_HAVE_MULTIPLE_CONTROL_ARMS = 20;
  76. // The experiment doesn't set in-design campaigns.
  77. IN_DESIGN_CAMPAIGNS_NOT_SET = 21;
  78. // Clients must use the graduate action to graduate experiments and cannot
  79. // set the status to GRADUATED directly.
  80. CANNOT_SET_STATUS_TO_GRADUATED = 22;
  81. // Cannot use shared budget on base campaign when scheduling an experiment.
  82. CANNOT_CREATE_EXPERIMENT_CAMPAIGN_WITH_SHARED_BUDGET = 23;
  83. // Cannot use custom budget on base campaign when scheduling an experiment.
  84. CANNOT_CREATE_EXPERIMENT_CAMPAIGN_WITH_CUSTOM_BUDGET = 24;
  85. // Invalid status transition.
  86. STATUS_TRANSITION_INVALID = 25;
  87. }
  88. }