Struct google_api_proto::google::ads::googleads::v17::common::DemandGenMultiAssetAdInfo
source · pub struct DemandGenMultiAssetAdInfo {
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 Demand Gen 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 DemandGenMultiAssetAdInfo
impl DemandGenMultiAssetAdInfo
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 DemandGenMultiAssetAdInfo
impl Clone for DemandGenMultiAssetAdInfo
source§fn clone(&self) -> DemandGenMultiAssetAdInfo
fn clone(&self) -> DemandGenMultiAssetAdInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DemandGenMultiAssetAdInfo
impl Debug for DemandGenMultiAssetAdInfo
source§impl Default for DemandGenMultiAssetAdInfo
impl Default for DemandGenMultiAssetAdInfo
source§impl Message for DemandGenMultiAssetAdInfo
impl Message for DemandGenMultiAssetAdInfo
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 DemandGenMultiAssetAdInfo
impl PartialEq for DemandGenMultiAssetAdInfo
source§fn eq(&self, other: &DemandGenMultiAssetAdInfo) -> bool
fn eq(&self, other: &DemandGenMultiAssetAdInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DemandGenMultiAssetAdInfo
Auto Trait Implementations§
impl Freeze for DemandGenMultiAssetAdInfo
impl RefUnwindSafe for DemandGenMultiAssetAdInfo
impl Send for DemandGenMultiAssetAdInfo
impl Sync for DemandGenMultiAssetAdInfo
impl Unpin for DemandGenMultiAssetAdInfo
impl UnwindSafe for DemandGenMultiAssetAdInfo
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