Enum google_api_proto::google::ads::admanager::v1::custom_targeting_value_match_type_enum::CustomTargetingValueMatchType
source · #[repr(i32)]pub enum CustomTargetingValueMatchType {
Unspecified = 0,
Exact = 1,
Broad = 2,
Prefix = 3,
BroadPrefix = 4,
Suffix = 5,
Contains = 6,
}
Expand description
Match type of the custom targeting value.
Variants§
Unspecified = 0
Not specified value.
Exact = 1
Used for exact matching. For example, the targeting value car=honda will only match to the ad request car=honda.
Broad = 2
Used for lenient matching when at least one of the words in the ad request matches the targeted value. The targeting value 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.
Prefix = 3
Used 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=honda will match to ad requests car=honda or car=hondas for sale but not to car=I want a honda.
BroadPrefix = 4
This is a combination of 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.
Suffix = 5
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=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.
Contains = 6
Used for ‘within’ matching when the string in the ad request contains the string in the targeted value. The targeting value 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.
Implementations§
source§impl CustomTargetingValueMatchType
impl CustomTargetingValueMatchType
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of CustomTargetingValueMatchType
.
sourcepub fn from_i32(value: i32) -> Option<CustomTargetingValueMatchType>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<CustomTargetingValueMatchType>
Converts an i32
to a CustomTargetingValueMatchType
, or None
if value
is not a valid variant.
source§impl CustomTargetingValueMatchType
impl CustomTargetingValueMatchType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for CustomTargetingValueMatchType
impl Clone for CustomTargetingValueMatchType
source§fn clone(&self) -> CustomTargetingValueMatchType
fn clone(&self) -> CustomTargetingValueMatchType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CustomTargetingValueMatchType
impl Default for CustomTargetingValueMatchType
source§fn default() -> CustomTargetingValueMatchType
fn default() -> CustomTargetingValueMatchType
source§impl From<CustomTargetingValueMatchType> for i32
impl From<CustomTargetingValueMatchType> for i32
source§fn from(value: CustomTargetingValueMatchType) -> i32
fn from(value: CustomTargetingValueMatchType) -> i32
source§impl Hash for CustomTargetingValueMatchType
impl Hash for CustomTargetingValueMatchType
source§impl Ord for CustomTargetingValueMatchType
impl Ord for CustomTargetingValueMatchType
source§fn cmp(&self, other: &CustomTargetingValueMatchType) -> Ordering
fn cmp(&self, other: &CustomTargetingValueMatchType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for CustomTargetingValueMatchType
impl PartialEq for CustomTargetingValueMatchType
source§fn eq(&self, other: &CustomTargetingValueMatchType) -> bool
fn eq(&self, other: &CustomTargetingValueMatchType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CustomTargetingValueMatchType
impl PartialOrd for CustomTargetingValueMatchType
source§fn partial_cmp(&self, other: &CustomTargetingValueMatchType) -> Option<Ordering>
fn partial_cmp(&self, other: &CustomTargetingValueMatchType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for CustomTargetingValueMatchType
impl TryFrom<i32> for CustomTargetingValueMatchType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<CustomTargetingValueMatchType, DecodeError>
fn try_from(value: i32) -> Result<CustomTargetingValueMatchType, DecodeError>
impl Copy for CustomTargetingValueMatchType
impl Eq for CustomTargetingValueMatchType
impl StructuralPartialEq for CustomTargetingValueMatchType
Auto Trait Implementations§
impl Freeze for CustomTargetingValueMatchType
impl RefUnwindSafe for CustomTargetingValueMatchType
impl Send for CustomTargetingValueMatchType
impl Sync for CustomTargetingValueMatchType
impl Unpin for CustomTargetingValueMatchType
impl UnwindSafe for CustomTargetingValueMatchType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request