conversion_value_rule.proto 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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.v12.resources;
  16. import "google/ads/googleads/v12/enums/conversion_value_rule_status.proto";
  17. import "google/ads/googleads/v12/enums/value_rule_device_type.proto";
  18. import "google/ads/googleads/v12/enums/value_rule_geo_location_match_type.proto";
  19. import "google/ads/googleads/v12/enums/value_rule_operation.proto";
  20. import "google/api/field_behavior.proto";
  21. import "google/api/resource.proto";
  22. option csharp_namespace = "Google.Ads.GoogleAds.V12.Resources";
  23. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/resources;resources";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "ConversionValueRuleProto";
  26. option java_package = "com.google.ads.googleads.v12.resources";
  27. option objc_class_prefix = "GAA";
  28. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Resources";
  29. option ruby_package = "Google::Ads::GoogleAds::V12::Resources";
  30. // Proto file describing the Conversion Value Rule resource.
  31. // A conversion value rule
  32. message ConversionValueRule {
  33. option (google.api.resource) = {
  34. type: "googleads.googleapis.com/ConversionValueRule"
  35. pattern: "customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}"
  36. };
  37. // Action applied when rule is applied.
  38. message ValueRuleAction {
  39. // Specifies applied operation.
  40. google.ads.googleads.v12.enums.ValueRuleOperationEnum.ValueRuleOperation operation = 1;
  41. // Specifies applied value.
  42. double value = 2;
  43. }
  44. // Condition on Geo dimension.
  45. message ValueRuleGeoLocationCondition {
  46. // Geo locations that advertisers want to exclude.
  47. repeated string excluded_geo_target_constants = 1 [(google.api.resource_reference) = {
  48. type: "googleads.googleapis.com/GeoTargetConstant"
  49. }];
  50. // Excluded Geo location match type.
  51. google.ads.googleads.v12.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType excluded_geo_match_type = 2;
  52. // Geo locations that advertisers want to include.
  53. repeated string geo_target_constants = 3 [(google.api.resource_reference) = {
  54. type: "googleads.googleapis.com/GeoTargetConstant"
  55. }];
  56. // Included Geo location match type.
  57. google.ads.googleads.v12.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType geo_match_type = 4;
  58. }
  59. // Condition on Device dimension.
  60. message ValueRuleDeviceCondition {
  61. // Value for device type condition.
  62. repeated google.ads.googleads.v12.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
  63. }
  64. // Condition on Audience dimension.
  65. message ValueRuleAudienceCondition {
  66. // User Lists.
  67. repeated string user_lists = 1 [(google.api.resource_reference) = {
  68. type: "googleads.googleapis.com/UserList"
  69. }];
  70. // User Interests.
  71. repeated string user_interests = 2 [(google.api.resource_reference) = {
  72. type: "googleads.googleapis.com/UserInterest"
  73. }];
  74. }
  75. // Immutable. The resource name of the conversion value rule.
  76. // Conversion value rule resource names have the form:
  77. //
  78. // `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}`
  79. string resource_name = 1 [
  80. (google.api.field_behavior) = IMMUTABLE,
  81. (google.api.resource_reference) = {
  82. type: "googleads.googleapis.com/ConversionValueRule"
  83. }
  84. ];
  85. // Output only. The ID of the conversion value rule.
  86. int64 id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  87. // Action applied when the rule is triggered.
  88. ValueRuleAction action = 3;
  89. // Condition for Geo location that must be satisfied for the value rule to
  90. // apply.
  91. ValueRuleGeoLocationCondition geo_location_condition = 4;
  92. // Condition for device type that must be satisfied for the value rule to
  93. // apply.
  94. ValueRuleDeviceCondition device_condition = 5;
  95. // Condition for audience that must be satisfied for the value rule to apply.
  96. ValueRuleAudienceCondition audience_condition = 6;
  97. // Output only. The resource name of the conversion value rule's owner customer.
  98. // When the value rule is inherited from a manager
  99. // customer, owner_customer will be the resource name of the manager whereas
  100. // the customer in the resource_name will be of the requesting serving
  101. // customer.
  102. // ** Read-only **
  103. string owner_customer = 7 [
  104. (google.api.field_behavior) = OUTPUT_ONLY,
  105. (google.api.resource_reference) = {
  106. type: "googleads.googleapis.com/Customer"
  107. }
  108. ];
  109. // The status of the conversion value rule.
  110. google.ads.googleads.v12.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus status = 8;
  111. }