コード例 #1
0
 /**
  * The getCampaignListByAdvertiserIdPagination method returns a list of campaigns
  * for an advertiser with limit and offset, or returns an error message.
  *
  * @access public
  *
  * @param XML_RPC_Message &$oParams
  *
  * @return generated result (data or error)
  */
 function getCampaignListByAdvertiserIdPagination(&$oParams)
 {
     $oResponseWithError = null;
     if (!XmlRpcUtils::getScalarValues(array(&$sessionId, &$advertiserId, &$limit, &$offset), array(true, true, false, false), $oParams, $oResponseWithError)) {
         return $oResponseWithError;
     }
     $aCampaignList = null;
     if ($this->_oCampaignServiceImpl->getCampaignListByAdvertiserIdPagination($sessionId, $advertiserId, $limit, $offset, $aCampaignList)) {
         return XmlRpcUtils::getArrayOfEntityResponse($aCampaignList);
     } else {
         return XmlRpcUtils::generateError($this->_oCampaignServiceImpl->getLastError());
     }
 }
コード例 #2
0
 /**
  * The getPublisherListByAgencyId method returns a list of publishers
  * for an agency, or returns an error message.
  *
  * @access public
  *
  * @param XML_RPC_Message $oParams
  *
  * @return generated result (data or error)
  */
 function getPublisherListByAgencyId($oParams)
 {
     $oResponseWithError = null;
     if (!XmlRpcUtils::getScalarValues(array(&$sessionId, &$agencyId), array(true, true), $oParams, $oResponseWithError)) {
         return $oResponseWithError;
     }
     $aPublisherList = null;
     if ($this->_oPublisherServiceImp->getPublisherListByAgencyId($sessionId, $agencyId, $aPublisherList)) {
         return XmlRpcUtils::getArrayOfEntityResponse($aPublisherList);
     } else {
         return XmlRpcUtils::generateError($this->_oPublisherServiceImp->getLastError());
     }
 }
コード例 #3
0
 /**
  * This method return targeting limitations for channel.
  *
  * @access public
  *
  * @param  XML_RPC_Message &$oParams
  *
  * @return generated result (array or error)
  */
 public function getChannelTargeting(&$oParams)
 {
     $oResponseWithError = null;
     if (!XmlRpcUtils::getScalarValues(array(&$sessionId, &$channelId), array(true, true), $oParams, $oResponseWithError)) {
         return $oResponseWithError;
     }
     $aTargeting = null;
     if ($this->_oChannelServiceImp->getChannelTargeting($sessionId, $channelId, $aTargeting)) {
         return XmlRpcUtils::getArrayOfEntityResponse($aTargeting);
     } else {
         return XmlRpcUtils::generateError($this->_oChannelServiceImp->getLastError());
     }
 }