customer.proto 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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.v11.resources;
  16. import "google/ads/googleads/v11/enums/conversion_tracking_status_enum.proto";
  17. import "google/ads/googleads/v11/enums/customer_pay_per_conversion_eligibility_failure_reason.proto";
  18. import "google/ads/googleads/v11/enums/customer_status.proto";
  19. import "google/api/field_behavior.proto";
  20. import "google/api/resource.proto";
  21. option csharp_namespace = "Google.Ads.GoogleAds.V11.Resources";
  22. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v11/resources;resources";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "CustomerProto";
  25. option java_package = "com.google.ads.googleads.v11.resources";
  26. option objc_class_prefix = "GAA";
  27. option php_namespace = "Google\\Ads\\GoogleAds\\V11\\Resources";
  28. option ruby_package = "Google::Ads::GoogleAds::V11::Resources";
  29. // Proto file describing the Customer resource.
  30. // A customer.
  31. message Customer {
  32. option (google.api.resource) = {
  33. type: "googleads.googleapis.com/Customer"
  34. pattern: "customers/{customer_id}"
  35. };
  36. // Immutable. The resource name of the customer.
  37. // Customer resource names have the form:
  38. //
  39. // `customers/{customer_id}`
  40. string resource_name = 1 [
  41. (google.api.field_behavior) = IMMUTABLE,
  42. (google.api.resource_reference) = {
  43. type: "googleads.googleapis.com/Customer"
  44. }
  45. ];
  46. // Output only. The ID of the customer.
  47. optional int64 id = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
  48. // Optional, non-unique descriptive name of the customer.
  49. optional string descriptive_name = 20;
  50. // Immutable. The currency in which the account operates.
  51. // A subset of the currency codes from the ISO 4217 standard is
  52. // supported.
  53. optional string currency_code = 21 [(google.api.field_behavior) = IMMUTABLE];
  54. // Immutable. The local timezone ID of the customer.
  55. optional string time_zone = 22 [(google.api.field_behavior) = IMMUTABLE];
  56. // The URL template for constructing a tracking URL out of parameters.
  57. optional string tracking_url_template = 23;
  58. // The URL template for appending params to the final URL
  59. optional string final_url_suffix = 24;
  60. // Whether auto-tagging is enabled for the customer.
  61. optional bool auto_tagging_enabled = 25;
  62. // Output only. Whether the Customer has a Partners program badge. If the Customer is not
  63. // associated with the Partners program, this will be false. For more
  64. // information, see https://support.google.com/partners/answer/3125774.
  65. optional bool has_partners_badge = 26 [(google.api.field_behavior) = OUTPUT_ONLY];
  66. // Output only. Whether the customer is a manager.
  67. optional bool manager = 27 [(google.api.field_behavior) = OUTPUT_ONLY];
  68. // Output only. Whether the customer is a test account.
  69. optional bool test_account = 28 [(google.api.field_behavior) = OUTPUT_ONLY];
  70. // Call reporting setting for a customer. Only mutable in an `update`
  71. // operation.
  72. CallReportingSetting call_reporting_setting = 10;
  73. // Output only. Conversion tracking setting for a customer.
  74. ConversionTrackingSetting conversion_tracking_setting = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
  75. // Output only. Remarketing setting for a customer.
  76. RemarketingSetting remarketing_setting = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
  77. // Output only. Reasons why the customer is not eligible to use PaymentMode.CONVERSIONS. If
  78. // the list is empty, the customer is eligible. This field is read-only.
  79. repeated google.ads.googleads.v11.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
  80. // Output only. Optimization score of the customer.
  81. //
  82. // Optimization score is an estimate of how well a customer's campaigns are
  83. // set to perform. It ranges from 0% (0.0) to 100% (1.0). This field is null
  84. // for all manager customers, and for unscored non-manager customers.
  85. //
  86. // See "About optimization score" at
  87. // https://support.google.com/google-ads/answer/9061546.
  88. //
  89. // This field is read-only.
  90. optional double optimization_score = 29 [(google.api.field_behavior) = OUTPUT_ONLY];
  91. // Output only. Optimization score weight of the customer.
  92. //
  93. // Optimization score weight can be used to compare/aggregate optimization
  94. // scores across multiple non-manager customers. The aggregate optimization
  95. // score of a manager is computed as the sum over all of their customers of
  96. // `Customer.optimization_score * Customer.optimization_score_weight`. This
  97. // field is 0 for all manager customers, and for unscored non-manager
  98. // customers.
  99. //
  100. // This field is read-only.
  101. double optimization_score_weight = 30 [(google.api.field_behavior) = OUTPUT_ONLY];
  102. // Output only. The status of the customer.
  103. google.ads.googleads.v11.enums.CustomerStatusEnum.CustomerStatus status = 36 [(google.api.field_behavior) = OUTPUT_ONLY];
  104. }
  105. // Call reporting setting for a customer. Only mutable in an `update` operation.
  106. message CallReportingSetting {
  107. // Enable reporting of phone call events by redirecting them through Google
  108. // System.
  109. optional bool call_reporting_enabled = 10;
  110. // Whether to enable call conversion reporting.
  111. optional bool call_conversion_reporting_enabled = 11;
  112. // Customer-level call conversion action to attribute a call conversion to.
  113. // If not set a default conversion action is used. Only in effect when
  114. // call_conversion_reporting_enabled is set to true.
  115. optional string call_conversion_action = 12 [(google.api.resource_reference) = {
  116. type: "googleads.googleapis.com/ConversionAction"
  117. }];
  118. }
  119. // A collection of customer-wide settings related to Google Ads Conversion
  120. // Tracking.
  121. message ConversionTrackingSetting {
  122. // Output only. The conversion tracking id used for this account. This id doesn't indicate
  123. // whether the customer uses conversion tracking (conversion_tracking_status
  124. // does). This field is read-only.
  125. optional int64 conversion_tracking_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  126. // Output only. The conversion tracking id of the customer's manager. This is set when the
  127. // customer is opted into cross account conversion tracking, and it overrides
  128. // conversion_tracking_id. This field can only be managed through the Google
  129. // Ads UI. This field is read-only.
  130. optional int64 cross_account_conversion_tracking_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  131. // Output only. Whether the customer has accepted customer data terms. If using
  132. // cross-account conversion tracking, this value is inherited from the
  133. // manager. This field is read-only. For more
  134. // information, see https://support.google.com/adspolicy/answer/7475709.
  135. bool accepted_customer_data_terms = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  136. // Output only. Conversion tracking status. It indicates whether the customer is using
  137. // conversion tracking, and who is the conversion tracking owner of this
  138. // customer. If this customer is using cross-account conversion tracking,
  139. // the value returned will differ based on the `login-customer-id` of the
  140. // request.
  141. google.ads.googleads.v11.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  142. // Output only. Whether the customer is opted-in for enhanced conversions
  143. // for leads. If using cross-account conversion tracking, this value is
  144. // inherited from the manager. This field is read-only.
  145. bool enhanced_conversions_for_leads_enabled = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  146. // Output only. The resource name of the customer where conversions are created and
  147. // managed. This field is read-only.
  148. string google_ads_conversion_customer = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  149. }
  150. // Remarketing setting for a customer.
  151. message RemarketingSetting {
  152. // Output only. The Google tag.
  153. optional string google_global_site_tag = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  154. }