Enum DataAssetType

Source
pub enum DataAssetType {
Show 13 variants Sponsored, Desc, Rating, Likes, Downloads, Price, SalePrice, Phone, Address, Desc2, DisplayUrl, CtaText, ExchangeSpecific(i32),
}
Expand description

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§

Source§

impl Clone for DataAssetType

Source§

fn clone(&self) -> DataAssetType

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DataAssetType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for DataAssetType

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for DataAssetType

Source§

fn eq(&self, other: &DataAssetType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for DataAssetType

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for DataAssetType

Source§

impl Eq for DataAssetType

Source§

impl StructuralPartialEq for DataAssetType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,