bidding_strategy.proto 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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/common/bidding.proto";
  17. import "google/ads/googleads/v12/enums/bidding_strategy_status.proto";
  18. import "google/ads/googleads/v12/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.V12.Resources";
  22. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/resources;resources";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "BiddingStrategyProto";
  25. option java_package = "com.google.ads.googleads.v12.resources";
  26. option objc_class_prefix = "GAA";
  27. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Resources";
  28. option ruby_package = "Google::Ads::GoogleAds::V12::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.v12.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.v12.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. // ID of the campaign budget that this portfolio bidding strategy
  82. // is aligned with. When a portfolio and a campaign budget are aligned, that
  83. // means that they are attached to the same set of campaigns. After a bidding
  84. // strategy is aligned with a campaign budget, campaigns that are added to the
  85. // bidding strategy must also use the aligned campaign budget.
  86. int64 aligned_campaign_budget_id = 25;
  87. // Output only. The number of campaigns attached to this bidding strategy.
  88. //
  89. // This field is read-only.
  90. optional int64 campaign_count = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
  91. // Output only. The number of non-removed campaigns attached to this bidding strategy.
  92. //
  93. // This field is read-only.
  94. optional int64 non_removed_campaign_count = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
  95. // The bidding scheme.
  96. //
  97. // Only one can be set.
  98. oneof scheme {
  99. // A bidding strategy that raises bids for clicks that seem more likely to
  100. // lead to a conversion and lowers them for clicks where they seem less
  101. // likely.
  102. google.ads.googleads.v12.common.EnhancedCpc enhanced_cpc = 7;
  103. // An automated bidding strategy to help get the most conversion value for
  104. // your campaigns while spending your budget.
  105. google.ads.googleads.v12.common.MaximizeConversionValue maximize_conversion_value = 21;
  106. // An automated bidding strategy to help get the most conversions for your
  107. // campaigns while spending your budget.
  108. google.ads.googleads.v12.common.MaximizeConversions maximize_conversions = 22;
  109. // A bidding strategy that sets bids to help get as many conversions as
  110. // possible at the target cost-per-acquisition (CPA) you set.
  111. google.ads.googleads.v12.common.TargetCpa target_cpa = 9;
  112. // A bidding strategy that automatically optimizes towards a chosen
  113. // percentage of impressions.
  114. google.ads.googleads.v12.common.TargetImpressionShare target_impression_share = 48;
  115. // A bidding strategy that helps you maximize revenue while averaging a
  116. // specific target Return On Ad Spend (ROAS).
  117. google.ads.googleads.v12.common.TargetRoas target_roas = 11;
  118. // A bid strategy that sets your bids to help get as many clicks as
  119. // possible within your budget.
  120. google.ads.googleads.v12.common.TargetSpend target_spend = 12;
  121. }
  122. }