Struct google_api_proto::google::ads::googleads::v16::common::DiscoveryMultiAssetAdInfo
source · pub struct DiscoveryMultiAssetAdInfo {
pub marketing_images: Vec<AdImageAsset>,
pub square_marketing_images: Vec<AdImageAsset>,
pub portrait_marketing_images: Vec<AdImageAsset>,
pub logo_images: Vec<AdImageAsset>,
pub headlines: Vec<AdTextAsset>,
pub descriptions: Vec<AdTextAsset>,
pub business_name: Option<String>,
pub call_to_action_text: Option<String>,
pub lead_form_only: Option<bool>,
}
Expand description
A discovery multi asset ad.
Fields§
§marketing_images: Vec<AdImageAsset>
Marketing image assets 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%). Required if square_marketing_images is
not present. Combined with square_marketing_images
and
portrait_marketing_images
the maximum is 20.
square_marketing_images: Vec<AdImageAsset>
Square marketing image assets 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%). Required if marketing_images is not present. Combined with
marketing_images
and portrait_marketing_images
the maximum is 20.
portrait_marketing_images: Vec<AdImageAsset>
Portrait marketing image assets to be used in the ad. Valid image types are
GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
be 4:5 (+-1%). Combined with marketing_images
and
square_marketing_images
the maximum is 20.
logo_images: Vec<AdImageAsset>
Logo image assets 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%). At least 1 and max 5 logo images can be specified.
headlines: Vec<AdTextAsset>
Headline text asset of the ad. Maximum display width is 30. At least 1 and max 5 headlines can be specified.
descriptions: Vec<AdTextAsset>
The descriptive text of the ad. Maximum display width is 90. At least 1 and max 5 descriptions can be specified.
business_name: Option<String>
The Advertiser/brand name. Maximum display width is 25. Required.
call_to_action_text: Option<String>
Call to action text.
lead_form_only: Option<bool>
Boolean option that indicates if this ad must be served with lead form.
Implementations§
source§impl DiscoveryMultiAssetAdInfo
impl DiscoveryMultiAssetAdInfo
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 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 lead_form_only(&self) -> bool
pub fn lead_form_only(&self) -> bool
Returns the value of lead_form_only
, or the default value if lead_form_only
is unset.
Trait Implementations§
source§impl Clone for DiscoveryMultiAssetAdInfo
impl Clone for DiscoveryMultiAssetAdInfo
source§fn clone(&self) -> DiscoveryMultiAssetAdInfo
fn clone(&self) -> DiscoveryMultiAssetAdInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DiscoveryMultiAssetAdInfo
impl Debug for DiscoveryMultiAssetAdInfo
source§impl Default for DiscoveryMultiAssetAdInfo
impl Default for DiscoveryMultiAssetAdInfo
source§impl Message for DiscoveryMultiAssetAdInfo
impl Message for DiscoveryMultiAssetAdInfo
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 DiscoveryMultiAssetAdInfo
impl PartialEq for DiscoveryMultiAssetAdInfo
source§fn eq(&self, other: &DiscoveryMultiAssetAdInfo) -> bool
fn eq(&self, other: &DiscoveryMultiAssetAdInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DiscoveryMultiAssetAdInfo
Auto Trait Implementations§
impl Freeze for DiscoveryMultiAssetAdInfo
impl RefUnwindSafe for DiscoveryMultiAssetAdInfo
impl Send for DiscoveryMultiAssetAdInfo
impl Sync for DiscoveryMultiAssetAdInfo
impl Unpin for DiscoveryMultiAssetAdInfo
impl UnwindSafe for DiscoveryMultiAssetAdInfo
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