1 // Copyright 2019 Google LLC.
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
7 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 package google.ads.googleads.v1.resources;
20 import "google/ads/googleads/v1/enums/budget_delivery_method.proto";
21 import "google/ads/googleads/v1/enums/budget_period.proto";
22 import "google/ads/googleads/v1/enums/budget_status.proto";
23 import "google/protobuf/wrappers.proto";
24 import "google/api/annotations.proto";
26 option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources";
27 option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources";
28 option java_multiple_files = true;
29 option java_outer_classname = "CampaignBudgetProto";
30 option java_package = "com.google.ads.googleads.v1.resources";
31 option objc_class_prefix = "GAA";
32 option php_namespace = "Google\\Ads\\GoogleAds\\V1\\Resources";
33 option ruby_package = "Google::Ads::GoogleAds::V1::Resources";
34 // Proto file describing the Budget resource.
37 message CampaignBudget {
38 // The resource name of the campaign budget.
39 // Campaign budget resource names have the form:
41 // `customers/{customer_id}/campaignBudgets/{budget_id}`
42 string resource_name = 1;
44 // The ID of the campaign budget.
46 // A campaign budget is created using the CampaignBudgetService create
47 // operation and is assigned a budget ID. A budget ID can be shared across
48 // different campaigns; the system will then allocate the campaign budget
49 // among different campaigns to get optimum results.
50 google.protobuf.Int64Value id = 3;
52 // The name of the campaign budget.
54 // When creating a campaign budget through CampaignBudgetService, every
55 // explicitly shared campaign budget must have a non-null, non-empty name.
56 // Campaign budgets that are not explicitly shared derive their name from the
57 // attached campaign's name.
59 // The length of this string must be between 1 and 255, inclusive,
60 // in UTF-8 bytes, (trimmed).
61 google.protobuf.StringValue name = 4;
63 // The amount of the budget, in the local currency for the account.
64 // Amount is specified in micros, where one million is equivalent to one
66 google.protobuf.Int64Value amount_micros = 5;
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
71 google.protobuf.Int64Value total_amount_micros = 10;
73 // The status of this campaign budget. This field is read-only.
74 google.ads.googleads.v1.enums.BudgetStatusEnum.BudgetStatus status = 6;
76 // The delivery method that determines the rate at which the campaign budget
79 // Defaults to STANDARD if unspecified in a create operation.
80 google.ads.googleads.v1.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod delivery_method = 7;
82 // Specifies whether the budget is explicitly shared. Defaults to true if
83 // unspecified in a create operation.
85 // If true, the budget was created with the purpose of sharing
86 // across one or more campaigns.
88 // If false, the budget was created with the intention of only being used
89 // with a single campaign. The budget's name and status will stay in sync
90 // with the campaign's name and status. Attempting to share the budget with a
91 // second campaign will result in an error.
93 // A non-shared budget can become an explicitly shared. The same operation
94 // must also assign the budget a name.
96 // A shared campaign budget can never become non-shared.
97 google.protobuf.BoolValue explicitly_shared = 8;
99 // The number of campaigns actively using the budget.
101 // This field is read-only.
102 google.protobuf.Int64Value reference_count = 9;
104 // Indicates whether there is a recommended budget for this campaign budget.
106 // This field is read-only.
107 google.protobuf.BoolValue has_recommended_budget = 11;
109 // The recommended budget amount. If no recommendation is available, this will
110 // be set to the budget amount.
111 // Amount is specified in micros, where one million is equivalent to one
114 // This field is read-only.
115 google.protobuf.Int64Value recommended_budget_amount_micros = 12;
117 // Period over which to spend the budget. Defaults to DAILY if not specified.
118 google.ads.googleads.v1.enums.BudgetPeriodEnum.BudgetPeriod period = 13;
120 // The estimated change in weekly clicks if the recommended budget is applied.
122 // This field is read-only.
123 google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = 14;
125 // The estimated change in weekly cost in micros if the recommended budget is
126 // applied. One million is equivalent to one currency unit.
128 // This field is read-only.
129 google.protobuf.Int64Value recommended_budget_estimated_change_weekly_cost_micros = 15;
131 // The estimated change in weekly interactions if the recommended budget is
134 // This field is read-only.
135 google.protobuf.Int64Value recommended_budget_estimated_change_weekly_interactions = 16;
137 // The estimated change in weekly views if the recommended budget is applied.
139 // This field is read-only.
140 google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = 17;