Enum google_api_proto::google::ads::googleads::v14::enums::asset_field_type_enum::AssetFieldType
source · #[repr(i32)]pub enum AssetFieldType {
Show 29 variants
Unspecified = 0,
Unknown = 1,
Headline = 2,
Description = 3,
MandatoryAdText = 4,
MarketingImage = 5,
MediaBundle = 6,
YoutubeVideo = 7,
BookOnGoogle = 8,
LeadForm = 9,
Promotion = 10,
Callout = 11,
StructuredSnippet = 12,
Sitelink = 13,
MobileApp = 14,
HotelCallout = 15,
Call = 16,
Price = 24,
LongHeadline = 17,
BusinessName = 18,
SquareMarketingImage = 19,
PortraitMarketingImage = 20,
Logo = 21,
LandscapeLogo = 22,
Video = 23,
CallToActionSelection = 25,
AdImage = 26,
BusinessLogo = 27,
HotelProperty = 28,
}
Expand description
Enum describing the possible placements of an asset.
Variants§
Unspecified = 0
Not specified.
Unknown = 1
Used for return value only. Represents value unknown in this version.
Headline = 2
The asset is linked for use as a headline.
Description = 3
The asset is linked for use as a description.
MandatoryAdText = 4
The asset is linked for use as mandatory ad text.
MarketingImage = 5
The asset is linked for use as a marketing image.
MediaBundle = 6
The asset is linked for use as a media bundle.
YoutubeVideo = 7
The asset is linked for use as a YouTube video.
BookOnGoogle = 8
The asset is linked to indicate that a hotels campaign is “Book on Google” enabled.
LeadForm = 9
The asset is linked for use as a Lead Form extension.
Promotion = 10
The asset is linked for use as a Promotion extension.
Callout = 11
The asset is linked for use as a Callout extension.
StructuredSnippet = 12
The asset is linked for use as a Structured Snippet extension.
Sitelink = 13
The asset is linked for use as a Sitelink.
MobileApp = 14
The asset is linked for use as a Mobile App extension.
HotelCallout = 15
The asset is linked for use as a Hotel Callout extension.
Call = 16
The asset is linked for use as a Call extension.
Price = 24
The asset is linked for use as a Price extension.
LongHeadline = 17
The asset is linked for use as a long headline.
BusinessName = 18
The asset is linked for use as a business name.
SquareMarketingImage = 19
The asset is linked for use as a square marketing image.
PortraitMarketingImage = 20
The asset is linked for use as a portrait marketing image.
Logo = 21
The asset is linked for use as a logo.
LandscapeLogo = 22
The asset is linked for use as a landscape logo.
Video = 23
The asset is linked for use as a non YouTube logo.
CallToActionSelection = 25
The asset is linked for use to select a call-to-action.
AdImage = 26
The asset is linked for use to select an ad image.
BusinessLogo = 27
The asset is linked for use as a business logo.
HotelProperty = 28
The asset is linked for use as a hotel property in a Performance Max for travel goals campaign.
Implementations§
source§impl AssetFieldType
impl AssetFieldType
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 AssetFieldType
impl Clone for AssetFieldType
source§fn clone(&self) -> AssetFieldType
fn clone(&self) -> AssetFieldType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AssetFieldType
impl Debug for AssetFieldType
source§impl Default for AssetFieldType
impl Default for AssetFieldType
source§fn default() -> AssetFieldType
fn default() -> AssetFieldType
source§impl From<AssetFieldType> for i32
impl From<AssetFieldType> for i32
source§fn from(value: AssetFieldType) -> i32
fn from(value: AssetFieldType) -> i32
source§impl Hash for AssetFieldType
impl Hash for AssetFieldType
source§impl Ord for AssetFieldType
impl Ord for AssetFieldType
source§fn cmp(&self, other: &AssetFieldType) -> Ordering
fn cmp(&self, other: &AssetFieldType) -> 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 AssetFieldType
impl PartialEq for AssetFieldType
source§fn eq(&self, other: &AssetFieldType) -> bool
fn eq(&self, other: &AssetFieldType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AssetFieldType
impl PartialOrd for AssetFieldType
source§fn partial_cmp(&self, other: &AssetFieldType) -> Option<Ordering>
fn partial_cmp(&self, other: &AssetFieldType) -> 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 AssetFieldType
impl TryFrom<i32> for AssetFieldType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<AssetFieldType, DecodeError>
fn try_from(value: i32) -> Result<AssetFieldType, DecodeError>
impl Copy for AssetFieldType
impl Eq for AssetFieldType
impl StructuralPartialEq for AssetFieldType
Auto Trait Implementations§
impl Freeze for AssetFieldType
impl RefUnwindSafe for AssetFieldType
impl Send for AssetFieldType
impl Sync for AssetFieldType
impl Unpin for AssetFieldType
impl UnwindSafe for AssetFieldType
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