conversion_action.proto 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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.v8.resources;
  16. import "google/ads/googleads/v8/common/tag_snippet.proto";
  17. import "google/ads/googleads/v8/enums/attribution_model.proto";
  18. import "google/ads/googleads/v8/enums/conversion_action_category.proto";
  19. import "google/ads/googleads/v8/enums/conversion_action_counting_type.proto";
  20. import "google/ads/googleads/v8/enums/conversion_action_status.proto";
  21. import "google/ads/googleads/v8/enums/conversion_action_type.proto";
  22. import "google/ads/googleads/v8/enums/data_driven_model_status.proto";
  23. import "google/ads/googleads/v8/enums/mobile_app_vendor.proto";
  24. import "google/api/field_behavior.proto";
  25. import "google/api/resource.proto";
  26. import "google/api/annotations.proto";
  27. option csharp_namespace = "Google.Ads.GoogleAds.V8.Resources";
  28. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v8/resources;resources";
  29. option java_multiple_files = true;
  30. option java_outer_classname = "ConversionActionProto";
  31. option java_package = "com.google.ads.googleads.v8.resources";
  32. option objc_class_prefix = "GAA";
  33. option php_namespace = "Google\\Ads\\GoogleAds\\V8\\Resources";
  34. option ruby_package = "Google::Ads::GoogleAds::V8::Resources";
  35. // Proto file describing the Conversion Action resource.
  36. // A conversion action.
  37. message ConversionAction {
  38. option (google.api.resource) = {
  39. type: "googleads.googleapis.com/ConversionAction"
  40. pattern: "customers/{customer_id}/conversionActions/{conversion_action_id}"
  41. };
  42. // Settings related to this conversion action's attribution model.
  43. message AttributionModelSettings {
  44. // The attribution model type of this conversion action.
  45. google.ads.googleads.v8.enums.AttributionModelEnum.AttributionModel attribution_model = 1;
  46. // Output only. The status of the data-driven attribution model for the conversion
  47. // action.
  48. google.ads.googleads.v8.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus data_driven_model_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  49. }
  50. // Settings related to the value for conversion events associated with this
  51. // conversion action.
  52. message ValueSettings {
  53. // The value to use when conversion events for this conversion action are
  54. // sent with an invalid, disallowed or missing value, or when
  55. // this conversion action is configured to always use the default value.
  56. optional double default_value = 4;
  57. // The currency code to use when conversion events for this conversion
  58. // action are sent with an invalid or missing currency code, or when this
  59. // conversion action is configured to always use the default value.
  60. optional string default_currency_code = 5;
  61. // Controls whether the default value and default currency code are used in
  62. // place of the value and currency code specified in conversion events for
  63. // this conversion action.
  64. optional bool always_use_default_value = 6;
  65. }
  66. // Settings related to a third party app analytics conversion action.
  67. message ThirdPartyAppAnalyticsSettings {
  68. // Output only. The event name of a third-party app analytics conversion.
  69. optional string event_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  70. // Output only. Name of the third-party app analytics provider.
  71. string provider_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  72. }
  73. // Settings related to a Firebase conversion action.
  74. message FirebaseSettings {
  75. // Output only. The event name of a Firebase conversion.
  76. optional string event_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  77. // Output only. The Firebase project ID of the conversion.
  78. optional string project_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  79. }
  80. // Immutable. The resource name of the conversion action.
  81. // Conversion action resource names have the form:
  82. //
  83. // `customers/{customer_id}/conversionActions/{conversion_action_id}`
  84. string resource_name = 1 [
  85. (google.api.field_behavior) = IMMUTABLE,
  86. (google.api.resource_reference) = {
  87. type: "googleads.googleapis.com/ConversionAction"
  88. }
  89. ];
  90. // Output only. The ID of the conversion action.
  91. optional int64 id = 21 [(google.api.field_behavior) = OUTPUT_ONLY];
  92. // The name of the conversion action.
  93. //
  94. // This field is required and should not be empty when creating new
  95. // conversion actions.
  96. optional string name = 22;
  97. // The status of this conversion action for conversion event accrual.
  98. google.ads.googleads.v8.enums.ConversionActionStatusEnum.ConversionActionStatus status = 4;
  99. // Immutable. The type of this conversion action.
  100. google.ads.googleads.v8.enums.ConversionActionTypeEnum.ConversionActionType type = 5 [(google.api.field_behavior) = IMMUTABLE];
  101. // The category of conversions reported for this conversion action.
  102. google.ads.googleads.v8.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 6;
  103. // Output only. The resource name of the conversion action owner customer, or null if this
  104. // is a system-defined conversion action.
  105. optional string owner_customer = 23 [
  106. (google.api.field_behavior) = OUTPUT_ONLY,
  107. (google.api.resource_reference) = {
  108. type: "googleads.googleapis.com/Customer"
  109. }
  110. ];
  111. // Whether this conversion action should be included in the "conversions"
  112. // metric.
  113. optional bool include_in_conversions_metric = 24;
  114. // The maximum number of days that may elapse between an interaction
  115. // (e.g., a click) and a conversion event.
  116. optional int64 click_through_lookback_window_days = 25;
  117. // The maximum number of days which may elapse between an impression and a
  118. // conversion without an interaction.
  119. optional int64 view_through_lookback_window_days = 26;
  120. // Settings related to the value for conversion events associated with this
  121. // conversion action.
  122. ValueSettings value_settings = 11;
  123. // How to count conversion events for the conversion action.
  124. google.ads.googleads.v8.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType counting_type = 12;
  125. // Settings related to this conversion action's attribution model.
  126. AttributionModelSettings attribution_model_settings = 13;
  127. // Output only. The snippets used for tracking conversions.
  128. repeated google.ads.googleads.v8.common.TagSnippet tag_snippets = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
  129. // The phone call duration in seconds after which a conversion should be
  130. // reported for this conversion action.
  131. //
  132. // The value must be between 0 and 10000, inclusive.
  133. optional int64 phone_call_duration_seconds = 27;
  134. // App ID for an app conversion action.
  135. optional string app_id = 28;
  136. // Output only. Mobile app vendor for an app conversion action.
  137. google.ads.googleads.v8.enums.MobileAppVendorEnum.MobileAppVendor mobile_app_vendor = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
  138. // Output only. Firebase settings for Firebase conversion types.
  139. FirebaseSettings firebase_settings = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
  140. // Output only. Third Party App Analytics settings for third party conversion types.
  141. ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
  142. }