customer_client.proto 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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/enums/customer_status.proto";
  17. import "google/api/field_behavior.proto";
  18. import "google/api/resource.proto";
  19. option csharp_namespace = "Google.Ads.GoogleAds.V12.Resources";
  20. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/resources;resources";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "CustomerClientProto";
  23. option java_package = "com.google.ads.googleads.v12.resources";
  24. option objc_class_prefix = "GAA";
  25. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Resources";
  26. option ruby_package = "Google::Ads::GoogleAds::V12::Resources";
  27. // Proto file describing the CustomerClient resource.
  28. // A link between the given customer and a client customer. CustomerClients only
  29. // exist for manager customers. All direct and indirect client customers are
  30. // included, as well as the manager itself.
  31. message CustomerClient {
  32. option (google.api.resource) = {
  33. type: "googleads.googleapis.com/CustomerClient"
  34. pattern: "customers/{customer_id}/customerClients/{client_customer_id}"
  35. };
  36. // Output only. The resource name of the customer client.
  37. // CustomerClient resource names have the form:
  38. // `customers/{customer_id}/customerClients/{client_customer_id}`
  39. string resource_name = 1 [
  40. (google.api.field_behavior) = OUTPUT_ONLY,
  41. (google.api.resource_reference) = {
  42. type: "googleads.googleapis.com/CustomerClient"
  43. }
  44. ];
  45. // Output only. The resource name of the client-customer which is linked to
  46. // the given customer. Read only.
  47. optional string client_customer = 12 [
  48. (google.api.field_behavior) = OUTPUT_ONLY,
  49. (google.api.resource_reference) = {
  50. type: "googleads.googleapis.com/Customer"
  51. }
  52. ];
  53. // Output only. Specifies whether this is a
  54. // [hidden account](https://support.google.com/google-ads/answer/7519830).
  55. // Read only.
  56. optional bool hidden = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
  57. // Output only. Distance between given customer and client. For self link, the level value
  58. // will be 0. Read only.
  59. optional int64 level = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
  60. // Output only. Common Locale Data Repository (CLDR) string representation of the
  61. // time zone of the client, for example, America/Los_Angeles. Read only.
  62. optional string time_zone = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
  63. // Output only. Identifies if the client is a test account. Read only.
  64. optional bool test_account = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
  65. // Output only. Identifies if the client is a manager. Read only.
  66. optional bool manager = 17 [(google.api.field_behavior) = OUTPUT_ONLY];
  67. // Output only. Descriptive name for the client. Read only.
  68. optional string descriptive_name = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
  69. // Output only. Currency code (for example, 'USD', 'EUR') for the client. Read only.
  70. optional string currency_code = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
  71. // Output only. The ID of the client customer. Read only.
  72. optional int64 id = 20 [(google.api.field_behavior) = OUTPUT_ONLY];
  73. // Output only. The resource names of the labels owned by the requesting customer that are
  74. // applied to the client customer.
  75. // Label resource names have the form:
  76. //
  77. // `customers/{customer_id}/labels/{label_id}`
  78. repeated string applied_labels = 21 [
  79. (google.api.field_behavior) = OUTPUT_ONLY,
  80. (google.api.resource_reference) = {
  81. type: "googleads.googleapis.com/Label"
  82. }
  83. ];
  84. // Output only. The status of the client customer. Read only.
  85. google.ads.googleads.v12.enums.CustomerStatusEnum.CustomerStatus status = 22 [(google.api.field_behavior) = OUTPUT_ONLY];
  86. }