Struct gapi_grpc::google::ads::googleads::v7::common::ResponsiveDisplayAdInfo [−][src]
A responsive display ad.
Fields
marketing_images: Vec<AdImageAsset>Marketing images 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%). At least one marketing_image is required. Combined with square_marketing_images the maximum is 15.
square_marketing_images: Vec<AdImageAsset>Square marketing images 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%). At least one square marketing_image is required. Combined with marketing_images the maximum is 15.
logo_images: Vec<AdImageAsset>Logo images to be used in the ad. Valid image types are GIF, JPEG, and PNG. The minimum size is 512x128 and the aspect ratio must be 4:1 (+-1%). Combined with square_logo_images the maximum is 5.
square_logo_images: Vec<AdImageAsset>Square logo images 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%). Combined with square_logo_images the maximum is 5.
headlines: Vec<AdTextAsset>Short format headlines for the ad. The maximum length is 30 characters. At least 1 and max 5 headlines can be specified.
long_headline: Option<AdTextAsset>A required long format headline. The maximum length is 90 characters.
descriptions: Vec<AdTextAsset>Descriptive texts for the ad. The maximum length is 90 characters. At least 1 and max 5 headlines can be specified.
youtube_videos: Vec<AdVideoAsset>Optional YouTube videos for the ad. A maximum of 5 videos can be specified.
business_name: StringThe advertiser/brand name. Maximum display width is 25.
main_color: StringThe main color of the ad in hexadecimal, e.g. #ffffff for white. If one of main_color and accent_color is set, the other is required as well.
accent_color: StringThe accent color of the ad in hexadecimal, e.g. #ffffff for white. If one of main_color and accent_color is set, the other is required as well.
allow_flexible_color: boolAdvertiser’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.
call_to_action_text: StringThe call-to-action text for the ad. Maximum display width is 30.
price_prefix: StringPrefix before price. E.g. ‘as low as’.
promo_text: StringPromotion text used for dyanmic formats of responsive ads. For example ‘Free two-day shipping’.
format_setting: i32Specifies which format the ad will be served in. Default is ALL_FORMATS.
control_spec: Option<ResponsiveDisplayAdControlSpec>Specification for various creative controls.
Implementations
impl ResponsiveDisplayAdInfo[src]
pub fn format_setting(&self) -> DisplayAdFormatSetting[src]
Returns the enum value of format_setting, or the default if the field is set to an invalid enum value.
pub fn set_format_setting(&mut self, value: DisplayAdFormatSetting)[src]
Sets format_setting to the provided enum value.
Trait Implementations
impl Clone for ResponsiveDisplayAdInfo[src]
fn clone(&self) -> ResponsiveDisplayAdInfo[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ResponsiveDisplayAdInfo[src]
impl Default for ResponsiveDisplayAdInfo[src]
fn default() -> ResponsiveDisplayAdInfo[src]
impl Message for ResponsiveDisplayAdInfo[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut, [src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf, [src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize[src]
fn clear(&mut self)[src]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut, [src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut, [src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf, [src]
Self: Default,
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf, [src]
Self: Default,
B: Buf,
pub fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf, [src]
B: Buf,
pub fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf, [src]
B: Buf,
impl PartialEq<ResponsiveDisplayAdInfo> for ResponsiveDisplayAdInfo[src]
fn eq(&self, other: &ResponsiveDisplayAdInfo) -> bool[src]
fn ne(&self, other: &ResponsiveDisplayAdInfo) -> bool[src]
impl StructuralPartialEq for ResponsiveDisplayAdInfo[src]
Auto Trait Implementations
impl RefUnwindSafe for ResponsiveDisplayAdInfo
impl Send for ResponsiveDisplayAdInfo
impl Sync for ResponsiveDisplayAdInfo
impl Unpin for ResponsiveDisplayAdInfo
impl UnwindSafe for ResponsiveDisplayAdInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> IntoRequest<T> for T[src]
pub fn into_request(self) -> Request<T>[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>, [src]
V: MultiLane<T>,
impl<T> WithSubscriber for T[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]
S: Into<Dispatch>,