ad_parameter.proto 3.3 KB

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