|
| 1 | +// Copyright 2026 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 | + |
| 15 | +syntax = "proto3"; |
| 16 | + |
| 17 | +package google.ads.datamanager.v1; |
| 18 | + |
| 19 | +import "google/api/field_behavior.proto"; |
| 20 | + |
| 21 | +option csharp_namespace = "Google.Ads.DataManager.V1"; |
| 22 | +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; |
| 23 | +option java_multiple_files = true; |
| 24 | +option java_outer_classname = "EncryptedUserIdProto"; |
| 25 | +option java_package = "com.google.ads.datamanager.v1"; |
| 26 | +option php_namespace = "Google\\Ads\\DataManager\\V1"; |
| 27 | +option ruby_package = "Google::Ads::DataManager::V1"; |
| 28 | + |
| 29 | +// A user identifier issued to be used for attribution. All fields are |
| 30 | +// required if this is used. |
| 31 | +message EncryptedUserId { |
| 32 | + // The encryption entity type. |
| 33 | + enum EncryptionEntityType { |
| 34 | + // Unspecified encryption entity type. |
| 35 | + ENCRYPTION_ENTITY_TYPE_UNSPECIFIED = 0; |
| 36 | + |
| 37 | + // Campaign Manager 360 account. |
| 38 | + CAMPAIGN_MANAGER_ACCOUNT = 1; |
| 39 | + |
| 40 | + // Campaign Manager 360 advertiser. |
| 41 | + CAMPAIGN_MANAGER_ADVERTISER = 2; |
| 42 | + |
| 43 | + // Display & Video 360 partner. |
| 44 | + DISPLAY_VIDEO_PARTNER = 3; |
| 45 | + |
| 46 | + // Display & Video 360 advertiser. |
| 47 | + DISPLAY_VIDEO_ADVERTISER = 4; |
| 48 | + |
| 49 | + // Google Ads customer. |
| 50 | + GOOGLE_ADS_CUSTOMER = 5; |
| 51 | + |
| 52 | + // Google Ad Manager network code. |
| 53 | + GOOGLE_AD_MANAGER_NETWORK_CODE = 6; |
| 54 | + } |
| 55 | + |
| 56 | + // The encryption source. |
| 57 | + enum EncryptionSource { |
| 58 | + // Unspecified encryption source. |
| 59 | + ENCRYPTION_SOURCE_UNSPECIFIED = 0; |
| 60 | + |
| 61 | + // Ad serving encryption source. |
| 62 | + AD_SERVING = 1; |
| 63 | + |
| 64 | + // Data transfer encryption source. |
| 65 | + DATA_TRANSFER = 2; |
| 66 | + } |
| 67 | + |
| 68 | + // Required. The alphanumeric encrypted id. |
| 69 | + string encrypted_id = 1 [(google.api.field_behavior) = REQUIRED]; |
| 70 | + |
| 71 | + // Required. The encryption entity type. This should match the encryption |
| 72 | + // configuration for ad serving or Data Transfer. |
| 73 | + EncryptionEntityType entity_type = 2 [(google.api.field_behavior) = REQUIRED]; |
| 74 | + |
| 75 | + // Required. The encryption entity ID. This should match the encryption |
| 76 | + // configuration for ad serving or Data Transfer. |
| 77 | + int64 entity_id = 3 [(google.api.field_behavior) = REQUIRED]; |
| 78 | + |
| 79 | + // Required. Describes whether the encrypted cookie was received from ad |
| 80 | + // serving (the %m macro) or from Data Transfer. |
| 81 | + EncryptionSource source = 4 [(google.api.field_behavior) = REQUIRED]; |
| 82 | +} |
0 commit comments