bidding_strategy.proto 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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.v11.resources;
  16. import "google/ads/googleads/v11/common/bidding.proto";
  17. import "google/ads/googleads/v11/enums/bidding_strategy_status.proto";
  18. import "google/ads/googleads/v11/enums/bidding_strategy_type.proto";
  19. import "google/api/field_behavior.proto";
  20. import "google/api/resource.proto";
  21. option csharp_namespace = "Google.Ads.GoogleAds.V11.Resources";
  22. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v11/resources;resources";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "BiddingStrategyProto";
  25. option java_package = "com.google.ads.googleads.v11.resources";
  26. option objc_class_prefix = "GAA";
  27. option php_namespace = "Google\\Ads\\GoogleAds\\V11\\Resources";
  28. option ruby_package = "Google::Ads::GoogleAds::V11::Resources";
  29. // Proto file describing the BiddingStrategy resource
  30. // A bidding strategy.
  31. message BiddingStrategy {
  32. option (google.api.resource) = {
  33. type: "googleads.googleapis.com/BiddingStrategy"
  34. pattern: "customers/{customer_id}/biddingStrategies/{bidding_strategy_id}"
  35. };
  36. // Immutable. The resource name of the bidding strategy.
  37. // Bidding strategy resource names have the form:
  38. //
  39. // `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}`
  40. string resource_name = 1 [
  41. (google.api.field_behavior) = IMMUTABLE,
  42. (google.api.resource_reference) = {
  43. type: "googleads.googleapis.com/BiddingStrategy"
  44. }
  45. ];
  46. // Output only. The ID of the bidding strategy.
  47. optional int64 id = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
  48. // The name of the bidding strategy.
  49. // All bidding strategies within an account must be named distinctly.
  50. //
  51. // The length of this string should be between 1 and 255, inclusive,
  52. // in UTF-8 bytes, (trimmed).
  53. optional string name = 17;
  54. // Output only. The status of the bidding strategy.
  55. //
  56. // This field is read-only.
  57. google.ads.googleads.v11.enums.BiddingStrategyStatusEnum.BiddingStrategyStatus status = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
  58. // Output only. The type of the bidding strategy.
  59. // Create a bidding strategy by setting the bidding scheme.
  60. //
  61. // This field is read-only.
  62. google.ads.googleads.v11.enums.BiddingStrategyTypeEnum.BiddingStrategyType type = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  63. // Immutable. The currency used by the bidding strategy (ISO 4217 three-letter code).
  64. //
  65. // For bidding strategies in manager customers, this currency can be set on
  66. // creation and defaults to the manager customer's currency. For serving
  67. // customers, this field cannot be set; all strategies in a serving customer
  68. // implicitly use the serving customer's currency. In all cases the
  69. // effective_currency_code field returns the currency used by the strategy.
  70. string currency_code = 23 [(google.api.field_behavior) = IMMUTABLE];
  71. // Output only. The currency used by the bidding strategy (ISO 4217 three-letter code).
  72. //
  73. // For bidding strategies in manager customers, this is the currency set by
  74. // the advertiser when creating the strategy. For serving customers, this is
  75. // the customer's currency_code.
  76. //
  77. // Bidding strategy metrics are reported in this currency.
  78. //
  79. // This field is read-only.
  80. optional string effective_currency_code = 20 [(google.api.field_behavior) = OUTPUT_ONLY];
  81. // Output only. The number of campaigns attached to this bidding strategy.
  82. //
  83. // This field is read-only.
  84. optional int64 campaign_count = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
  85. // Output only. The number of non-removed campaigns attached to this bidding strategy.
  86. //
  87. // This field is read-only.
  88. optional int64 non_removed_campaign_count = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
  89. // The bidding scheme.
  90. //
  91. // Only one can be set.
  92. oneof scheme {
  93. // A bidding strategy that raises bids for clicks that seem more likely to
  94. // lead to a conversion and lowers them for clicks where they seem less
  95. // likely.
  96. google.ads.googleads.v11.common.EnhancedCpc enhanced_cpc = 7;
  97. // An automated bidding strategy to help get the most conversion value for
  98. // your campaigns while spending your budget.
  99. google.ads.googleads.v11.common.MaximizeConversionValue maximize_conversion_value = 21;
  100. // An automated bidding strategy to help get the most conversions for your
  101. // campaigns while spending your budget.
  102. google.ads.googleads.v11.common.MaximizeConversions maximize_conversions = 22;
  103. // A bidding strategy that sets bids to help get as many conversions as
  104. // possible at the target cost-per-acquisition (CPA) you set.
  105. google.ads.googleads.v11.common.TargetCpa target_cpa = 9;
  106. // A bidding strategy that automatically optimizes towards a chosen
  107. // percentage of impressions.
  108. google.ads.googleads.v11.common.TargetImpressionShare target_impression_share = 48;
  109. // A bidding strategy that helps you maximize revenue while averaging a
  110. // specific target Return On Ad Spend (ROAS).
  111. google.ads.googleads.v11.common.TargetRoas target_roas = 11;
  112. // A bid strategy that sets your bids to help get as many clicks as
  113. // possible within your budget.
  114. google.ads.googleads.v11.common.TargetSpend target_spend = 12;
  115. }
  116. }