audience_error.proto 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 = "AudienceErrorProto";
  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 audience errors.
  25. // Container for enum describing possible audience errors.
  26. message AudienceErrorEnum {
  27. // Enum describing possible audience errors.
  28. enum AudienceError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // An audience with this name already exists.
  34. NAME_ALREADY_IN_USE = 2;
  35. // A dimension within the audience definition is not valid.
  36. DIMENSION_INVALID = 3;
  37. // One of the audience segment added is not found.
  38. AUDIENCE_SEGMENT_NOT_FOUND = 4;
  39. // One of the audience segment type is not supported.
  40. AUDIENCE_SEGMENT_TYPE_NOT_SUPPORTED = 5;
  41. // The same segment already exists in this audience.
  42. DUPLICATE_AUDIENCE_SEGMENT = 6;
  43. // Audience can't have more than allowed number segments.
  44. TOO_MANY_SEGMENTS = 7;
  45. // Audience can't have multiple dimensions of same type.
  46. TOO_MANY_DIMENSIONS_OF_SAME_TYPE = 8;
  47. // The audience cannot be removed, because it is currently used in an
  48. // ad group criterion or asset group signal in an (enabled or paused)
  49. // ad group or campaign.
  50. IN_USE = 9;
  51. }
  52. }