Struct primitives::AdSlot
source · pub struct AdSlot {
pub ipfs: IPFS,
pub ad_type: String,
pub min_per_impression: Option<HashMap<Address, UnifiedNum>>,
pub rules: Rules,
pub fallback_unit: Option<IPFS>,
pub owner: ValidatorId,
pub created: DateTime<Utc>,
pub title: Option<String>,
pub description: Option<String>,
pub website: Option<String>,
pub archived: bool,
pub modified: Option<DateTime<Utc>>,
}
Expand description
See AdEx Protocol adSlot.md & adex-models AdSlot.js for more details.
Fields
ipfs: IPFS
valid ipfs hash of spec props below
ad_type: String
The type of the AdSlot currently, possible values are:
legacy_300x250, legacy_250x250, legacy_240x400, legacy_336x280, legacy_180x150, legacy_300x100, legacy_720x300, legacy_468x60, legacy_234x60, legacy_88x31, legacy_120x90, legacy_120x60, legacy_120x240, legacy_125x125, legacy_728x90, legacy_160x600, legacy_120x600, legacy_300x600 see IAB ad unit guidelines and iab_flex_{adUnitName} (see IAB’s new ad portfolio and PDF)
min_per_impression: Option<HashMap<Address, UnifiedNum>>
The minimum IMPRESSION
payment accepted for the slot per deposit asset (token address).
HashMap<DepositAsset, UnifiedNum>
rules: Rules
fallback_unit: Option<IPFS>
Valid ipfs hash for Ad Unit object. It will be used as fallback data (optional)
owner: ValidatorId
The AdSlot owner (Publisher)
created: DateTime<Utc>
UTC timestamp in milliseconds, used as nonce for escaping duplicated spec ipfs hashes
title: Option<String>
The name of the unit used in platform UI
description: Option<String>
arbitrary text used in platform UI
website: Option<String>
archived: bool
user can change it - used for filtering in platform UI
modified: Option<DateTime<Utc>>
UTC timestamp in milliseconds, changed every time modifiable property is changed