custom_audience.proto 4.2 KB

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