Default

This is a basic example of a unit that can be used as a starting point for most publishers getting started with the BuySellAds Framework.

<script src="//m.servedby-buysellads.com/monetization.js" type="text/javascript"></script>
<div id="default_demo"></div>
<script>
(function(){
  if(typeof _bsa !== 'undefined' && _bsa) {
  	// format, zoneKey, segment:value, options
  	_bsa.init('default', 'CKYD623M', 'placement:demo', {
    	target: '#default_demo',
    	align: 'horizontal'
  	});
  }
})();
</script>

Options Reference

Options Description Default Values
target Use a different ID on the div element.
#default_demo
string
platforms You can restrict the unit to desktop or mobile.
['desktop', 'mobile']
array
disable_css This allows you to disable the default CSS.
false
boolean
number_of_ads This allows you to modify the number of ads returned for the zone.
1
integer
id ID for the containing div element.
_default_
string
path You can retrieve ads server-side vs client-side in the browser. See example.
//srv.buysellads.com/ads/[zoneKey].json
string
align Options are horizontal or vertical
horizontal
string
ip This is for testing in case you need to trigger an ad request that is geo-targeted and you're working locally or not from an IP address that will serve for a given GEO targeted ad.
null
string