Struct google_api_proto::google::ads::googleads::v15::common::ResponsiveDisplayAdInfo
source · pub struct ResponsiveDisplayAdInfo {Show 17 fields
pub marketing_images: Vec<AdImageAsset>,
pub square_marketing_images: Vec<AdImageAsset>,
pub logo_images: Vec<AdImageAsset>,
pub square_logo_images: Vec<AdImageAsset>,
pub headlines: Vec<AdTextAsset>,
pub long_headline: Option<AdTextAsset>,
pub descriptions: Vec<AdTextAsset>,
pub youtube_videos: Vec<AdVideoAsset>,
pub business_name: Option<String>,
pub main_color: Option<String>,
pub accent_color: Option<String>,
pub allow_flexible_color: Option<bool>,
pub call_to_action_text: Option<String>,
pub price_prefix: Option<String>,
pub promo_text: Option<String>,
pub format_setting: i32,
pub control_spec: Option<ResponsiveDisplayAdControlSpec>,
}
Expand description
A responsive display ad.
Fields§
§marketing_images: Vec<AdImageAsset>
Marketing images to be used in the ad. Valid image types are GIF,
JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
be 1.91:1 (+-1%). At least one marketing_image
is required. Combined
with square_marketing_images
, the maximum is 15.
square_marketing_images: Vec<AdImageAsset>
Square marketing images to be used in the ad. Valid image types are GIF,
JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
be 1:1 (+-1%). At least one square marketing_image
is required. Combined
with marketing_images
, the maximum is 15.
logo_images: Vec<AdImageAsset>
Logo images to be used in the ad. Valid image types are GIF,
JPEG, and PNG. The minimum size is 512x128 and the aspect ratio must
be 4:1 (+-1%). Combined with square_logo_images
, the maximum is 5.
square_logo_images: Vec<AdImageAsset>
Square logo images to be used in the ad. Valid image types are GIF,
JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must
be 1:1 (+-1%). Combined with logo_images
, the maximum is 5.
headlines: Vec<AdTextAsset>
Short format headlines for the ad. The maximum length is 30 characters. At least 1 and max 5 headlines can be specified.
long_headline: Option<AdTextAsset>
A required long format headline. The maximum length is 90 characters.
descriptions: Vec<AdTextAsset>
Descriptive texts for the ad. The maximum length is 90 characters. At least 1 and max 5 headlines can be specified.
youtube_videos: Vec<AdVideoAsset>
Optional YouTube videos for the ad. A maximum of 5 videos can be specified.
business_name: Option<String>
The advertiser/brand name. Maximum display width is 25.
main_color: Option<String>
The main color of the ad in hexadecimal, for example, #ffffff for white.
If one of main_color
and accent_color
is set, the other is required as
well.
accent_color: Option<String>
The accent color of the ad in hexadecimal, for example, #ffffff for white.
If one of main_color
and accent_color
is set, the other is required as
well.
allow_flexible_color: Option<bool>
Advertiser’s consent to allow flexible color. When true, the ad may be
served with different color if necessary. When false, the ad will be served
with the specified colors or a neutral color.
The default value is true
.
Must be true if main_color
and accent_color
are not set.
call_to_action_text: Option<String>
The call-to-action text for the ad. Maximum display width is 30.
price_prefix: Option<String>
Prefix before price. For example, ‘as low as’.
promo_text: Option<String>
Promotion text used for dynamic formats of responsive ads. For example ‘Free two-day shipping’.
format_setting: i32
Specifies which format the ad will be served in. Default is ALL_FORMATS.
control_spec: Option<ResponsiveDisplayAdControlSpec>
Specification for various creative controls.
Implementations§
source§impl ResponsiveDisplayAdInfo
impl ResponsiveDisplayAdInfo
sourcepub fn format_setting(&self) -> DisplayAdFormatSetting
pub fn format_setting(&self) -> DisplayAdFormatSetting
Returns the enum value of format_setting
, or the default if the field is set to an invalid enum value.
sourcepub fn set_format_setting(&mut self, value: DisplayAdFormatSetting)
pub fn set_format_setting(&mut self, value: DisplayAdFormatSetting)
Sets format_setting
to the provided enum value.
sourcepub fn business_name(&self) -> &str
pub fn business_name(&self) -> &str
Returns the value of business_name
, or the default value if business_name
is unset.
sourcepub fn main_color(&self) -> &str
pub fn main_color(&self) -> &str
Returns the value of main_color
, or the default value if main_color
is unset.
sourcepub fn accent_color(&self) -> &str
pub fn accent_color(&self) -> &str
Returns the value of accent_color
, or the default value if accent_color
is unset.
sourcepub fn allow_flexible_color(&self) -> bool
pub fn allow_flexible_color(&self) -> bool
Returns the value of allow_flexible_color
, or the default value if allow_flexible_color
is unset.
sourcepub fn call_to_action_text(&self) -> &str
pub fn call_to_action_text(&self) -> &str
Returns the value of call_to_action_text
, or the default value if call_to_action_text
is unset.
sourcepub fn price_prefix(&self) -> &str
pub fn price_prefix(&self) -> &str
Returns the value of price_prefix
, or the default value if price_prefix
is unset.
sourcepub fn promo_text(&self) -> &str
pub fn promo_text(&self) -> &str
Returns the value of promo_text
, or the default value if promo_text
is unset.
Trait Implementations§
source§impl Clone for ResponsiveDisplayAdInfo
impl Clone for ResponsiveDisplayAdInfo
source§fn clone(&self) -> ResponsiveDisplayAdInfo
fn clone(&self) -> ResponsiveDisplayAdInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResponsiveDisplayAdInfo
impl Debug for ResponsiveDisplayAdInfo
source§impl Default for ResponsiveDisplayAdInfo
impl Default for ResponsiveDisplayAdInfo
source§impl Message for ResponsiveDisplayAdInfo
impl Message for ResponsiveDisplayAdInfo
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ResponsiveDisplayAdInfo
impl PartialEq for ResponsiveDisplayAdInfo
source§fn eq(&self, other: &ResponsiveDisplayAdInfo) -> bool
fn eq(&self, other: &ResponsiveDisplayAdInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResponsiveDisplayAdInfo
Auto Trait Implementations§
impl Freeze for ResponsiveDisplayAdInfo
impl RefUnwindSafe for ResponsiveDisplayAdInfo
impl Send for ResponsiveDisplayAdInfo
impl Sync for ResponsiveDisplayAdInfo
impl Unpin for ResponsiveDisplayAdInfo
impl UnwindSafe for ResponsiveDisplayAdInfo
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<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