Location: PHPKode > scripts > AD Rotator using PHPAdsNew classes > ad-rotator-using-phpadsnew-classes/testads.php
<?PHP
include_once("PHPAdsModule.class.php");
$DocumentURL = "/siteadmin/ads/phpadsnew.inc.php";
$CampaignID=2;
$target="_blank";
$MaxAds=3;
$Style = "<br>";
$Ads = new PHPAdsModule($DocumentURL,$CampaignID,$target,$MaxAds);
$Ads->GetBanner();
$Ads->DisplayAds($Style);
?>
Return current item: AD Rotator using PHPAdsNew classes