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: String,
pub main_color: String,
pub accent_color: String,
pub allow_flexible_color: bool,
pub call_to_action_text: String,
pub price_prefix: String,
pub promo_text: 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: String
The advertiser/brand name. Maximum display width is 25.
main_color: 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: 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: 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: String
The call-to-action text for the ad. Maximum display width is 30.
price_prefix: String
Prefix before price. For example, ‘as low as’.
promo_text: 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.
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for ResponsiveDisplayAdInfo
impl PartialEq for ResponsiveDisplayAdInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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