Struct google_api_proto::google::ads::googleads::v17::common::LocalAdInfo
source · pub struct LocalAdInfo {
pub headlines: Vec<AdTextAsset>,
pub descriptions: Vec<AdTextAsset>,
pub call_to_actions: Vec<AdTextAsset>,
pub marketing_images: Vec<AdImageAsset>,
pub logo_images: Vec<AdImageAsset>,
pub videos: Vec<AdVideoAsset>,
pub path1: Option<String>,
pub path2: Option<String>,
}
Expand description
A local ad.
Fields§
§headlines: Vec<AdTextAsset>
List of text assets for headlines. When the ad serves the headlines will be selected from this list. At least 1 and at most 5 headlines must be specified.
descriptions: Vec<AdTextAsset>
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list. At least 1 and at most 5 descriptions must be specified.
call_to_actions: Vec<AdTextAsset>
List of text assets for call-to-actions. When the ad serves the call-to-actions will be selected from this list. At least 1 and at most 5 call-to-actions must be specified.
marketing_images: Vec<AdImageAsset>
List of marketing image assets that may be displayed with the ad. The images must be 314x600 pixels or 320x320 pixels. At least 1 and at most 20 image assets must be specified.
logo_images: Vec<AdImageAsset>
List of logo image assets that may be displayed with the ad. The images must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5 image assets must be specified.
videos: Vec<AdVideoAsset>
List of YouTube video assets that may be displayed with the ad. At least 1 and at most 20 video assets must be specified.
path1: Option<String>
First part of optional text that can be appended to the URL in the ad.
path2: Option<String>
Second part of optional text that can be appended to the URL in the ad.
This field can only be set when path1
is also set.
Implementations§
Trait Implementations§
source§impl Clone for LocalAdInfo
impl Clone for LocalAdInfo
source§fn clone(&self) -> LocalAdInfo
fn clone(&self) -> LocalAdInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LocalAdInfo
impl Debug for LocalAdInfo
source§impl Default for LocalAdInfo
impl Default for LocalAdInfo
source§impl Message for LocalAdInfo
impl Message for LocalAdInfo
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 LocalAdInfo
impl PartialEq for LocalAdInfo
source§fn eq(&self, other: &LocalAdInfo) -> bool
fn eq(&self, other: &LocalAdInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LocalAdInfo
Auto Trait Implementations§
impl Freeze for LocalAdInfo
impl RefUnwindSafe for LocalAdInfo
impl Send for LocalAdInfo
impl Sync for LocalAdInfo
impl Unpin for LocalAdInfo
impl UnwindSafe for LocalAdInfo
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