pub enum ImageAssetType {
    Icon,
    Logo,
    Main,
    ExchangeSpecific(i32),
}
Expand description

7.5 Image Asset Types

Below is a list of common image asset element types of native advertising at the time of writing this spec. This list is non-exhaustive and intended to be extended by the buyers and sellers as the format evolves.

An implementing exchange may not support all asset variants or may introduce new ones unique to that system.

In order to facilitate adoption, recommendations are made for both minimum sizes and aspect ratios. We speak here of ‘minimum maximum height’ or ‘max height of at least’, which means the SSP should support a max height of at least this value. They are free to support larger, but the DSP knows that if they have an image of this size it will be accepted. Note that SSPs will be responsible for sizing image to exact size if min-max- height framework is used; exact size may not be available at bid request time. Width is calculated from the 3 supported aspect ratios. Note we merged the prior overlapping type 1 and type 2 as just type 1 - to be used for app icon, brand logo, or similar.

Variants§

§

Icon

Icon image. optional; -; -; max height: at least 50, aspect ratio: 1:1

👎Deprecated: Please use the Icon variant instead

Logo image for the brand/app.

§

Main

Large image preview for the ad. At least one of 2 size variants required: Small Variant: max height: 200+, max width: 200+, 267, or 382, aspect ratio: 1:1, 4:3, or 1.91:1. Large Variant: max height: 627+, max width: 627+, 836, or 1198, aspect ratio: 1:1, 4:3, or 1.91:1.

§

ExchangeSpecific(i32)

Reserved for Exchange specific usage numbered above 500

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.