xref: /aosp_15_r20/external/googleapis/google/ads/admanager/v1/ad_partner_declaration.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2023 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16
17package google.ads.admanager.v1;
18
19import "google/api/resource.proto";
20
21option csharp_namespace = "Google.Ads.AdManager.V1";
22option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager";
23option java_multiple_files = true;
24option java_outer_classname = "AdPartnerDeclarationProto";
25option java_package = "com.google.ads.admanager.v1";
26option objc_class_prefix = "GAA";
27option php_namespace = "Google\\Ads\\AdManager\\V1";
28
29// Represents a set of declarations about what (if any) ad partners
30// are associated with a given creative. This can be set at the network level,
31// as a default for all creatives, or overridden for a particular creative.
32message AdPartnerDeclaration {
33  // They type of declaration.
34  DeclarationTypeEnum.DeclarationType type = 1;
35
36  // The resource names of AdPartners being declared.
37  // Format: "networks/{network_code}/adPartners/{ad_partner_id}"
38  repeated string ad_partners = 2 [(google.api.resource_reference) = {
39    type: "admanager.googleapis.com/AdPartner"
40  }];
41}
42
43// Wrapper message for
44// [DeclarationTypeEnum][google.ads.admanager.v1.DeclarationTypeEnum].
45message DeclarationTypeEnum {
46  // The declaration about third party data usage on the associated entity.
47  enum DeclarationType {
48    // Default value. This value is unused.
49    DECLARATION_TYPE_UNSPECIFIED = 0;
50
51    // No ad technology providers to declare.
52    NONE = 1;
53
54    // There are are ad technology providers to declare on this entity.
55    DECLARED = 2;
56  }
57}
58