// Copyright 2023 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;

import "google/api/resource.proto";

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 = "AdPartnerDeclarationProto";
option java_package = "com.google.ads.admanager.v1";
option objc_class_prefix = "GAA";
option php_namespace = "Google\\Ads\\AdManager\\V1";

// Represents a set of declarations about what (if any) ad partners
// are associated with a given creative. This can be set at the network level,
// as a default for all creatives, or overridden for a particular creative.
message AdPartnerDeclaration {
  // They type of declaration.
  DeclarationTypeEnum.DeclarationType type = 1;

  // The resource names of AdPartners being declared.
  // Format: "networks/{network_code}/adPartners/{ad_partner_id}"
  repeated string ad_partners = 2 [(google.api.resource_reference) = {
    type: "admanager.googleapis.com/AdPartner"
  }];
}

// Wrapper message for
// [DeclarationTypeEnum][google.ads.admanager.v1.DeclarationTypeEnum].
message DeclarationTypeEnum {
  // The declaration about third party data usage on the associated entity.
  enum DeclarationType {
    // Default value. This value is unused.
    DECLARATION_TYPE_UNSPECIFIED = 0;

    // No ad technology providers to declare.
    NONE = 1;

    // There are are ad technology providers to declare on this entity.
    DECLARED = 2;
  }
}
