user_list.proto 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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/common/user_lists.proto";
  17. import "google/ads/googleads/v10/enums/access_reason.proto";
  18. import "google/ads/googleads/v10/enums/user_list_access_status.proto";
  19. import "google/ads/googleads/v10/enums/user_list_closing_reason.proto";
  20. import "google/ads/googleads/v10/enums/user_list_membership_status.proto";
  21. import "google/ads/googleads/v10/enums/user_list_size_range.proto";
  22. import "google/ads/googleads/v10/enums/user_list_type.proto";
  23. import "google/api/field_behavior.proto";
  24. import "google/api/resource.proto";
  25. option csharp_namespace = "Google.Ads.GoogleAds.V10.Resources";
  26. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v10/resources;resources";
  27. option java_multiple_files = true;
  28. option java_outer_classname = "UserListProto";
  29. option java_package = "com.google.ads.googleads.v10.resources";
  30. option objc_class_prefix = "GAA";
  31. option php_namespace = "Google\\Ads\\GoogleAds\\V10\\Resources";
  32. option ruby_package = "Google::Ads::GoogleAds::V10::Resources";
  33. // Proto file describing the User List resource.
  34. // A user list. This is a list of users a customer may target.
  35. message UserList {
  36. option (google.api.resource) = {
  37. type: "googleads.googleapis.com/UserList"
  38. pattern: "customers/{customer_id}/userLists/{user_list_id}"
  39. };
  40. // Immutable. The resource name of the user list.
  41. // User list resource names have the form:
  42. //
  43. // `customers/{customer_id}/userLists/{user_list_id}`
  44. string resource_name = 1 [
  45. (google.api.field_behavior) = IMMUTABLE,
  46. (google.api.resource_reference) = {
  47. type: "googleads.googleapis.com/UserList"
  48. }
  49. ];
  50. // Output only. Id of the user list.
  51. optional int64 id = 25 [(google.api.field_behavior) = OUTPUT_ONLY];
  52. // Output only. A flag that indicates if a user may edit a list. Depends on the list
  53. // ownership and list type. For example, external remarketing user lists are
  54. // not editable.
  55. //
  56. // This field is read-only.
  57. optional bool read_only = 26 [(google.api.field_behavior) = OUTPUT_ONLY];
  58. // Name of this user list. Depending on its access_reason, the user list name
  59. // may not be unique (e.g. if access_reason=SHARED)
  60. optional string name = 27;
  61. // Description of this user list.
  62. optional string description = 28;
  63. // Membership status of this user list. Indicates whether a user list is open
  64. // or active. Only open user lists can accumulate more users and can be
  65. // targeted to.
  66. google.ads.googleads.v10.enums.UserListMembershipStatusEnum.UserListMembershipStatus membership_status = 6;
  67. // An ID from external system. It is used by user list sellers to correlate
  68. // IDs on their systems.
  69. optional string integration_code = 29;
  70. // Number of days a user's cookie stays on your list since its most recent
  71. // addition to the list. This field must be between 0 and 540 inclusive.
  72. // However, for CRM based userlists, this field can be set to 10000 which
  73. // means no expiration.
  74. //
  75. // It'll be ignored for logical_user_list.
  76. optional int64 membership_life_span = 30;
  77. // Output only. Estimated number of users in this user list, on the Google Display Network.
  78. // This value is null if the number of users has not yet been determined.
  79. //
  80. // This field is read-only.
  81. optional int64 size_for_display = 31 [(google.api.field_behavior) = OUTPUT_ONLY];
  82. // Output only. Size range in terms of number of users of the UserList, on the Google
  83. // Display Network.
  84. //
  85. // This field is read-only.
  86. google.ads.googleads.v10.enums.UserListSizeRangeEnum.UserListSizeRange size_range_for_display = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  87. // Output only. Estimated number of users in this user list in the google.com domain.
  88. // These are the users available for targeting in Search campaigns.
  89. // This value is null if the number of users has not yet been determined.
  90. //
  91. // This field is read-only.
  92. optional int64 size_for_search = 32 [(google.api.field_behavior) = OUTPUT_ONLY];
  93. // Output only. Size range in terms of number of users of the UserList, for Search ads.
  94. //
  95. // This field is read-only.
  96. google.ads.googleads.v10.enums.UserListSizeRangeEnum.UserListSizeRange size_range_for_search = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
  97. // Output only. Type of this list.
  98. //
  99. // This field is read-only.
  100. google.ads.googleads.v10.enums.UserListTypeEnum.UserListType type = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
  101. // Indicating the reason why this user list membership status is closed. It is
  102. // only populated on lists that were automatically closed due to inactivity,
  103. // and will be cleared once the list membership status becomes open.
  104. google.ads.googleads.v10.enums.UserListClosingReasonEnum.UserListClosingReason closing_reason = 14;
  105. // Output only. Indicates the reason this account has been granted access to the list.
  106. // The reason can be SHARED, OWNED, LICENSED or SUBSCRIBED.
  107. //
  108. // This field is read-only.
  109. google.ads.googleads.v10.enums.AccessReasonEnum.AccessReason access_reason = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
  110. // Indicates if this share is still enabled. When a UserList is shared with
  111. // the user this field is set to ENABLED. Later the userList owner can decide
  112. // to revoke the share and make it DISABLED.
  113. // The default value of this field is set to ENABLED.
  114. google.ads.googleads.v10.enums.UserListAccessStatusEnum.UserListAccessStatus account_user_list_status = 16;
  115. // Indicates if this user list is eligible for Google Search Network.
  116. optional bool eligible_for_search = 33;
  117. // Output only. Indicates this user list is eligible for Google Display Network.
  118. //
  119. // This field is read-only.
  120. optional bool eligible_for_display = 34 [(google.api.field_behavior) = OUTPUT_ONLY];
  121. // Output only. Indicates match rate for Customer Match lists. The range of this field is
  122. // [0-100]. This will be null for other list types or when it's not possible
  123. // to calculate the match rate.
  124. //
  125. // This field is read-only.
  126. optional int32 match_rate_percentage = 24 [(google.api.field_behavior) = OUTPUT_ONLY];
  127. // The user list.
  128. //
  129. // Exactly one must be set.
  130. oneof user_list {
  131. // User list of CRM users provided by the advertiser.
  132. google.ads.googleads.v10.common.CrmBasedUserListInfo crm_based_user_list = 19;
  133. // Output only. User list which are similar to users from another UserList.
  134. // These lists are readonly and automatically created by google.
  135. google.ads.googleads.v10.common.SimilarUserListInfo similar_user_list = 20 [(google.api.field_behavior) = OUTPUT_ONLY];
  136. // User list generated by a rule.
  137. google.ads.googleads.v10.common.RuleBasedUserListInfo rule_based_user_list = 21;
  138. // User list that is a custom combination of user lists and user interests.
  139. google.ads.googleads.v10.common.LogicalUserListInfo logical_user_list = 22;
  140. // User list targeting as a collection of conversion or remarketing actions.
  141. google.ads.googleads.v10.common.BasicUserListInfo basic_user_list = 23;
  142. }
  143. }