shared_set.proto 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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.v10.resources;
  16. import "google/ads/googleads/v10/enums/shared_set_status.proto";
  17. import "google/ads/googleads/v10/enums/shared_set_type.proto";
  18. import "google/api/field_behavior.proto";
  19. import "google/api/resource.proto";
  20. option csharp_namespace = "Google.Ads.GoogleAds.V10.Resources";
  21. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v10/resources;resources";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "SharedSetProto";
  24. option java_package = "com.google.ads.googleads.v10.resources";
  25. option objc_class_prefix = "GAA";
  26. option php_namespace = "Google\\Ads\\GoogleAds\\V10\\Resources";
  27. option ruby_package = "Google::Ads::GoogleAds::V10::Resources";
  28. // Proto file describing the SharedSet resource.
  29. // SharedSets are used for sharing criterion exclusions across multiple
  30. // campaigns.
  31. message SharedSet {
  32. option (google.api.resource) = {
  33. type: "googleads.googleapis.com/SharedSet"
  34. pattern: "customers/{customer_id}/sharedSets/{shared_set_id}"
  35. };
  36. // Immutable. The resource name of the shared set.
  37. // Shared set resource names have the form:
  38. //
  39. // `customers/{customer_id}/sharedSets/{shared_set_id}`
  40. string resource_name = 1 [
  41. (google.api.field_behavior) = IMMUTABLE,
  42. (google.api.resource_reference) = {
  43. type: "googleads.googleapis.com/SharedSet"
  44. }
  45. ];
  46. // Output only. The ID of this shared set. Read only.
  47. optional int64 id = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  48. // Immutable. The type of this shared set: each shared set holds only a single kind
  49. // of resource. Required. Immutable.
  50. google.ads.googleads.v10.enums.SharedSetTypeEnum.SharedSetType type = 3 [(google.api.field_behavior) = IMMUTABLE];
  51. // The name of this shared set. Required.
  52. // Shared Sets must have names that are unique among active shared sets of
  53. // the same type.
  54. // The length of this string should be between 1 and 255 UTF-8 bytes,
  55. // inclusive.
  56. optional string name = 9;
  57. // Output only. The status of this shared set. Read only.
  58. google.ads.googleads.v10.enums.SharedSetStatusEnum.SharedSetStatus status = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  59. // Output only. The number of shared criteria within this shared set. Read only.
  60. optional int64 member_count = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  61. // Output only. The number of campaigns associated with this shared set. Read only.
  62. optional int64 reference_count = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  63. }