Struct gapi_grpc::google::ads::googleads::v5::common::ResponsiveDisplayAdInfo[][src]

pub struct ResponsiveDisplayAdInfo {
    pub marketing_images: Vec<AdImageAsset>,
    pub square_marketing_images: Vec<AdImageAsset>,
    pub logo_images: Vec<AdImageAsset>,
    pub square_logo_images: Vec<AdImageAsset>,
    pub headlines: Vec<AdTextAsset>,
    pub long_headline: Option<AdTextAsset>,
    pub descriptions: Vec<AdTextAsset>,
    pub youtube_videos: Vec<AdVideoAsset>,
    pub business_name: String,
    pub main_color: String,
    pub accent_color: String,
    pub allow_flexible_color: bool,
    pub call_to_action_text: String,
    pub price_prefix: String,
    pub promo_text: String,
    pub format_setting: i32,
}

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: String

The advertiser/brand name. Maximum display width is 25.

main_color: String

The 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: String

The 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: bool

Advertiser’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: String

The call-to-action text for the ad. Maximum display width is 30.

price_prefix: String

Prefix before price. E.g. ‘as low as’.

promo_text: String

Promotion text used for dyanmic formats of responsive ads. For example ‘Free two-day shipping’.

format_setting: i32

Specifies which format the ad will be served in. Default is ALL_FORMATS.

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]

impl Debug for ResponsiveDisplayAdInfo[src]

impl Default for ResponsiveDisplayAdInfo[src]

impl Message for ResponsiveDisplayAdInfo[src]

impl PartialEq<ResponsiveDisplayAdInfo> for ResponsiveDisplayAdInfo[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]