The ads can be served based on size and category. For instance, if you want to serve 300x250 ads for eBooks on your book review sites, please select the category and size accordingly. If you want all the ads of a particular size to appear, you can select All as the category.
The size parameter, on the other hand, cannot be ignored, and defaults to 300x250.
"); $catSource = "[{value: 'All', text:'All'},"; $categories = $db->getData('categories', '*', 'active=1'); foreach ($categories as $cat) { extract($cat); $catSource .= "{value: '$name', text: '$name'},"; } $catSource .= "]"; $sizes = $db->getColData('banners', 'size'); $defaultSize = $sizes[0]; $sizeSource = "["; foreach ($sizes as $size) { $sizeSource .= "{value: '$size', text: '$size'},"; } $sizeSource .= "]"; ?>Copy and paste this code on your page where you would like to see the ads.