ad_group_criterion.proto 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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.searchads360.v0.resources;
  16. import "google/ads/searchads360/v0/common/criteria.proto";
  17. import "google/ads/searchads360/v0/enums/ad_group_criterion_engine_status.proto";
  18. import "google/ads/searchads360/v0/enums/ad_group_criterion_status.proto";
  19. import "google/ads/searchads360/v0/enums/criterion_type.proto";
  20. import "google/api/field_behavior.proto";
  21. import "google/api/resource.proto";
  22. option csharp_namespace = "Google.Ads.SearchAds360.V0.Resources";
  23. option go_package = "google.golang.org/genproto/googleapis/ads/searchads360/v0/resources;resources";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "AdGroupCriterionProto";
  26. option java_package = "com.google.ads.searchads360.v0.resources";
  27. option objc_class_prefix = "GASA360";
  28. option php_namespace = "Google\\Ads\\SearchAds360\\V0\\Resources";
  29. option ruby_package = "Google::Ads::SearchAds360::V0::Resources";
  30. // Proto file describing the ad group criterion resource.
  31. // An ad group criterion.
  32. message AdGroupCriterion {
  33. option (google.api.resource) = {
  34. type: "searchads360.googleapis.com/AdGroupCriterion"
  35. pattern: "customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}"
  36. };
  37. // A container for ad group criterion quality information.
  38. message QualityInfo {
  39. // Output only. The quality score.
  40. //
  41. // This field may not be populated if Google does not have enough
  42. // information to determine a value.
  43. optional int32 quality_score = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  44. }
  45. // Immutable. The resource name of the ad group criterion.
  46. // Ad group criterion resource names have the form:
  47. //
  48. // `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}`
  49. string resource_name = 1 [
  50. (google.api.field_behavior) = IMMUTABLE,
  51. (google.api.resource_reference) = {
  52. type: "searchads360.googleapis.com/AdGroupCriterion"
  53. }
  54. ];
  55. // Output only. The ID of the criterion.
  56. optional int64 criterion_id = 56 [(google.api.field_behavior) = OUTPUT_ONLY];
  57. // The status of the criterion.
  58. //
  59. // This is the status of the ad group criterion entity, set by the client.
  60. // Note: UI reports may incorporate additional information that affects
  61. // whether a criterion is eligible to run. In some cases a criterion that's
  62. // REMOVED in the API can still show as enabled in the UI.
  63. // For example, campaigns by default show to users of all age ranges unless
  64. // excluded. The UI will show each age range as "enabled", since they're
  65. // eligible to see the ads; but AdGroupCriterion.status will show "removed",
  66. // since no positive criterion was added.
  67. google.ads.searchads360.v0.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus status = 3;
  68. // Output only. Information regarding the quality of the criterion.
  69. QualityInfo quality_info = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  70. // Immutable. The ad group to which the criterion belongs.
  71. optional string ad_group = 57 [
  72. (google.api.field_behavior) = IMMUTABLE,
  73. (google.api.resource_reference) = {
  74. type: "searchads360.googleapis.com/AdGroup"
  75. }
  76. ];
  77. // Output only. The type of the criterion.
  78. google.ads.searchads360.v0.enums.CriterionTypeEnum.CriterionType type = 25 [(google.api.field_behavior) = OUTPUT_ONLY];
  79. // The modifier for the bid when the criterion matches. The modifier must be
  80. // in the range: 0.1 - 10.0. Most targetable criteria types support modifiers.
  81. optional double bid_modifier = 61;
  82. // The CPC (cost-per-click) bid.
  83. optional int64 cpc_bid_micros = 62;
  84. // Output only. The effective CPC (cost-per-click) bid.
  85. optional int64 effective_cpc_bid_micros = 66 [(google.api.field_behavior) = OUTPUT_ONLY];
  86. // The list of possible final URLs after all cross-domain redirects for the
  87. // ad.
  88. repeated string final_urls = 70;
  89. // Output only. The Engine Status for ad group criterion.
  90. optional google.ads.searchads360.v0.enums.AdGroupCriterionEngineStatusEnum.AdGroupCriterionEngineStatus engine_status = 80 [(google.api.field_behavior) = OUTPUT_ONLY];
  91. // URL template for appending params to final URL.
  92. optional string final_url_suffix = 72;
  93. // The URL template for constructing a tracking URL.
  94. optional string tracking_url_template = 73;
  95. // Output only. The datetime when this ad group criterion was last modified. The datetime
  96. // is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format.
  97. string last_modified_time = 78 [(google.api.field_behavior) = OUTPUT_ONLY];
  98. // The ad group criterion.
  99. //
  100. // Exactly one must be set.
  101. oneof criterion {
  102. // Immutable. Keyword.
  103. google.ads.searchads360.v0.common.KeywordInfo keyword = 27 [(google.api.field_behavior) = IMMUTABLE];
  104. // Immutable. Listing group.
  105. google.ads.searchads360.v0.common.ListingGroupInfo listing_group = 32 [(google.api.field_behavior) = IMMUTABLE];
  106. // Immutable. Age range.
  107. google.ads.searchads360.v0.common.AgeRangeInfo age_range = 36 [(google.api.field_behavior) = IMMUTABLE];
  108. // Immutable. Gender.
  109. google.ads.searchads360.v0.common.GenderInfo gender = 37 [(google.api.field_behavior) = IMMUTABLE];
  110. // Immutable. Webpage
  111. google.ads.searchads360.v0.common.WebpageInfo webpage = 46 [(google.api.field_behavior) = IMMUTABLE];
  112. }
  113. }