type: string, the type of the ad unit; 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)
mediaUrl: string, a URL to the resource (usually PNG); must use the ipfs:// protocol, to guarantee data immutability
mediaMime: string, MIME type of the media, possible values at the moment are: image/jpeg, image/png
https://github.com/AdExNetwork/adex-protocol/blob/master/campaignSpec.md#adunit
AdUnit
Spec properties (added to ipfs and can NOT be modified)
ipfs
: string, valid ipfs hash of spec props belowtype
: string, the type of the ad unit; 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 andiab_flex_{adUnitName}
(see IAB's new ad portfolio and PDF)mediaUrl
: string, a URL to the resource (usually PNG); must use theipfs://
protocol, to guarantee data immutabilitymediaMime
: string, MIME type of the media, possible values at the moment are:image/jpeg
,image/png
targetUrl
: string, the advertised URLtargeting
: an array ofTargetingTag
, optionalminTargetingScore
: optional, Number; minimum targeting scoretags
: an array ofTargetingTag
, meant for discovery between publishers/advertisersowner
: user address from the sessioncreated
: number, UTC timestamp in milliseconds, used as nonce for escaping duplicated spec [ipfs] hashesNon spec properties (not added to ipfs and CAN be modified)
title
: string, the name of the unit used in platform UIdescription
: string, arbitrary text used in platform UIarchived
: boolean, user can change it - used for filtering in platform UImodified
: number, UTC timestamp in milliseconds, changed every time modifiable property is changed[x] add all fields
[ ] create fixtures
[ ] use fixture for ChannelSpec #24