/**
  * This method sets targeting limitations for banner.
  * It overrides existing limitations.
  *
  * @access public
  *
  * @param  XML_RPC_Message &$oParams
  *
  * @return generated result (boolean or error)
  */
 function setBannerTargeting(&$oParams)
 {
     $oResponseWithError = null;
     $aTargeting = array();
     if (!XmlRpcUtils::getScalarValues(array(&$sessionId, &$bannerId), array(true, true), $oParams, $oResponseWithError) || !XmlRpcUtils::getArrayOfStructuresScalarFields($aTargeting, 'OA_Dll_TargetingInfo', $oParams, 2, array('logical', 'type', 'comparison', 'data'), $oResponseWithError)) {
         return $oResponseWithError;
     }
     if ($this->_oBannerServiceImp->setBannerTargeting($sessionId, $bannerId, $aTargeting)) {
         return XmlRpcUtils::booleanTypeResponse(true);
     } else {
         return XmlRpcUtils::generateError($this->_oBannerServiceImp->getLastError());
     }
 }