shared_criterion.proto 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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.v6.resources;
  16. import "google/ads/googleads/v6/common/criteria.proto";
  17. import "google/ads/googleads/v6/enums/criterion_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.V6.Resources";
  22. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "SharedCriterionProto";
  25. option java_package = "com.google.ads.googleads.v6.resources";
  26. option objc_class_prefix = "GAA";
  27. option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources";
  28. option ruby_package = "Google::Ads::GoogleAds::V6::Resources";
  29. // Proto file describing the SharedCriterion resource.
  30. // A criterion belonging to a shared set.
  31. message SharedCriterion {
  32. option (google.api.resource) = {
  33. type: "googleads.googleapis.com/SharedCriterion"
  34. pattern: "customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}"
  35. };
  36. // Immutable. The resource name of the shared criterion.
  37. // Shared set resource names have the form:
  38. //
  39. // `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}`
  40. string resource_name = 1 [
  41. (google.api.field_behavior) = IMMUTABLE,
  42. (google.api.resource_reference) = {
  43. type: "googleads.googleapis.com/SharedCriterion"
  44. }
  45. ];
  46. // Immutable. The shared set to which the shared criterion belongs.
  47. optional string shared_set = 10 [
  48. (google.api.field_behavior) = IMMUTABLE,
  49. (google.api.resource_reference) = {
  50. type: "googleads.googleapis.com/SharedSet"
  51. }
  52. ];
  53. // Output only. The ID of the criterion.
  54. //
  55. // This field is ignored for mutates.
  56. optional int64 criterion_id = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  57. // Output only. The type of the criterion.
  58. google.ads.googleads.v6.enums.CriterionTypeEnum.CriterionType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  59. // The criterion.
  60. //
  61. // Exactly one must be set.
  62. oneof criterion {
  63. // Immutable. Keyword.
  64. google.ads.googleads.v6.common.KeywordInfo keyword = 3 [(google.api.field_behavior) = IMMUTABLE];
  65. // Immutable. YouTube Video.
  66. google.ads.googleads.v6.common.YouTubeVideoInfo youtube_video = 5 [(google.api.field_behavior) = IMMUTABLE];
  67. // Immutable. YouTube Channel.
  68. google.ads.googleads.v6.common.YouTubeChannelInfo youtube_channel = 6 [(google.api.field_behavior) = IMMUTABLE];
  69. // Immutable. Placement.
  70. google.ads.googleads.v6.common.PlacementInfo placement = 7 [(google.api.field_behavior) = IMMUTABLE];
  71. // Immutable. Mobile App Category.
  72. google.ads.googleads.v6.common.MobileAppCategoryInfo mobile_app_category = 8 [(google.api.field_behavior) = IMMUTABLE];
  73. // Immutable. Mobile application.
  74. google.ads.googleads.v6.common.MobileApplicationInfo mobile_application = 9 [(google.api.field_behavior) = IMMUTABLE];
  75. }
  76. }