custom_audience.proto 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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/custom_audience_member_type.proto";
  17. import "google/ads/googleads/v6/enums/custom_audience_status.proto";
  18. import "google/ads/googleads/v6/enums/custom_audience_type.proto";
  19. import "google/api/field_behavior.proto";
  20. import "google/api/resource.proto";
  21. import "google/api/annotations.proto";
  22. option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources";
  23. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "CustomAudienceProto";
  26. option java_package = "com.google.ads.googleads.v6.resources";
  27. option objc_class_prefix = "GAA";
  28. option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources";
  29. option ruby_package = "Google::Ads::GoogleAds::V6::Resources";
  30. // Proto file describing the Custom Audience resource.
  31. // A custom audience. This is a list of users by interest.
  32. message CustomAudience {
  33. option (google.api.resource) = {
  34. type: "googleads.googleapis.com/CustomAudience"
  35. pattern: "customers/{customer_id}/customAudiences/{custom_audience_id}"
  36. };
  37. // Immutable. The resource name of the custom audience.
  38. // Custom audience resource names have the form:
  39. //
  40. // `customers/{customer_id}/customAudiences/{custom_audience_id}`
  41. string resource_name = 1 [
  42. (google.api.field_behavior) = IMMUTABLE,
  43. (google.api.resource_reference) = {
  44. type: "googleads.googleapis.com/CustomAudience"
  45. }
  46. ];
  47. // Output only. ID of the custom audience.
  48. int64 id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  49. // Output only. Status of this custom audience. Indicates whether the custom audience is
  50. // enabled or removed.
  51. google.ads.googleads.v6.enums.CustomAudienceStatusEnum.CustomAudienceStatus status = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  52. // Name of the custom audience. It should be unique for all custom audiences
  53. // created by a customer.
  54. // This field is required for creating operations.
  55. string name = 4;
  56. // Type of the custom audience.
  57. // ("INTEREST" OR "PURCHASE_INTENT" is not allowed for newly created custom
  58. // audience but kept for existing audiences)
  59. google.ads.googleads.v6.enums.CustomAudienceTypeEnum.CustomAudienceType type = 5;
  60. // Description of this custom audience.
  61. string description = 6;
  62. // List of custom audience members that this custom audience is composed of.
  63. // Members can be added during CustomAudience creation. If members are
  64. // presented in UPDATE operation, existing members will be overridden.
  65. repeated CustomAudienceMember members = 7;
  66. }
  67. // A member of custom audience. A member can be a KEYWORD, URL,
  68. // PLACE_CATEGORY or APP. It can only be created or removed but not changed.
  69. message CustomAudienceMember {
  70. // The type of custom audience member, KEYWORD, URL, PLACE_CATEGORY or APP.
  71. google.ads.googleads.v6.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType member_type = 1;
  72. // The CustomAudienceMember value. One field is populated depending on the
  73. // member type.
  74. oneof value {
  75. // A keyword or keyword phrase — at most 10 words and 80 characters.
  76. // Languages with double-width characters such as Chinese, Japanese,
  77. // or Korean, are allowed 40 characters, which describes the user's
  78. // interests or actions.
  79. string keyword = 2;
  80. // An HTTP URL, protocol-included — at most 2048 characters, which includes
  81. // contents users have interests in.
  82. string url = 3;
  83. // A place type described by a place category users visit.
  84. int64 place_category = 4;
  85. // A package name of Android apps which users installed such as
  86. // com.google.example.
  87. string app = 5;
  88. }
  89. }