customer.proto 6.9 KB

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