pub struct LegacyResponsiveDisplayAdInfo {Show 15 fields
pub short_headline: String,
pub long_headline: String,
pub description: String,
pub business_name: String,
pub allow_flexible_color: bool,
pub accent_color: String,
pub main_color: String,
pub call_to_action_text: String,
pub logo_image: String,
pub square_logo_image: String,
pub marketing_image: String,
pub square_marketing_image: String,
pub format_setting: i32,
pub price_prefix: String,
pub promo_text: String,
}
Expand description
A legacy responsive display ad. Ads of this type are labeled ‘Responsive ads’ in the Google Ads UI.
Fields§
§short_headline: String
The short version of the ad’s headline.
long_headline: String
The long version of the ad’s headline.
description: String
The description of the ad.
business_name: String
The business name in the ad.
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.
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.
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.
call_to_action_text: String
The call-to-action text for the ad.
logo_image: String
The MediaFile resource name of the logo image used in the ad.
square_logo_image: String
The MediaFile resource name of the square logo image used in the ad.
marketing_image: String
The MediaFile resource name of the marketing image used in the ad.
square_marketing_image: String
The MediaFile resource name of the square marketing image used in the ad.
format_setting: i32
Specifies which format the ad will be served in. Default is ALL_FORMATS.
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’.
Implementations§
Source§impl LegacyResponsiveDisplayAdInfo
impl LegacyResponsiveDisplayAdInfo
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 LegacyResponsiveDisplayAdInfo
impl Clone for LegacyResponsiveDisplayAdInfo
Source§fn clone(&self) -> LegacyResponsiveDisplayAdInfo
fn clone(&self) -> LegacyResponsiveDisplayAdInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Message for LegacyResponsiveDisplayAdInfo
impl Message for LegacyResponsiveDisplayAdInfo
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 LegacyResponsiveDisplayAdInfo
impl PartialEq for LegacyResponsiveDisplayAdInfo
Source§fn eq(&self, other: &LegacyResponsiveDisplayAdInfo) -> bool
fn eq(&self, other: &LegacyResponsiveDisplayAdInfo) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for LegacyResponsiveDisplayAdInfo
Auto Trait Implementations§
impl Freeze for LegacyResponsiveDisplayAdInfo
impl RefUnwindSafe for LegacyResponsiveDisplayAdInfo
impl Send for LegacyResponsiveDisplayAdInfo
impl Sync for LegacyResponsiveDisplayAdInfo
impl Unpin for LegacyResponsiveDisplayAdInfo
impl UnwindSafe for LegacyResponsiveDisplayAdInfo
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