campaign_draft_error.proto 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 = "CampaignDraftErrorProto";
  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 draft errors.
  25. // Container for enum describing possible campaign draft errors.
  26. message CampaignDraftErrorEnum {
  27. // Enum describing possible campaign draft errors.
  28. enum CampaignDraftError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // A draft with this name already exists for this campaign.
  34. DUPLICATE_DRAFT_NAME = 2;
  35. // The draft is removed and cannot be transitioned to another status.
  36. INVALID_STATUS_TRANSITION_FROM_REMOVED = 3;
  37. // The draft has been promoted and cannot be transitioned to the specified
  38. // status.
  39. INVALID_STATUS_TRANSITION_FROM_PROMOTED = 4;
  40. // The draft has failed to be promoted and cannot be transitioned to the
  41. // specified status.
  42. INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED = 5;
  43. // This customer is not allowed to create drafts.
  44. CUSTOMER_CANNOT_CREATE_DRAFT = 6;
  45. // This campaign is not allowed to create drafts.
  46. CAMPAIGN_CANNOT_CREATE_DRAFT = 7;
  47. // This modification cannot be made on a draft.
  48. INVALID_DRAFT_CHANGE = 8;
  49. // The draft cannot be transitioned to the specified status from its
  50. // current status.
  51. INVALID_STATUS_TRANSITION = 9;
  52. // The campaign has reached the maximum number of drafts that can be created
  53. // for a campaign throughout its lifetime. No additional drafts can be
  54. // created for this campaign. Removed drafts also count towards this limit.
  55. MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED = 10;
  56. // ListAsyncErrors was called without first promoting the draft.
  57. LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY = 11;
  58. }
  59. }