// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package google.ads.googleads.v24.actions;

import "google/ads/googleads/v24/enums/reservation_request_type.proto";

option csharp_namespace = "Google.Ads.GoogleAds.V24.Actions";
option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v24/actions;actions";
option java_multiple_files = true;
option java_outer_classname = "BookCampaignsProto";
option java_package = "com.google.ads.googleads.v24.actions";
option objc_class_prefix = "GAA";
option php_namespace = "Google\\Ads\\GoogleAds\\V24\\Actions";
option ruby_package = "Google::Ads::GoogleAds::V24::Actions";

// Request message for the BookCampaigns action.
// Request including this operation can have a latency of up to 30 seconds. This
// feature is not publicly available.
message BookCampaignsOperation {
  // A single campaign to book.
  message Campaign {
    // Campaign resource to book.
    // Format: customers/{customer_id}/campaigns/{campaign_id}
    string campaign = 1;

    // Determines if the current request should book the inventory or hold it.
    google.ads.googleads.v24.enums.ReservationRequestTypeEnum
        .ReservationRequestType request_type = 2;
  }

  // Campaigns to book. Maximum 2 campaigns per request.
  repeated Campaign campaigns = 1;

  // If provided, the signature of the previous quote. Clients should always
  // provide the quote signature from previous quotes if they haven't changed
  // the campaigns to prevent price fluctuations within a user session.
  string quote_signature = 2;
}

// Response message for the BookCampaigns action.
// Note that if the response contains errors, the action response will not be
// returned, but a quote may still be returned in the
// ErrorDetails.reservation_error_details field.
message BookCampaignsResult {}
