uawdijnntqw1x1x1
IP : 18.119.99.38
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
b24.axolotl.ru
/
.
/
public_html
/
bitrix
/
modules
/
seo
/
lib
/
analytics
/
account.php
/
/
<? namespace Bitrix\Seo\Analytics; use Bitrix\Main\NotImplementedException; use Bitrix\Main\NotSupportedException; use Bitrix\Main\Result; use Bitrix\Main\Type\Date; use Bitrix\Seo\Retargeting; abstract class Account extends Retargeting\Account { /** * Get expenses. * * @param $accountId * @param Date|null $dateFrom * @param Date|null $dateTo * @return Retargeting\Response */ abstract public function getExpenses($accountId, Date $dateFrom = null, Date $dateTo = null); /** * Get expenses report. * * @param $accountId * @param Date|null $dateFrom * @param Date|null $dateTo * @return Result * @throws NotImplementedException */ public function getExpensesReport($accountId, Date $dateFrom = null, Date $dateTo = null) { throw new NotImplementedException(); } /** * Return true if it has expenses report. * * @return bool */ public function hasExpensesReport() { return false; } /** * Return true if it has accounts. * * @return bool */ public function hasAccounts() { return true; } /** * @return bool */ public function hasPublicPages() { return false; } /** * @param $accountId * @param array $params * @param array $publicPageIds * @return Result */ abstract public function updateAnalyticParams($accountId, array $params, array $publicPageIds = []); /** * Get public pages. * * @param string $accountId Account ID. * @return Result */ public function getPublicPages($accountId) { return new Result(); } /** * Manage activity of keyword. * * @param string $accountId Account ID. * @param string $groupId Group ID. * @param string $id ID. * @param bool $active Active. * @return Result * @throws NotImplementedException */ public function manageAdKeyword($accountId, $groupId, $id, $active = true) { if (!$this->hasExpensesReport()) { throw new NotSupportedException('Not supported.'); } $response = $this->getRequest()->send([ 'methodName' => 'analytics.keyword.manage', 'parameters' => [ 'accountId' => $accountId, 'groupId' => $groupId, 'id' => $id, 'active' => $active ? 1 : 0, ] ]); return $response; } /** * Manage activity of ad group. * * @param string $accountId Account ID. * @param string $id ID. * @param bool $active Active. * @return Result * @throws NotImplementedException */ public function manageAdGroup($accountId, $id, $active = true) { if (!$this->hasExpensesReport()) { throw new NotSupportedException('Not supported.'); } $response = $this->getRequest()->send([ 'methodName' => 'analytics.group.manage', 'parameters' => [ 'accountId' => $accountId, 'id' => $id, 'active' => $active ? 1 : 0, ] ]); return $response; } /** * Manage activity of campaign. * * @param string $accountId Account ID. * @param string $id ID. * @param bool $active Active. * @return Result * @throws NotImplementedException */ public function manageAdCampaign($accountId, $id, $active = true) { if (!$this->hasExpensesReport()) { throw new NotSupportedException('Not supported.'); } $response = $this->getRequest()->send([ 'methodName' => 'analytics.campaign.manage', 'parameters' => [ 'accountId' => $accountId, 'id' => $id, 'active' => $active ? 1 : 0, ] ]); return $response; } }
/var/www/axolotl/data/www/b24.axolotl.ru/./public_html/bitrix/modules/seo/lib/analytics/account.php