shared_set.proto 3.1 KB

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