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§

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.