[][src]Enum openrtb_native1::DataAssetType

pub enum DataAssetType {
    Sponsored,
    Desc,
    Rating,
    Likes,
    Downloads,
    Price,
    SalePrice,
    Phone,
    Address,
    Desc2,
    DisplayUrl,
    CtaText,
    ExchangeSpecific(i32),
}

7.4 Data Asset Types

Below is a list of common 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 introduce new ones unique to that system.

Variants

Sponsored

Sponsored By message where response should contain the brand name of the sponsor. required; text; -; Max 25 or longer

Desc

Descriptive text associated with the product or service being advertised. Longer length of text in response may be truncated or ellipsed by the exchange. recommended; text; -; Max 25 or longer

Rating

Rating of the product being offered to the user. For example an app’s rating in an app store from 0-5. optional; number formatted as string; -; 0-5 integer formatted as string

Likes

Number of social ratings or “likes” of the product being offered to the user. -; number formatted as string;

Downloads

Number downloads/installs of this product. -; number formatted as string;

Price

Price for product / app / in-app purchase. Value should include currency symbol in localised format. -; number formatted as string;

SalePrice

Sale price that can be used together with price to indicate a discounted price compared to a regular price. Value should include currency symbol in localised format. -; number formatted as string;

Phone

Phone number. -; formatted string

Address

Address. -; text

Desc2

Additional descriptive text associated text with the product or service being advertised. -; text

DisplayUrl

Display URL for the text ad. To be used when sponsoring entity doesn’t own the content. IE sponsored by BRAND on SITE (where SITE is transmitted in this field). -; text

CtaText

CTA description - descriptive text describing a ‘call to action’ button for the destination URL. optional; text; -; Max 15 or longer

ExchangeSpecific(i32)

Reserved for Exchange specific usage numbered above 500 -; unknown

Trait Implementations

impl Clone for DataAssetType[src]

impl Copy for DataAssetType[src]

impl Debug for DataAssetType[src]

impl<'de> Deserialize<'de> for DataAssetType[src]

impl Eq for DataAssetType[src]

impl PartialEq<DataAssetType> for DataAssetType[src]

impl Serialize for DataAssetType[src]

impl StructuralEq for DataAssetType[src]

impl StructuralPartialEq for DataAssetType[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<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.