conversion_action.proto 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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/common/tag_snippet.proto";
  17. import "google/ads/googleads/v12/enums/attribution_model.proto";
  18. import "google/ads/googleads/v12/enums/conversion_action_category.proto";
  19. import "google/ads/googleads/v12/enums/conversion_action_counting_type.proto";
  20. import "google/ads/googleads/v12/enums/conversion_action_status.proto";
  21. import "google/ads/googleads/v12/enums/conversion_action_type.proto";
  22. import "google/ads/googleads/v12/enums/conversion_origin.proto";
  23. import "google/ads/googleads/v12/enums/data_driven_model_status.proto";
  24. import "google/ads/googleads/v12/enums/mobile_app_vendor.proto";
  25. import "google/api/field_behavior.proto";
  26. import "google/api/resource.proto";
  27. option csharp_namespace = "Google.Ads.GoogleAds.V12.Resources";
  28. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/resources;resources";
  29. option java_multiple_files = true;
  30. option java_outer_classname = "ConversionActionProto";
  31. option java_package = "com.google.ads.googleads.v12.resources";
  32. option objc_class_prefix = "GAA";
  33. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Resources";
  34. option ruby_package = "Google::Ads::GoogleAds::V12::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.v12.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.v12.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. // Output only. The GA property ID of the conversion.
  80. int64 property_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  81. // Output only. The GA property name of the conversion.
  82. string property_name = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  83. }
  84. // Immutable. The resource name of the conversion action.
  85. // Conversion action resource names have the form:
  86. //
  87. // `customers/{customer_id}/conversionActions/{conversion_action_id}`
  88. string resource_name = 1 [
  89. (google.api.field_behavior) = IMMUTABLE,
  90. (google.api.resource_reference) = {
  91. type: "googleads.googleapis.com/ConversionAction"
  92. }
  93. ];
  94. // Output only. The ID of the conversion action.
  95. optional int64 id = 21 [(google.api.field_behavior) = OUTPUT_ONLY];
  96. // The name of the conversion action.
  97. //
  98. // This field is required and should not be empty when creating new
  99. // conversion actions.
  100. optional string name = 22;
  101. // The status of this conversion action for conversion event accrual.
  102. google.ads.googleads.v12.enums.ConversionActionStatusEnum.ConversionActionStatus status = 4;
  103. // Immutable. The type of this conversion action.
  104. google.ads.googleads.v12.enums.ConversionActionTypeEnum.ConversionActionType type = 5 [(google.api.field_behavior) = IMMUTABLE];
  105. // Output only. The conversion origin of this conversion action.
  106. google.ads.googleads.v12.enums.ConversionOriginEnum.ConversionOrigin origin = 30 [(google.api.field_behavior) = OUTPUT_ONLY];
  107. // If a conversion action's primary_for_goal bit is false, the conversion
  108. // action is non-biddable for all campaigns regardless of their customer
  109. // conversion goal or campaign conversion goal.
  110. // However, custom conversion goals do not respect primary_for_goal, so if
  111. // a campaign has a custom conversion goal configured with a
  112. // primary_for_goal = false conversion action, that conversion action is
  113. // still biddable.
  114. // By default, primary_for_goal will be true if not set. In V9,
  115. // primary_for_goal can only be set to false after creation through an
  116. // 'update' operation because it's not declared as optional.
  117. optional bool primary_for_goal = 31;
  118. // The category of conversions reported for this conversion action.
  119. google.ads.googleads.v12.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 6;
  120. // Output only. The resource name of the conversion action owner customer, or null if this
  121. // is a system-defined conversion action.
  122. optional string owner_customer = 23 [
  123. (google.api.field_behavior) = OUTPUT_ONLY,
  124. (google.api.resource_reference) = {
  125. type: "googleads.googleapis.com/Customer"
  126. }
  127. ];
  128. // Whether this conversion action should be included in the "conversions"
  129. // metric.
  130. optional bool include_in_conversions_metric = 24;
  131. // The maximum number of days that may elapse between an interaction
  132. // (for example, a click) and a conversion event.
  133. optional int64 click_through_lookback_window_days = 25;
  134. // The maximum number of days which may elapse between an impression and a
  135. // conversion without an interaction.
  136. optional int64 view_through_lookback_window_days = 26;
  137. // Settings related to the value for conversion events associated with this
  138. // conversion action.
  139. ValueSettings value_settings = 11;
  140. // How to count conversion events for the conversion action.
  141. google.ads.googleads.v12.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType counting_type = 12;
  142. // Settings related to this conversion action's attribution model.
  143. AttributionModelSettings attribution_model_settings = 13;
  144. // Output only. The snippets used for tracking conversions.
  145. repeated google.ads.googleads.v12.common.TagSnippet tag_snippets = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
  146. // The phone call duration in seconds after which a conversion should be
  147. // reported for this conversion action.
  148. //
  149. // The value must be between 0 and 10000, inclusive.
  150. optional int64 phone_call_duration_seconds = 27;
  151. // App ID for an app conversion action.
  152. optional string app_id = 28;
  153. // Output only. Mobile app vendor for an app conversion action.
  154. google.ads.googleads.v12.enums.MobileAppVendorEnum.MobileAppVendor mobile_app_vendor = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
  155. // Output only. Firebase settings for Firebase conversion types.
  156. FirebaseSettings firebase_settings = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
  157. // Output only. Third Party App Analytics settings for third party conversion types.
  158. ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
  159. }