Skip to main content

Examples

Example workflow (methods are independent and can be combined as needed)

 var bqjs = window.bqjs || {};
bqjs.que = bqjs.que || [];

bqjs.que.push(function() {
//1) Add user details (optional)
bqjs.addUserDetails({ email: 'user@example.com' });

// 2) Update ad unit sizes (optional)
bqjs.updateAdUnitInfo({
code: 'banner_1',
divId:"banner_div"
});

// 3) Refresh the ad (requires object argument)
bqjs.adRefresh({ adunit: 'banner_1' });
});