campaign_criterion.proto 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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/campaign_criterion_status.proto";
  18. import "google/ads/googleads/v6/enums/criterion_type.proto";
  19. import "google/api/field_behavior.proto";
  20. import "google/api/resource.proto";
  21. import "google/api/annotations.proto";
  22. option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources";
  23. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "CampaignCriterionProto";
  26. option java_package = "com.google.ads.googleads.v6.resources";
  27. option objc_class_prefix = "GAA";
  28. option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources";
  29. option ruby_package = "Google::Ads::GoogleAds::V6::Resources";
  30. // Proto file describing the Campaign Criterion resource.
  31. // A campaign criterion.
  32. message CampaignCriterion {
  33. option (google.api.resource) = {
  34. type: "googleads.googleapis.com/CampaignCriterion"
  35. pattern: "customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}"
  36. };
  37. // Immutable. The resource name of the campaign criterion.
  38. // Campaign criterion resource names have the form:
  39. //
  40. // `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}`
  41. string resource_name = 1 [
  42. (google.api.field_behavior) = IMMUTABLE,
  43. (google.api.resource_reference) = {
  44. type: "googleads.googleapis.com/CampaignCriterion"
  45. }
  46. ];
  47. // Immutable. The campaign to which the criterion belongs.
  48. optional string campaign = 37 [
  49. (google.api.field_behavior) = IMMUTABLE,
  50. (google.api.resource_reference) = {
  51. type: "googleads.googleapis.com/Campaign"
  52. }
  53. ];
  54. // Output only. The ID of the criterion.
  55. //
  56. // This field is ignored during mutate.
  57. optional int64 criterion_id = 38 [(google.api.field_behavior) = OUTPUT_ONLY];
  58. // The modifier for the bids when the criterion matches. The modifier must be
  59. // in the range: 0.1 - 10.0. Most targetable criteria types support modifiers.
  60. // Use 0 to opt out of a Device type.
  61. optional float bid_modifier = 39;
  62. // Immutable. Whether to target (`false`) or exclude (`true`) the criterion.
  63. optional bool negative = 40 [(google.api.field_behavior) = IMMUTABLE];
  64. // Output only. The type of the criterion.
  65. google.ads.googleads.v6.enums.CriterionTypeEnum.CriterionType type = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  66. // The status of the criterion.
  67. google.ads.googleads.v6.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus status = 35;
  68. // The campaign criterion.
  69. //
  70. // Exactly one must be set.
  71. oneof criterion {
  72. // Immutable. Keyword.
  73. google.ads.googleads.v6.common.KeywordInfo keyword = 8 [(google.api.field_behavior) = IMMUTABLE];
  74. // Immutable. Placement.
  75. google.ads.googleads.v6.common.PlacementInfo placement = 9 [(google.api.field_behavior) = IMMUTABLE];
  76. // Immutable. Mobile app category.
  77. google.ads.googleads.v6.common.MobileAppCategoryInfo mobile_app_category = 10 [(google.api.field_behavior) = IMMUTABLE];
  78. // Immutable. Mobile application.
  79. google.ads.googleads.v6.common.MobileApplicationInfo mobile_application = 11 [(google.api.field_behavior) = IMMUTABLE];
  80. // Immutable. Location.
  81. google.ads.googleads.v6.common.LocationInfo location = 12 [(google.api.field_behavior) = IMMUTABLE];
  82. // Immutable. Device.
  83. google.ads.googleads.v6.common.DeviceInfo device = 13 [(google.api.field_behavior) = IMMUTABLE];
  84. // Immutable. Ad Schedule.
  85. google.ads.googleads.v6.common.AdScheduleInfo ad_schedule = 15 [(google.api.field_behavior) = IMMUTABLE];
  86. // Immutable. Age range.
  87. google.ads.googleads.v6.common.AgeRangeInfo age_range = 16 [(google.api.field_behavior) = IMMUTABLE];
  88. // Immutable. Gender.
  89. google.ads.googleads.v6.common.GenderInfo gender = 17 [(google.api.field_behavior) = IMMUTABLE];
  90. // Immutable. Income range.
  91. google.ads.googleads.v6.common.IncomeRangeInfo income_range = 18 [(google.api.field_behavior) = IMMUTABLE];
  92. // Immutable. Parental status.
  93. google.ads.googleads.v6.common.ParentalStatusInfo parental_status = 19 [(google.api.field_behavior) = IMMUTABLE];
  94. // Immutable. User List.
  95. google.ads.googleads.v6.common.UserListInfo user_list = 22 [(google.api.field_behavior) = IMMUTABLE];
  96. // Immutable. YouTube Video.
  97. google.ads.googleads.v6.common.YouTubeVideoInfo youtube_video = 20 [(google.api.field_behavior) = IMMUTABLE];
  98. // Immutable. YouTube Channel.
  99. google.ads.googleads.v6.common.YouTubeChannelInfo youtube_channel = 21 [(google.api.field_behavior) = IMMUTABLE];
  100. // Immutable. Proximity.
  101. google.ads.googleads.v6.common.ProximityInfo proximity = 23 [(google.api.field_behavior) = IMMUTABLE];
  102. // Immutable. Topic.
  103. google.ads.googleads.v6.common.TopicInfo topic = 24 [(google.api.field_behavior) = IMMUTABLE];
  104. // Immutable. Listing scope.
  105. google.ads.googleads.v6.common.ListingScopeInfo listing_scope = 25 [(google.api.field_behavior) = IMMUTABLE];
  106. // Immutable. Language.
  107. google.ads.googleads.v6.common.LanguageInfo language = 26 [(google.api.field_behavior) = IMMUTABLE];
  108. // Immutable. IpBlock.
  109. google.ads.googleads.v6.common.IpBlockInfo ip_block = 27 [(google.api.field_behavior) = IMMUTABLE];
  110. // Immutable. ContentLabel.
  111. google.ads.googleads.v6.common.ContentLabelInfo content_label = 28 [(google.api.field_behavior) = IMMUTABLE];
  112. // Immutable. Carrier.
  113. google.ads.googleads.v6.common.CarrierInfo carrier = 29 [(google.api.field_behavior) = IMMUTABLE];
  114. // Immutable. User Interest.
  115. google.ads.googleads.v6.common.UserInterestInfo user_interest = 30 [(google.api.field_behavior) = IMMUTABLE];
  116. // Immutable. Webpage.
  117. google.ads.googleads.v6.common.WebpageInfo webpage = 31 [(google.api.field_behavior) = IMMUTABLE];
  118. // Immutable. Operating system version.
  119. google.ads.googleads.v6.common.OperatingSystemVersionInfo operating_system_version = 32 [(google.api.field_behavior) = IMMUTABLE];
  120. // Immutable. Mobile Device.
  121. google.ads.googleads.v6.common.MobileDeviceInfo mobile_device = 33 [(google.api.field_behavior) = IMMUTABLE];
  122. // Immutable. Location Group
  123. google.ads.googleads.v6.common.LocationGroupInfo location_group = 34 [(google.api.field_behavior) = IMMUTABLE];
  124. // Immutable. Custom Affinity.
  125. google.ads.googleads.v6.common.CustomAffinityInfo custom_affinity = 36 [(google.api.field_behavior) = IMMUTABLE];
  126. // Immutable. Custom Audience
  127. google.ads.googleads.v6.common.CustomAudienceInfo custom_audience = 41 [(google.api.field_behavior) = IMMUTABLE];
  128. // Immutable. Combined Audience.
  129. google.ads.googleads.v6.common.CombinedAudienceInfo combined_audience = 42 [(google.api.field_behavior) = IMMUTABLE];
  130. }
  131. }