Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
accountgoogle.php
1
<?
2
3
namespace
Bitrix\Seo\Retargeting\Services
;
4
5
use \Bitrix\Main\Web\Json;
6
use \Bitrix\Seo\Retargeting\Account;
7
use \Bitrix\Seo\Retargeting\Response;
8
9
class
AccountGoogle
extends
Account
10
{
11
const
TYPE_CODE
=
'google'
;
12
13
public
function
getList
()
14
{
15
$response = $this->request->send(array(
16
'methodName'
=>
'account.list'
,
17
'parameters'
=> array()
18
));
19
20
return
$response;
21
}
22
23
public
function
getProfile
()
24
{
25
$response = $this->request->send(array(
26
'methodName'
=>
'retargeting.profile'
,
27
'parameters'
=> array()
28
));
29
30
if
($response->isSuccess())
31
{
32
$data = $response->fetch();
33
return
array(
34
'ID'
=> $data[
'ID'
],
35
'NAME'
=> $data[
'NAME'
],
36
'LINK'
=>
''
,
37
'PICTURE'
=> $data[
'PICTURE'
],
38
);
39
}
40
41
return
null
;
42
}
43
}
Bitrix\Seo\Retargeting\Account
Definition
account.php:8
Bitrix\Seo\Retargeting\Services\AccountGoogle
Definition
accountgoogle.php:10
Bitrix\Seo\Retargeting\Services\AccountGoogle\TYPE_CODE
const TYPE_CODE
Definition
accountgoogle.php:11
Bitrix\Seo\Retargeting\Services\AccountGoogle\getList
getList()
Definition
accountgoogle.php:13
Bitrix\Seo\Retargeting\Services\AccountGoogle\getProfile
getProfile()
Definition
accountgoogle.php:23
Bitrix\Seo\Retargeting\Services
Definition
accountfacebook.php:3
modules
seo
lib
retargeting
services
accountgoogle.php
Создано системой
1.10.0