Skip to content

AdUnit domain struct #28

Closed
Closed
@elpiel

Description

@elpiel

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 below
  • 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
  • targetUrl: string, the advertised URL
  • targeting: an array of TargetingTag, optional
  • minTargetingScore: optional, Number; minimum targeting score
  • tags: an array of TargetingTag, meant for discovery between publishers/advertisers
  • owner: user address from the session
  • created: number, UTC timestamp in milliseconds, used as nonce for escaping duplicated spec [ipfs] hashes
Non spec properties (not added to ipfs and CAN be modified)
  • title: string, the name of the unit used in platform UI
  • description: string, arbitrary text used in platform UI
  • archived: boolean, user can change it - used for filtering in platform UI
  • modified: number, UTC timestamp in milliseconds, changed every time modifiable property is changed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions