conversion_custom_variable.proto 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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/conversion_custom_variable_status.proto";
  17. import "google/api/field_behavior.proto";
  18. import "google/api/resource.proto";
  19. option csharp_namespace = "Google.Ads.GoogleAds.V12.Resources";
  20. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/resources;resources";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "ConversionCustomVariableProto";
  23. option java_package = "com.google.ads.googleads.v12.resources";
  24. option objc_class_prefix = "GAA";
  25. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Resources";
  26. option ruby_package = "Google::Ads::GoogleAds::V12::Resources";
  27. // Proto file describing the Conversion Custom Variable resource.
  28. // A conversion custom variable
  29. // See "About custom variables for conversions" at
  30. // https://support.google.com/google-ads/answer/9964350
  31. message ConversionCustomVariable {
  32. option (google.api.resource) = {
  33. type: "googleads.googleapis.com/ConversionCustomVariable"
  34. pattern: "customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}"
  35. };
  36. // Immutable. The resource name of the conversion custom variable.
  37. // Conversion custom variable resource names have the form:
  38. //
  39. // `customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}`
  40. string resource_name = 1 [
  41. (google.api.field_behavior) = IMMUTABLE,
  42. (google.api.resource_reference) = {
  43. type: "googleads.googleapis.com/ConversionCustomVariable"
  44. }
  45. ];
  46. // Output only. The ID of the conversion custom variable.
  47. int64 id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  48. // Required. The name of the conversion custom variable.
  49. // Name should be unique. The maximum length of name is 100 characters.
  50. // There should not be any extra spaces before and after.
  51. string name = 3 [(google.api.field_behavior) = REQUIRED];
  52. // Required. Immutable. The tag of the conversion custom variable. It is used in the event snippet
  53. // and sent to Google Ads along with conversion pings. For conversion uploads
  54. // in Google Ads API, the resource name of the conversion custom variable is
  55. // used.
  56. // Tag should be unique. The maximum size of tag is 100 bytes.
  57. // There should not be any extra spaces before and after.
  58. // Currently only lowercase letters, numbers and underscores are allowed in
  59. // the tag.
  60. string tag = 4 [
  61. (google.api.field_behavior) = REQUIRED,
  62. (google.api.field_behavior) = IMMUTABLE
  63. ];
  64. // The status of the conversion custom variable for conversion event accrual.
  65. google.ads.googleads.v12.enums.ConversionCustomVariableStatusEnum.ConversionCustomVariableStatus status = 5;
  66. // Output only. The resource name of the customer that owns the conversion custom variable.
  67. string owner_customer = 6 [
  68. (google.api.field_behavior) = OUTPUT_ONLY,
  69. (google.api.resource_reference) = {
  70. type: "googleads.googleapis.com/Customer"
  71. }
  72. ];
  73. }