Ads manager for public side of sites. Fills in ad slots.
- Install via bower,
<version>
being the version to depend on:
$ bower install --save https://github.com/theonion/bulbs-public-ads-manager.git\#\<version>
- Require and initialize the ads manager code via a browserified file (path may differ based on configuration):
var adsManager = require('./bower_components/bulbs-public-ads-manager/src/manager');
adsManager.init(); // Returns a reference to the AdManager if needed further on the page
- Ensure ad code is referenced as high as possible on the page, preferably as one of the first things that loads, so that no ad impressions are lost.
To run tests:
$ npm test
Tests will run on travis-ci as part of the pull request process.
This project should never have outside, frontend dependencies since it really should be one of, if not, the first JS to run on the page. Otherwise, potential ad views could be lost.
- inside of your
bower.json
andpackage.json
files update the version in accordance with semver - Create a tag for your release
$ git tag <tag version number>
- push tag
$ git push origin --tags