bidding_strategy.proto 5.2 KB

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