public enum CustomTargetingValueMatchType extends Enum<CustomTargetingValueMatchType>
Java class for CustomTargetingValue.MatchType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="CustomTargetingValue.MatchType">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="EXACT"/>
<enumeration value="BROAD"/>
<enumeration value="PREFIX"/>
<enumeration value="BROAD_PREFIX"/>
<enumeration value="SUFFIX"/>
<enumeration value="CONTAINS"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
BROAD
Used for lenient matching when at least one of the words in the ad
request matches the targeted value.
|
BROAD_PREFIX
This is a combination of
MatchType#BROAD and MatchType#PREFIX matching. |
CONTAINS
Used for 'within' matching when the string in the ad request contains the string in the
targeted value.
|
EXACT
Used for exact matching.
|
PREFIX
Used for 'starts with' matching when the first few characters in the ad
request match all of the characters in the targeted value.
|
SUFFIX
Used for 'ends with' matching when the last characters in the ad request match all of the
characters in the targeted value.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static CustomTargetingValueMatchType |
fromValue(String v) |
String |
value() |
static CustomTargetingValueMatchType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CustomTargetingValueMatchType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CustomTargetingValueMatchType EXACT
car=honda will only match to the ad request car=honda.public static final CustomTargetingValueMatchType BROAD
car=honda
will match to ad requests containing the word honda. So ad
requests car=honda or car=honda civic or car=buy
honda or car=how much does a honda cost will all have the line
item delivered.
This match type can not be used within an audience segment rule.
public static final CustomTargetingValueMatchType PREFIX
car=honda will match to ad requests car=honda or
car=hondas for sale but not to car=I want a honda.public static final CustomTargetingValueMatchType BROAD_PREFIX
MatchType#BROAD and MatchType#PREFIX matching. The targeting value car=honda will
match to ad requests that contain words that start with the characters in
the targeted value, for example with car=civic hondas.
This match type can not be used within an audience segment rule.
public static final CustomTargetingValueMatchType SUFFIX
car=honda will match with ad
requests car=honda or car=I want a honda but not to car=hondas for
sale.
This match type can not be used within line item targeting.
public static final CustomTargetingValueMatchType CONTAINS
car=honda will match with ad requests car=honda, car=I want a honda, and also with car=hondas for sale, but not
with car=misspelled hond a.
This match type can not be used within line item targeting.
public static final CustomTargetingValueMatchType UNKNOWN
public static CustomTargetingValueMatchType[] values()
for (CustomTargetingValueMatchType c : CustomTargetingValueMatchType.values()) System.out.println(c);
public static CustomTargetingValueMatchType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static CustomTargetingValueMatchType fromValue(String v)
Copyright © 2018. All Rights Reserved.