campaign_budget.proto 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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/ads/googleads/v10/enums/budget_delivery_method.proto";
  17. import "google/ads/googleads/v10/enums/budget_period.proto";
  18. import "google/ads/googleads/v10/enums/budget_status.proto";
  19. import "google/ads/googleads/v10/enums/budget_type.proto";
  20. import "google/api/field_behavior.proto";
  21. import "google/api/resource.proto";
  22. option csharp_namespace = "Google.Ads.GoogleAds.V10.Resources";
  23. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v10/resources;resources";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "CampaignBudgetProto";
  26. option java_package = "com.google.ads.googleads.v10.resources";
  27. option objc_class_prefix = "GAA";
  28. option php_namespace = "Google\\Ads\\GoogleAds\\V10\\Resources";
  29. option ruby_package = "Google::Ads::GoogleAds::V10::Resources";
  30. // Proto file describing the Budget resource.
  31. // A campaign budget.
  32. message CampaignBudget {
  33. option (google.api.resource) = {
  34. type: "googleads.googleapis.com/CampaignBudget"
  35. pattern: "customers/{customer_id}/campaignBudgets/{campaign_budget_id}"
  36. };
  37. // Immutable. The resource name of the campaign budget.
  38. // Campaign budget resource names have the form:
  39. //
  40. // `customers/{customer_id}/campaignBudgets/{campaign_budget_id}`
  41. string resource_name = 1 [
  42. (google.api.field_behavior) = IMMUTABLE,
  43. (google.api.resource_reference) = {
  44. type: "googleads.googleapis.com/CampaignBudget"
  45. }
  46. ];
  47. // Output only. The ID of the campaign budget.
  48. //
  49. // A campaign budget is created using the CampaignBudgetService create
  50. // operation and is assigned a budget ID. A budget ID can be shared across
  51. // different campaigns; the system will then allocate the campaign budget
  52. // among different campaigns to get optimum results.
  53. optional int64 id = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
  54. // The name of the campaign budget.
  55. //
  56. // When creating a campaign budget through CampaignBudgetService, every
  57. // explicitly shared campaign budget must have a non-null, non-empty name.
  58. // Campaign budgets that are not explicitly shared derive their name from the
  59. // attached campaign's name.
  60. //
  61. // The length of this string must be between 1 and 255, inclusive,
  62. // in UTF-8 bytes, (trimmed).
  63. optional string name = 20;
  64. // The amount of the budget, in the local currency for the account.
  65. // Amount is specified in micros, where one million is equivalent to one
  66. // currency unit. Monthly spend is capped at 30.4 times this amount.
  67. optional int64 amount_micros = 21;
  68. // The lifetime amount of the budget, in the local currency for the account.
  69. // Amount is specified in micros, where one million is equivalent to one
  70. // currency unit.
  71. optional int64 total_amount_micros = 22;
  72. // Output only. The status of this campaign budget. This field is read-only.
  73. google.ads.googleads.v10.enums.BudgetStatusEnum.BudgetStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  74. // The delivery method that determines the rate at which the campaign budget
  75. // is spent.
  76. //
  77. // Defaults to STANDARD if unspecified in a create operation.
  78. google.ads.googleads.v10.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod delivery_method = 7;
  79. // Specifies whether the budget is explicitly shared. Defaults to true if
  80. // unspecified in a create operation.
  81. //
  82. // If true, the budget was created with the purpose of sharing
  83. // across one or more campaigns.
  84. //
  85. // If false, the budget was created with the intention of only being used
  86. // with a single campaign. The budget's name and status will stay in sync
  87. // with the campaign's name and status. Attempting to share the budget with a
  88. // second campaign will result in an error.
  89. //
  90. // A non-shared budget can become an explicitly shared. The same operation
  91. // must also assign the budget a name.
  92. //
  93. // A shared campaign budget can never become non-shared.
  94. optional bool explicitly_shared = 23;
  95. // Output only. The number of campaigns actively using the budget.
  96. //
  97. // This field is read-only.
  98. optional int64 reference_count = 24 [(google.api.field_behavior) = OUTPUT_ONLY];
  99. // Output only. Indicates whether there is a recommended budget for this campaign budget.
  100. //
  101. // This field is read-only.
  102. optional bool has_recommended_budget = 25 [(google.api.field_behavior) = OUTPUT_ONLY];
  103. // Output only. The recommended budget amount. If no recommendation is available, this will
  104. // be set to the budget amount.
  105. // Amount is specified in micros, where one million is equivalent to one
  106. // currency unit.
  107. //
  108. // This field is read-only.
  109. optional int64 recommended_budget_amount_micros = 26 [(google.api.field_behavior) = OUTPUT_ONLY];
  110. // Immutable. Period over which to spend the budget. Defaults to DAILY if not specified.
  111. google.ads.googleads.v10.enums.BudgetPeriodEnum.BudgetPeriod period = 13 [(google.api.field_behavior) = IMMUTABLE];
  112. // Output only. The estimated change in weekly clicks if the recommended budget is applied.
  113. //
  114. // This field is read-only.
  115. optional int64 recommended_budget_estimated_change_weekly_clicks = 27 [(google.api.field_behavior) = OUTPUT_ONLY];
  116. // Output only. The estimated change in weekly cost in micros if the recommended budget is
  117. // applied. One million is equivalent to one currency unit.
  118. //
  119. // This field is read-only.
  120. optional int64 recommended_budget_estimated_change_weekly_cost_micros = 28 [(google.api.field_behavior) = OUTPUT_ONLY];
  121. // Output only. The estimated change in weekly interactions if the recommended budget is
  122. // applied.
  123. //
  124. // This field is read-only.
  125. optional int64 recommended_budget_estimated_change_weekly_interactions = 29 [(google.api.field_behavior) = OUTPUT_ONLY];
  126. // Output only. The estimated change in weekly views if the recommended budget is applied.
  127. //
  128. // This field is read-only.
  129. optional int64 recommended_budget_estimated_change_weekly_views = 30 [(google.api.field_behavior) = OUTPUT_ONLY];
  130. // Immutable. The type of the campaign budget.
  131. google.ads.googleads.v10.enums.BudgetTypeEnum.BudgetType type = 18 [(google.api.field_behavior) = IMMUTABLE];
  132. }