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 19option csharp_namespace = "Google.Ads.AdManager.V1"; 20option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; 21option java_multiple_files = true; 22option java_outer_classname = "CustomTargetingValueEnumsProto"; 23option java_package = "com.google.ads.admanager.v1"; 24option objc_class_prefix = "GAA"; 25option php_namespace = "Google\\Ads\\AdManager\\V1"; 26 27// Wrapper message for 28// [CustomTargetingValueStatus][google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus] 29message CustomTargetingValueStatusEnum { 30 // Status of the custom targeting value. 31 enum CustomTargetingValueStatus { 32 // Not specified value. 33 CUSTOM_TARGETING_VALUE_STATUS_UNSPECIFIED = 0; 34 35 // Custom targeting value is active. 36 ACTIVE = 1; 37 38 // Custom targeting value is inactive. 39 INACTIVE = 2; 40 } 41} 42 43// Wrapper message for 44// [CustomTargetingValueMatchType][google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType] 45message CustomTargetingValueMatchTypeEnum { 46 // Match type of the custom targeting value. 47 enum CustomTargetingValueMatchType { 48 // Not specified value. 49 CUSTOM_TARGETING_VALUE_MATCH_TYPE_UNSPECIFIED = 0; 50 51 // Used for exact matching. For example, the targeting value car=honda will 52 // only match to the ad request car=honda. 53 EXACT = 1; 54 55 // Used for lenient matching when at least one of the words in the ad 56 // request matches the targeted value. The targeting value car=honda will 57 // match to ad requests containing the word honda. So ad requests car=honda 58 // or car=honda civic or car=buy honda or car=how much does a honda cost 59 // will all have the line item delivered. 60 // This match type can not be used within an audience segment rule. 61 BROAD = 2; 62 63 // Used for 'starts with' matching when the first few characters in the ad 64 // request match all of the characters in the targeted value. The targeting 65 // value car=honda will match to ad requests car=honda or car=hondas for 66 // sale but not to car=I want a honda. 67 PREFIX = 3; 68 69 // This is a combination of MatchType#BROAD and MatchType#PREFIX matching. 70 // The targeting value car=honda will match to ad requests that contain 71 // words that start with the characters in the targeted value, for example 72 // with car=civic hondas. 73 // This match type can not be used within an audience segment rule. 74 BROAD_PREFIX = 4; 75 76 // Used for 'ends with' matching when the last characters in the ad request 77 // match all of the characters in the targeted value. The targeting value 78 // car=honda will match with ad requests car=honda or car=I want a honda but 79 // not to car=hondas for sale. 80 // This match type can not be used within line item targeting. 81 SUFFIX = 5; 82 83 // Used for 'within' matching when the string in the ad request contains the 84 // string in the targeted value. The targeting value car=honda will match 85 // with ad requests car=honda, car=I want a honda, and also with car=hondas 86 // for sale, but not with car=misspelled hond a. This match type can not be 87 // used within line item targeting. 88 CONTAINS = 6; 89 } 90} 91