function getPossibleCompanions($aBannerRow) { $aParams = array('placement_id' => $aBannerRow['campaignid']); $possibleCompanions = Admin_DA::_getEntities('ad', $aParams, true); $selectableCompanions = array(0 => 'none'); foreach ($possibleCompanions as $currentCompanion) { // Only allow linking to banners that are not of type "vast" if (strpos($currentCompanion['ext_bannertype'], 'vast') === false) { $strNameToDisplay = $currentCompanion['name'] . " (" . $currentCompanion['width'] . "x" . $currentCompanion['height'] . " )"; $selectableCompanions[$currentCompanion['ad_id']] = $strNameToDisplay; } } return $selectableCompanions; }
function getPublishers($aParams, $allFields = false) { return Admin_DA::_getEntities('publisher', $aParams, $allFields); }