type CustomTargetingValue (v202502)
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
      
         
         
         
            
               
                  Service
               
               
                  CustomTargetingService
               
            
            
         
         
            CustomTargetingValue represents a value used for custom targeting.
         
         
            - Namespace
- 
               https://www.google.com/apis/ads/publisher/v202502
               
                  
                     | Field | 
               
               
                  
                     | 
                           customTargetingKeyId | 
                           
                              xsd:long The ID of the CustomTargetingKeyfor which this is the value. | 
                  
                     | 
                           id | 
                           
                              xsd:long The ID of the CustomTargetingValue. This value is readonly and is populated by Google. | 
                  
                     | 
                           name | 
                           
                              xsd:string Name of the value. Values can contain up to 40 characters each. You can use alphanumeric
                characters and symbols other than the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [,
                ]. Values are not data-specific; all values are treated as string. For example, instead of
                using "age>=18 AND <=34", try "18-34"
 | 
                  
                     | 
                           displayName | 
                           
                              xsd:string Descriptive name for the value.
 | 
                  
                     | 
                           matchType | 
                           
                              CustomTargetingValue.MatchType
                            The way in which the CustomTargetingValue.name strings will be matched.
 Enumerations
 
                              
                                 EXACTUsed for exact matching. For example, the targeting value car=hondawill only match
                to the ad requestcar=honda.
                                 BROAD
Used for lenient matching when at least one of the words in the ad
request matches the targeted value. The targeting value
car=hondawill match to ad
requests containing the wordhonda. So ad requestscar=hondaorcar=honda
civicorcar=buy
hondaorcar=how much does a
honda costwill all have the line item delivered.This match type can not be used within an audience segment
rule.
                                 PREFIXUsed for 'starts with' matching when the first few characters in the ad request match all of
                the characters in the targeted value. The targeting value car=hondawill match to ad
                requestscar=hondaorcar=hondas for salebut not tocar=I want a
                honda.
                                 BROAD_PREFIX
This is a combination of MatchType#BROADandMatchType#PREFIXmatching. The targeting valuecar=hondawill match to ad
requests that contain words that start with the characters in the
targeted value, for example withcar=civic
hondas.This match type can not be used within an audience segment
rule.
                                 SUFFIX
Used for 'ends with' matching when the last characters in the ad
request match all of the characters in the targeted value. The
targeting value car=hondawill
match with ad requestscar=hondaorcar=I want a hondabut not tocar=hondas for sale.This match type can not be used within line item targeting.
                                 CONTAINS
Used for 'within' matching when the string in the ad request
contains the string in the targeted value. The targeting value
car=hondawill match with ad
requestscar=honda,car=I want a honda, and also
withcar=hondas for sale, but
not withcar=misspelled hond a.This match type can not be used within line item targeting.
                                 UNKNOWNThe value returned if the actual value is not exposed by the requested API version.
 | 
                  
                     | 
                           status | 
                           
                              CustomTargetingValue.Status
                            Status of the CustomTargetingValue. This field is read-only. A value can be activated
                and deactivated by calling CustomTargetingService.performCustomTargetingValueAction. Enumerations
 
                              
                                 ACTIVEThe object is active.
                                 INACTIVEThe object is no longer active.
                                 UNKNOWNThe value returned if the actual value is not exposed by the requested API version.
 | 
               
            
         
       
   
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-08-06 UTC.
  
  
  
    
      [null,null,["Last updated 2025-08-06 UTC."],[],[]]