customer.proto 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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.v10.resources;
  16. import "google/ads/googleads/v10/enums/conversion_tracking_status_enum.proto";
  17. import "google/ads/googleads/v10/enums/customer_pay_per_conversion_eligibility_failure_reason.proto";
  18. import "google/ads/googleads/v10/enums/customer_status.proto";
  19. import "google/api/field_behavior.proto";
  20. import "google/api/resource.proto";
  21. option csharp_namespace = "Google.Ads.GoogleAds.V10.Resources";
  22. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v10/resources;resources";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "CustomerProto";
  25. option java_package = "com.google.ads.googleads.v10.resources";
  26. option objc_class_prefix = "GAA";
  27. option php_namespace = "Google\\Ads\\GoogleAds\\V10\\Resources";
  28. option ruby_package = "Google::Ads::GoogleAds::V10::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.
  71. CallReportingSetting call_reporting_setting = 10;
  72. // Output only. Conversion tracking setting for a customer.
  73. ConversionTrackingSetting conversion_tracking_setting = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
  74. // Output only. Remarketing setting for a customer.
  75. RemarketingSetting remarketing_setting = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
  76. // Output only. Reasons why the customer is not eligible to use PaymentMode.CONVERSIONS. If
  77. // the list is empty, the customer is eligible. This field is read-only.
  78. repeated google.ads.googleads.v10.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
  79. // Output only. Optimization score of the customer.
  80. //
  81. // Optimization score is an estimate of how well a customer's campaigns are
  82. // set to perform. It ranges from 0% (0.0) to 100% (1.0). This field is null
  83. // for all manager customers, and for unscored non-manager customers.
  84. //
  85. // See "About optimization score" at
  86. // https://support.google.com/google-ads/answer/9061546.
  87. //
  88. // This field is read-only.
  89. optional double optimization_score = 29 [(google.api.field_behavior) = OUTPUT_ONLY];
  90. // Output only. Optimization score weight of the customer.
  91. //
  92. // Optimization score weight can be used to compare/aggregate optimization
  93. // scores across multiple non-manager customers. The aggregate optimization
  94. // score of a manager is computed as the sum over all of their customers of
  95. // `Customer.optimization_score * Customer.optimization_score_weight`. This
  96. // field is 0 for all manager customers, and for unscored non-manager
  97. // customers.
  98. //
  99. // This field is read-only.
  100. double optimization_score_weight = 30 [(google.api.field_behavior) = OUTPUT_ONLY];
  101. // Output only. The status of the customer.
  102. google.ads.googleads.v10.enums.CustomerStatusEnum.CustomerStatus status = 36 [(google.api.field_behavior) = OUTPUT_ONLY];
  103. }
  104. // Call reporting setting for a customer.
  105. message CallReportingSetting {
  106. // Enable reporting of phone call events by redirecting them via Google
  107. // System.
  108. optional bool call_reporting_enabled = 10;
  109. // Whether to enable call conversion reporting.
  110. optional bool call_conversion_reporting_enabled = 11;
  111. // Customer-level call conversion action to attribute a call conversion to.
  112. // If not set a default conversion action is used. Only in effect when
  113. // call_conversion_reporting_enabled is set to true.
  114. optional string call_conversion_action = 12 [(google.api.resource_reference) = {
  115. type: "googleads.googleapis.com/ConversionAction"
  116. }];
  117. }
  118. // A collection of customer-wide settings related to Google Ads Conversion
  119. // Tracking.
  120. message ConversionTrackingSetting {
  121. // Output only. The conversion tracking id used for this account. This id is automatically
  122. // assigned after any conversion tracking feature is used. If the customer
  123. // doesn't use conversion tracking, this is 0. This field is read-only.
  124. optional int64 conversion_tracking_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  125. // Output only. The conversion tracking id of the customer's manager. This is set when the
  126. // customer is opted into cross account conversion tracking, and it overrides
  127. // conversion_tracking_id. This field can only be managed through the Google
  128. // Ads UI. This field is read-only.
  129. optional int64 cross_account_conversion_tracking_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  130. // Output only. Whether the customer has accepted customer data terms. If using
  131. // cross-account conversion tracking, this value is inherited from the
  132. // manager. This field is read-only. For more
  133. // information, see https://support.google.com/adspolicy/answer/7475709.
  134. bool accepted_customer_data_terms = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  135. // Output only. Conversion tracking status. It indicates whether the customer is using
  136. // conversion tracking, and who is the conversion tracking owner of this
  137. // customer. If this customer is using cross-account conversion tracking,
  138. // the value returned will differ based on the `login-customer-id` of the
  139. // request.
  140. google.ads.googleads.v10.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  141. // Output only. Whether the customer is opted-in for enhanced conversions
  142. // for leads. If using cross-account conversion tracking, this value is
  143. // inherited from the manager. This field is read-only.
  144. bool enhanced_conversions_for_leads_enabled = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  145. // Output only. The resource name of the customer where conversions are created and
  146. // managed. This field is read-only.
  147. string google_ads_conversion_customer = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  148. }
  149. // Remarketing setting for a customer.
  150. message RemarketingSetting {
  151. // Output only. The Google tag.
  152. optional string google_global_site_tag = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  153. }