// 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.admanager.v1;

option csharp_namespace = "Google.Ads.AdManager.V1";
option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager";
option java_multiple_files = true;
option java_outer_classname = "CreativeWrapperEnumsProto";
option java_package = "com.google.ads.admanager.v1";
option php_namespace = "Google\\Ads\\AdManager\\V1";
option ruby_package = "Google::Ads::AdManager::V1";

// Wrapper message for
// [CreativeWrapperType][google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType]
message CreativeWrapperTypeEnum {
  // The type of a CreativeWrapper which is specified on the CreativeWrapper.
  enum CreativeWrapperType {
    // Default value. This value is unused.
    CREATIVE_WRAPPER_TYPE_UNSPECIFIED = 0;

    // HTML CreativeWrappers that include header/footer HTML snippets.
    HTML = 1;

    // Video Tracking URL CreativeWrappers that include tracking URIs.
    VIDEO_TRACKING_URL = 2;
  }
}

// Wrapper message for
// [CreativeWrapperStatus][google.ads.admanager.v1.CreativeWrapperStatusEnum.CreativeWrapperStatus]
message CreativeWrapperStatusEnum {
  // Indicates whether the CreativeWrapper is active. HTML snippets
  // are served to Creatives only when the CreativeWrapper is active.
  enum CreativeWrapperStatus {
    // Default value. This value is unused.
    CREATIVE_WRAPPER_STATUS_UNSPECIFIED = 0;

    // The CreativeWrapper will be applied to served creatives.
    ACTIVE = 1;

    // The CreativeWrapper will not be applied to served creatives.
    INACTIVE = 2;
  }
}

// Wrapper message for
// [CreativeWrapperOrdering][google.ads.admanager.v1.CreativeWrapperOrderingEnum.CreativeWrapperOrdering]
message CreativeWrapperOrderingEnum {
  // Defines the order in which the header and footer HTML snippets will be
  // wrapped around the served creative. INNER snippets will be wrapped
  // first, followed by NO_PREFERENCE and finally OUTER. If the
  // creative needs to be wrapped with more than one snippet with the same
  // CreativeWrapperOrdering, then the order is unspecified.
  enum CreativeWrapperOrdering {
    // Default value. This value is unused.
    CREATIVE_WRAPPER_ORDERING_UNSPECIFIED = 0;

    // Wrapping occurs as early as possible.
    INNER = 1;

    // Wrapping occurs after `INNER` but before `OUTER`
    NO_PREFERENCE = 2;

    // Wrapping occurs after both `NO_PREFERENCE` and `INNER`
    OUTER = 3;
  }
}
