customizer_attribute.proto 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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/customizer_attribute_status.proto";
  17. import "google/ads/googleads/v12/enums/customizer_attribute_type.proto";
  18. import "google/api/field_behavior.proto";
  19. import "google/api/resource.proto";
  20. option csharp_namespace = "Google.Ads.GoogleAds.V12.Resources";
  21. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/resources;resources";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "CustomizerAttributeProto";
  24. option java_package = "com.google.ads.googleads.v12.resources";
  25. option objc_class_prefix = "GAA";
  26. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Resources";
  27. option ruby_package = "Google::Ads::GoogleAds::V12::Resources";
  28. // A customizer attribute.
  29. // Use CustomerCustomizer, CampaignCustomizer, AdGroupCustomizer, or
  30. // AdGroupCriterionCustomizer to associate a customizer attribute and
  31. // set its value at the customer, campaign, ad group, or ad group criterion
  32. // level, respectively.
  33. message CustomizerAttribute {
  34. option (google.api.resource) = {
  35. type: "googleads.googleapis.com/CustomizerAttribute"
  36. pattern: "customers/{customer_id}/customizerAttributes/{customizer_attribute_id}"
  37. };
  38. // Immutable. The resource name of the customizer attribute.
  39. // Customizer Attribute resource names have the form:
  40. //
  41. // `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}`
  42. string resource_name = 1 [
  43. (google.api.field_behavior) = IMMUTABLE,
  44. (google.api.resource_reference) = {
  45. type: "googleads.googleapis.com/CustomizerAttribute"
  46. }
  47. ];
  48. // Output only. The ID of the customizer attribute.
  49. int64 id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  50. // Required. Immutable. Name of the customizer attribute. Required. It must have a minimum length
  51. // of 1 and maximum length of 40. Name of an enabled customizer attribute must
  52. // be unique (case insensitive).
  53. string name = 3 [
  54. (google.api.field_behavior) = REQUIRED,
  55. (google.api.field_behavior) = IMMUTABLE
  56. ];
  57. // Immutable. The type of the customizer attribute.
  58. google.ads.googleads.v12.enums.CustomizerAttributeTypeEnum.CustomizerAttributeType type = 4 [(google.api.field_behavior) = IMMUTABLE];
  59. // Output only. The status of the customizer attribute.
  60. google.ads.googleads.v12.enums.CustomizerAttributeStatusEnum.CustomizerAttributeStatus status = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  61. }