ad_parameter.proto 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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.v7.resources;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/api/annotations.proto";
  19. option csharp_namespace = "Google.Ads.GoogleAds.V7.Resources";
  20. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v7/resources;resources";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "AdParameterProto";
  23. option java_package = "com.google.ads.googleads.v7.resources";
  24. option objc_class_prefix = "GAA";
  25. option php_namespace = "Google\\Ads\\GoogleAds\\V7\\Resources";
  26. option ruby_package = "Google::Ads::GoogleAds::V7::Resources";
  27. // Proto file describing the ad parameter resource.
  28. // An ad parameter that is used to update numeric values (such as prices or
  29. // inventory levels) in any text line of an ad (including URLs). There can
  30. // be a maximum of two AdParameters per ad group criterion. (One with
  31. // parameter_index = 1 and one with parameter_index = 2.)
  32. // In the ad the parameters are referenced by a placeholder of the form
  33. // "{param#:value}". E.g. "{param1:$17}"
  34. message AdParameter {
  35. option (google.api.resource) = {
  36. type: "googleads.googleapis.com/AdParameter"
  37. pattern: "customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}"
  38. };
  39. // Immutable. The resource name of the ad parameter.
  40. // Ad parameter resource names have the form:
  41. //
  42. // `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}`
  43. string resource_name = 1 [
  44. (google.api.field_behavior) = IMMUTABLE,
  45. (google.api.resource_reference) = {
  46. type: "googleads.googleapis.com/AdParameter"
  47. }
  48. ];
  49. // Immutable. The ad group criterion that this ad parameter belongs to.
  50. optional string ad_group_criterion = 5 [
  51. (google.api.field_behavior) = IMMUTABLE,
  52. (google.api.resource_reference) = {
  53. type: "googleads.googleapis.com/AdGroupCriterion"
  54. }
  55. ];
  56. // Immutable. The unique index of this ad parameter. Must be either 1 or 2.
  57. optional int64 parameter_index = 6 [(google.api.field_behavior) = IMMUTABLE];
  58. // Numeric value to insert into the ad text. The following restrictions
  59. // apply:
  60. // - Can use comma or period as a separator, with an optional period or
  61. // comma (respectively) for fractional values. For example, 1,000,000.00
  62. // and 2.000.000,10 are valid.
  63. // - Can be prepended or appended with a currency symbol. For example,
  64. // $99.99 is valid.
  65. // - Can be prepended or appended with a currency code. For example, 99.99USD
  66. // and EUR200 are valid.
  67. // - Can use '%'. For example, 1.0% and 1,0% are valid.
  68. // - Can use plus or minus. For example, -10.99 and 25+ are valid.
  69. // - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are
  70. // valid.
  71. optional string insertion_text = 7;
  72. }