本文整理汇总了PHP中Admin_DA::getLinkedAdParams方法的典型用法代码示例。如果您正苦于以下问题:PHP Admin_DA::getLinkedAdParams方法的具体用法?PHP Admin_DA::getLinkedAdParams怎么用?PHP Admin_DA::getLinkedAdParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Admin_DA
的用法示例。
在下文中一共展示了Admin_DA::getLinkedAdParams方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addPlacementZone
function addPlacementZone($aVariables, $autoLinkMatchingBanners = true)
{
if (!($pzaId = Admin_DA::_addEntity('placement_zone_assoc', $aVariables))) {
return false;
}
if (!$autoLinkMatchingBanners) {
return $pzaId;
}
// Selects ads which belongs to the campaign (placement) and fit into
// the zone. Then links all those ads to the zone if they are not linked already.
$azParams = Admin_DA::getLinkedAdParams($aVariables['zone_id']);
$azParams['placement_id'] = $aVariables['placement_id'];
$azParams['market_ads_include'] = true;
$azAds = Admin_DA::getAds($azParams);
$azLinkedAds = Admin_DA::getAdZones(array('zone_id' => $aVariables['zone_id']), false, 'ad_id');
foreach ($azAds as $adId => $azAd) {
if (!isset($azLinkedAds[$adId])) {
Admin_DA::addAdZone(array('zone_id' => $aVariables['zone_id'], 'ad_id' => $adId));
}
}
return $pzaId;
}