custom_interest.proto 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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_interest_member_type.proto";
  17. import "google/ads/googleads/v12/enums/custom_interest_status.proto";
  18. import "google/ads/googleads/v12/enums/custom_interest_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 = "CustomInterestProto";
  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 Interest resource.
  30. // A custom interest. This is a list of users by interest.
  31. message CustomInterest {
  32. option (google.api.resource) = {
  33. type: "googleads.googleapis.com/CustomInterest"
  34. pattern: "customers/{customer_id}/customInterests/{custom_interest_id}"
  35. };
  36. // Immutable. The resource name of the custom interest.
  37. // Custom interest resource names have the form:
  38. //
  39. // `customers/{customer_id}/customInterests/{custom_interest_id}`
  40. string resource_name = 1 [
  41. (google.api.field_behavior) = IMMUTABLE,
  42. (google.api.resource_reference) = {
  43. type: "googleads.googleapis.com/CustomInterest"
  44. }
  45. ];
  46. // Output only. Id of the custom interest.
  47. optional int64 id = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  48. // Status of this custom interest. Indicates whether the custom interest is
  49. // enabled or removed.
  50. google.ads.googleads.v12.enums.CustomInterestStatusEnum.CustomInterestStatus status = 3;
  51. // Name of the custom interest. It should be unique across the same custom
  52. // affinity audience.
  53. // This field is required for create operations.
  54. optional string name = 9;
  55. // Type of the custom interest, CUSTOM_AFFINITY or CUSTOM_INTENT.
  56. // By default the type is set to CUSTOM_AFFINITY.
  57. google.ads.googleads.v12.enums.CustomInterestTypeEnum.CustomInterestType type = 5;
  58. // Description of this custom interest audience.
  59. optional string description = 10;
  60. // List of custom interest members that this custom interest is composed of.
  61. // Members can be added during CustomInterest creation. If members are
  62. // presented in UPDATE operation, existing members will be overridden.
  63. repeated CustomInterestMember members = 7;
  64. }
  65. // A member of custom interest audience. A member can be a keyword or url.
  66. // It is immutable, that is, it can only be created or removed but not changed.
  67. message CustomInterestMember {
  68. // The type of custom interest member, KEYWORD or URL.
  69. google.ads.googleads.v12.enums.CustomInterestMemberTypeEnum.CustomInterestMemberType member_type = 1;
  70. // Keyword text when member_type is KEYWORD or URL string when
  71. // member_type is URL.
  72. optional string parameter = 3;
  73. }