custom_interest.proto 3.6 KB

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