Inline Ads

The ability to display ads within a liveblog is only available in the Javascript variant of the embed!

Setting an AdManager

To start showing inline Ads within a Liveblog, an AdManager instance must be created and attached to the tickaroo-liveblog element. Ads will always display on top of liveblog entries.

Example:

<tickaroo-liveblog
  id="liveblog"
  liveblogId="5f47bdba2a03d3abfab3c607"
  clientId="5c99e3358dce8c729e697547"
/>

<script>
  document.getElementById("liveblog").addEventListener("tickarooLiveblogInit", function (e) {
    var adManager = new window.tik4.ScheduledAdManager(0, 2, '<div>This is the Ad Code</div>')
  
    document.getElementById("liveblog").setAdManager(adManager)
  })
</script>

ScheduledAdManager

The ScheduledAdManager will insert ads by a fixed schedule.

Constructor signature:

new ScheduledAdManager(start: number, interval: number, html: string)

Parameters:

  • start: The index of the first post to display an ad
  • interval: Display an ad every interval entries after start
  • html: The ad tag HTML to insert. <script> content will be executed!