// 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/common/campaign_reservation_quote.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 = "QuoteCampaignsProto";
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 QuoteCampaigns action.
// Request including this operation can have a latency of up to 30 seconds.
// This feature is not publicly available.
message QuoteCampaignsOperation {
  // A campaign for which the quote is requested.
  message Campaign {
    // Campaign for which the quote is requested.
    // Format: customers/{customer_id}/campaigns/{campaign_id}
    string campaign = 1;
  }

  // Campaigns for which the quotes are requested. 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;
}

// The response of the QuoteCampaigns action, when the action is successful.
// 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 QuoteCampaignsResult {
  // The quotes for the requested campaigns.
  repeated google.ads.googleads.v24.common.CampaignReservationQuote quotes = 1;

  // The signature of the quote. This signature should be used when booking the
  // quote.
  string quote_signature = 2;
}
