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: String,
pub call_to_action_text: String,
pub lead_form_only: 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: String
The Advertiser/brand name. Maximum display width is 25. Required.
call_to_action_text: String
Call to action text.
lead_form_only: bool
Boolean option that indicates if this ad must be served with lead form.
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<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
.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
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