// 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 = "AudienceSegmentEnumsProto";
option java_package = "com.google.ads.admanager.v1";
option php_namespace = "Google\\Ads\\AdManager\\V1";
option ruby_package = "Google::Ads::AdManager::V1";

// Wraps the
// [AudienceSegmentType][google.ads.admanager.v1.AudienceSegmentTypeEnum.AudienceSegmentType]
// enum.
message AudienceSegmentTypeEnum {
  // Specifies the type of an AudienceSegment.
  enum AudienceSegmentType {
    // Default value. This value is unused.
    AUDIENCE_SEGMENT_TYPE_UNSPECIFIED = 0;

    // Indicates that the segment is a first party segment created and owned by
    // the publisher.
    FIRST_PARTY = 1;

    // Indicates that the segment is a first party segment shared by other
    // clients.
    SHARED = 2;

    // Indicates that the segment is a third party segment licensed by the
    // publisher from data providers. This does not include Google-provided
    // licensed segments.
    THIRD_PARTY = 3;
  }
}

// Wraps the
// [AudienceSegmentStatus][google.ads.admanager.v1.AudienceSegmentStatusEnum.AudienceSegmentStatus]
// enum.
message AudienceSegmentStatusEnum {
  // Specifies the status of an AudienceSegment.
  enum AudienceSegmentStatus {
    // Default value. This value is unused.
    AUDIENCE_SEGMENT_STATUS_UNSPECIFIED = 0;

    // Indicates that this audience segment is available for targeting.
    ACTIVE = 1;

    // Indicates that this audience segment is not available for targeting.
    INACTIVE = 2;

    // Indicates that this audience segment was deactivated by Google because it
    // is unused.
    UNUSED = 3;
  }
}

// Wraps the
// [AudienceSegmentLicenseType][google.ads.admanager.v1.AudienceSegmentLicenseTypeEnum.AudienceSegmentLicenseType]
// enum.
message AudienceSegmentLicenseTypeEnum {
  // Specifies the license type of a ThirdPartyAudienceSegment.
  enum AudienceSegmentLicenseType {
    // Default value. This value is unused.
    AUDIENCE_SEGMENT_LICENSE_TYPE_UNSPECIFIED = 0;

    // Indicates that the license is the result of a direct contract between the
    // data provider and the publisher.
    DIRECT = 1;

    // Indicates that the license is the result of an agreement between Google
    // and the data provider, which agrees to license their audience segments to
    // all the publishers and/or advertisers of the Google ecosystem.
    GLOBAL = 2;
  }
}

// Wraps the
// [AudienceSegmentApprovalStatus][google.ads.admanager.v1.AudienceSegmentApprovalStatusEnum.AudienceSegmentApprovalStatus]
// enum.
message AudienceSegmentApprovalStatusEnum {
  // Specifies the approval status of a ThirdPartyAudienceSegment.
  enum AudienceSegmentApprovalStatus {
    // Default value. This value is unused.
    AUDIENCE_SEGMENT_APPROVAL_STATUS_UNSPECIFIED = 0;

    // Indicates that this segment is approved and can be targeted.
    APPROVED = 1;

    // Indicates that this segment is rejected and cannot be targeted.
    REJECTED = 2;

    // Indicates that this segment is waiting to be approved or rejected. It
    // cannot be targeted.
    UNAPPROVED = 3;
  }
}
