Skip to content

v2.16.0

Choose a tag to compare

@MattOpen MattOpen released this 01 Nov 14:45
· 6 commits to master since this release

Width per ad

An entry in adSlots.ads can now carry style: 'card' | 'fullwidth'. The slot that shows the ad takes that width, so card and full-width ads run in the same list. Without style on the entry (or with any other value), adSlots.style applies as before. The cadence (mode, interval) stays per list.

adSlots: {
  mode: 'every_n', interval: 3, style: 'card',
  ads: [
    { id: 'a', image: '/ads/a.png', alt: 'Product A', url: 'https://example.com/a', label: 'Ad' },
    { id: 'launch', image: '/ads/launch-wide.png', alt: 'Big launch', url: 'https://example.com/launch',
      label: 'Ad', style: 'fullwidth' }
  ]
}

moTimeline sets no aspect ratio: the image fills the slot width at its own proportions, so you pick the image format and style per ad.

Demo: the "Ad Slots" tab, "Source → ads list", now includes a full-width ad (weights 1 / 1 / 4 / 4).

No breaking changes.