Enum google_api_proto::google::ads::googleads::v16::enums::criterion_type_enum::CriterionType
source · #[repr(i32)]pub enum CriterionType {
Show 42 variants
Unspecified = 0,
Unknown = 1,
Keyword = 2,
Placement = 3,
MobileAppCategory = 4,
MobileApplication = 5,
Device = 6,
Location = 7,
ListingGroup = 8,
AdSchedule = 9,
AgeRange = 10,
Gender = 11,
IncomeRange = 12,
ParentalStatus = 13,
YoutubeVideo = 14,
YoutubeChannel = 15,
UserList = 16,
Proximity = 17,
Topic = 18,
ListingScope = 19,
Language = 20,
IpBlock = 21,
ContentLabel = 22,
Carrier = 23,
UserInterest = 24,
Webpage = 25,
OperatingSystemVersion = 26,
AppPaymentModel = 27,
MobileDevice = 28,
CustomAffinity = 29,
CustomIntent = 30,
LocationGroup = 31,
CustomAudience = 32,
CombinedAudience = 33,
KeywordTheme = 34,
Audience = 35,
NegativeKeywordList = 36,
LocalServiceId = 37,
SearchTheme = 38,
Brand = 39,
BrandList = 40,
LifeEvent = 41,
}
Expand description
Enum describing possible criterion types.
Variants§
Unspecified = 0
Not specified.
Unknown = 1
Used for return value only. Represents value unknown in this version.
Keyword = 2
Keyword, for example, ‘mars cruise’.
Placement = 3
Placement, also known as Website, for example, ‘www.flowers4sale.com’
MobileAppCategory = 4
Mobile application categories to target.
MobileApplication = 5
Mobile applications to target.
Device = 6
Devices to target.
Location = 7
Locations to target.
ListingGroup = 8
Listing groups to target.
AdSchedule = 9
Ad Schedule.
AgeRange = 10
Age range.
Gender = 11
Gender.
IncomeRange = 12
Income Range.
ParentalStatus = 13
Parental status.
YoutubeVideo = 14
YouTube Video.
YoutubeChannel = 15
YouTube Channel.
UserList = 16
User list.
Proximity = 17
Proximity.
Topic = 18
A topic target on the display network (for example, “Pets & Animals”).
ListingScope = 19
Listing scope to target.
Language = 20
Language.
IpBlock = 21
IpBlock.
ContentLabel = 22
Content Label for category exclusion.
Carrier = 23
Carrier.
UserInterest = 24
A category the user is interested in.
Webpage = 25
Webpage criterion for dynamic search ads.
OperatingSystemVersion = 26
Operating system version.
AppPaymentModel = 27
App payment model.
MobileDevice = 28
Mobile device.
CustomAffinity = 29
Custom affinity.
CustomIntent = 30
Custom intent.
LocationGroup = 31
Location group.
CustomAudience = 32
Custom audience
CombinedAudience = 33
Combined audience
KeywordTheme = 34
Smart Campaign keyword theme
Audience = 35
Audience
NegativeKeywordList = 36
Negative Keyword List
LocalServiceId = 37
Local Services Ads Service ID.
SearchTheme = 38
Search Theme.
Brand = 39
Brand
BrandList = 40
Brand List
LifeEvent = 41
Life Event
Implementations§
source§impl CriterionType
impl CriterionType
source§impl CriterionType
impl CriterionType
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 CriterionType
impl Clone for CriterionType
source§fn clone(&self) -> CriterionType
fn clone(&self) -> CriterionType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CriterionType
impl Debug for CriterionType
source§impl Default for CriterionType
impl Default for CriterionType
source§fn default() -> CriterionType
fn default() -> CriterionType
source§impl From<CriterionType> for i32
impl From<CriterionType> for i32
source§fn from(value: CriterionType) -> i32
fn from(value: CriterionType) -> i32
source§impl Hash for CriterionType
impl Hash for CriterionType
source§impl Ord for CriterionType
impl Ord for CriterionType
source§fn cmp(&self, other: &CriterionType) -> Ordering
fn cmp(&self, other: &CriterionType) -> 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 CriterionType
impl PartialEq for CriterionType
source§fn eq(&self, other: &CriterionType) -> bool
fn eq(&self, other: &CriterionType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CriterionType
impl PartialOrd for CriterionType
source§fn partial_cmp(&self, other: &CriterionType) -> Option<Ordering>
fn partial_cmp(&self, other: &CriterionType) -> 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 CriterionType
impl TryFrom<i32> for CriterionType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<CriterionType, DecodeError>
fn try_from(value: i32) -> Result<CriterionType, DecodeError>
impl Copy for CriterionType
impl Eq for CriterionType
impl StructuralPartialEq for CriterionType
Auto Trait Implementations§
impl Freeze for CriterionType
impl RefUnwindSafe for CriterionType
impl Send for CriterionType
impl Sync for CriterionType
impl Unpin for CriterionType
impl UnwindSafe for CriterionType
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