Skip to content

Instantly share code, notes, and snippets.

@dannysofftie
Last active August 10, 2018 07:56
Show Gist options
  • Save dannysofftie/670736b463dcbb0323f65ac71af67cdf to your computer and use it in GitHub Desktop.
Save dannysofftie/670736b463dcbb0323f65ac71af67cdf to your computer and use it in GitHub Desktop.
Embed code for Tickles Ad Server.
<script>
(function () {
var script = document.getElementsByTagName('script')[0]
var t = document.createElement('script')
t.src = 'https://adxserver.herokuapp.com/resources/js/tickles-main.js'
t.async = true
t.defer = true
script.parentNode.insertBefore(t, script)
window.addEventListener('load', function () {
// You will paste this code snippet at the bottom of every page you want
// to feature Tickles ads. Replace 'element-id' with the id of element
// to place Tickles ads. Allowed element sizes are either,
// 800 x 120 or 120 x 540 (width x height) respectively
new Tickles().init('element-id')
})
})()
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment