campaign_budget.proto 6.7 KB

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