Releases: theonion/bulbs-public-ads-manager
Adds IAS Support
Adds support for the IAS Publisher Optimization tag
Add Amazon a9 bids
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
Flag empty ads, don't allow them to fire rendering events and callbacks
Work with webpack
Now we can use this on our creative.theonion server & webpack
prevent auto refresh of header ad
Query selector to find ads
New
- Can pass in a css selector string to
findAds
to usequerySelectorAll
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!
New
- Run linter with
$ npm run lint
Fixed resize listener
Fixed
- Window resize event listener will now properly cause ads to reload.
New utility functions
Updated
utils.hasClass
no longer lower cases before testing, and usesmatch
instead ofsplit
thenindexOf
.
New
- Added
utils.removeClass
. - Added
utils.addClass
.