Skip to content

Releases: theonion/bulbs-public-ads-manager

Adds IAS Support

07 Jun 16:39
2fa4dc7
Compare
Choose a tag to compare

Add Amazon a9 bids

23 Feb 17:24
Compare
Choose a tag to compare

#29

Added logic for amazon ads, any property using this version of bulbs-public-ads-manager must have <script type='text/javascript'> var amznads = amznads || {}; var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; amznads.lastGetAdsCallback = Date.now(); amznads.asyncParams = { 'id': '3076', 'callbackFn': function() { try { amznads.setTargetingForGPTAsync('amznslots'); } catch (e) { /*ignore*/ } /* Continue your DFP call here (optional) */ }, 'timeout': 2e3 }; (function() { var a, s = document.getElementsByTagName("script")[0]; a = document.createElement("script"); a.type = "text/javascript"; a.async = true; a.src = "http://c.amazon-adsystem.com/aax2/amzn_ads.js"; s.parentNode.insertBefore(a, s); })(); </script> available on every page

Remove 970x250 inbetween ad slot size

07 Feb 20:38
Compare
Choose a tag to compare

Flag empty ads, don't allow them to fire rendering events and callbacks

21 Nov 18:08
Compare
Choose a tag to compare

Work with webpack

26 Oct 15:15
Compare
Choose a tag to compare

Now we can use this on our creative.theonion server & webpack

prevent auto refresh of header ad

20 Oct 23:11
Compare
Choose a tag to compare

Query selector to find ads

22 Sep 19:48
Compare
Choose a tag to compare

New

  1. Can pass in a css selector string to findAds to use querySelectorAll to find ads on the page. Since other ad slot modification functions are using this function in the background, css selectors can be passed into those functions as well.

Now with linting!

21 Aug 16:29
Compare
Choose a tag to compare

New

  1. Run linter with $ npm run lint

Fixed resize listener

19 Aug 22:46
Compare
Choose a tag to compare

Fixed

  1. Window resize event listener will now properly cause ads to reload.

New utility functions

19 Aug 17:20
Compare
Choose a tag to compare

Updated

  1. utils.hasClass no longer lower cases before testing, and uses match instead of split then indexOf.

New

  1. Added utils.removeClass.
  2. Added utils.addClass.