conversion_value_rule_set.proto 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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_action_category.proto";
  17. import "google/ads/googleads/v12/enums/conversion_value_rule_set_status.proto";
  18. import "google/ads/googleads/v12/enums/value_rule_set_attachment_type.proto";
  19. import "google/ads/googleads/v12/enums/value_rule_set_dimension.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 = "ConversionValueRuleSetProto";
  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 Set resource.
  31. // A conversion value rule set
  32. message ConversionValueRuleSet {
  33. option (google.api.resource) = {
  34. type: "googleads.googleapis.com/ConversionValueRuleSet"
  35. pattern: "customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}"
  36. };
  37. // Immutable. The resource name of the conversion value rule set.
  38. // Conversion value rule set resource names have the form:
  39. //
  40. // `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}`
  41. string resource_name = 1 [
  42. (google.api.field_behavior) = IMMUTABLE,
  43. (google.api.resource_reference) = {
  44. type: "googleads.googleapis.com/ConversionValueRuleSet"
  45. }
  46. ];
  47. // Output only. The ID of the conversion value rule set.
  48. int64 id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  49. // Resource names of rules within the rule set.
  50. repeated string conversion_value_rules = 3 [(google.api.resource_reference) = {
  51. type: "googleads.googleapis.com/ConversionValueRule"
  52. }];
  53. // Defines dimensions for Value Rule conditions. The condition types of value
  54. // rules within this value rule set must be of these dimensions. The first
  55. // entry in this list is the primary dimension of the included value rules.
  56. // When using value rule primary dimension segmentation, conversion values
  57. // will be segmented into the values adjusted by value rules and the original
  58. // values, if some value rules apply.
  59. repeated google.ads.googleads.v12.enums.ValueRuleSetDimensionEnum.ValueRuleSetDimension dimensions = 4;
  60. // Output only. The resource name of the conversion value rule set's owner customer.
  61. // When the value rule set is inherited from a manager
  62. // customer, owner_customer will be the resource name of the manager whereas
  63. // the customer in the resource_name will be of the requesting serving
  64. // customer.
  65. // ** Read-only **
  66. string owner_customer = 5 [
  67. (google.api.field_behavior) = OUTPUT_ONLY,
  68. (google.api.resource_reference) = {
  69. type: "googleads.googleapis.com/Customer"
  70. }
  71. ];
  72. // Immutable. Defines the scope where the conversion value rule set is attached.
  73. google.ads.googleads.v12.enums.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType attachment_type = 6 [(google.api.field_behavior) = IMMUTABLE];
  74. // The resource name of the campaign when the conversion value rule
  75. // set is attached to a campaign.
  76. string campaign = 7 [(google.api.resource_reference) = {
  77. type: "googleads.googleapis.com/Campaign"
  78. }];
  79. // Output only. The status of the conversion value rule set.
  80. // ** Read-only **
  81. google.ads.googleads.v12.enums.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus status = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  82. // Immutable. The conversion action categories of the conversion value rule set.
  83. repeated google.ads.googleads.v12.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_categories = 9 [(google.api.field_behavior) = IMMUTABLE];
  84. }