Update
This commit is contained in:
@@ -66,7 +66,7 @@ class AccountVkads extends \Bitrix\Seo\Analytics\Account
|
||||
$result = [
|
||||
'ID' => $data['ID'],
|
||||
'NAME' => $data['FIRST_NAME'] . ' ' . $data['LAST_NAME'],
|
||||
'LINK' => 'https://ads.vk.com/hq/budget/transactions/',
|
||||
'LINK' => 'https://ads.vk.ru/hq/budget/transactions/',
|
||||
];
|
||||
|
||||
$result['PICTURE'] = (Context::getCurrent()->getRequest()->isHttps() ? 'https' : 'http')
|
||||
|
||||
@@ -25,7 +25,7 @@ class AccountVkontakte extends \Bitrix\Seo\Analytics\Account implements IRequest
|
||||
|
||||
public function getList()
|
||||
{
|
||||
// https://vk.com/dev/ads.getAccounts
|
||||
// https://vk.ru/dev/ads.getAccounts
|
||||
|
||||
$result = $this->getRequest()->send([
|
||||
'method' => 'GET',
|
||||
@@ -65,7 +65,7 @@ class AccountVkontakte extends \Bitrix\Seo\Analytics\Account implements IRequest
|
||||
return array(
|
||||
'ID' => $data['ID'],
|
||||
'NAME' => $data['FIRST_NAME'] . ' ' . $data['LAST_NAME'],
|
||||
'LINK' => 'https://vk.com/' . $data['SCREEN_NAME'],
|
||||
'LINK' => 'https://vk.ru/' . $data['SCREEN_NAME'],
|
||||
'PICTURE' => $data['PHOTO_50'],
|
||||
);
|
||||
}
|
||||
@@ -461,7 +461,7 @@ class AccountVkontakte extends \Bitrix\Seo\Analytics\Account implements IRequest
|
||||
if($post['post_type'] == 'post_ads' && isset($post['attachments']) && is_array($post['attachments']) && count($post['attachments']) == 1)
|
||||
{
|
||||
$attachment = reset($post['attachments']);
|
||||
if($attachment['type'] != 'link' || mb_strpos($attachment['link']['url'], 'vk.com') !== false)
|
||||
if($attachment['type'] != 'link' || mb_strpos($attachment['link']['url'], 'vk.ru') !== false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -26,9 +26,9 @@ class AccountVkontakte extends Account
|
||||
|
||||
public const RESOURCE_LEAD = 'LEAD';
|
||||
|
||||
public const URL_ACCOUNT_LIST = 'https://vk.com/groups?tab=admin';
|
||||
public const URL_ACCOUNT_LIST = 'https://vk.ru/groups?tab=admin';
|
||||
|
||||
public const URL_INFO = 'https://vk.com/page-19542789_53868676';
|
||||
public const URL_INFO = 'https://vk.ru/page-19542789_53868676';
|
||||
|
||||
protected static $listRowMap = array(
|
||||
'ID' => 'ID',
|
||||
@@ -63,7 +63,7 @@ class AccountVkontakte extends Account
|
||||
*/
|
||||
public function getList(): Response
|
||||
{
|
||||
// https://vk.com/dev/groups.get
|
||||
// https://vk.ru/dev/groups.get
|
||||
$response = $this->getRequest()->send(array(
|
||||
'methodName' => 'leadads.groups.list',
|
||||
'parameters' => array(
|
||||
@@ -99,7 +99,7 @@ class AccountVkontakte extends Account
|
||||
'NAME' => $data['FIRST_NAME'] . ' ' . $data['LAST_NAME'],
|
||||
];
|
||||
|
||||
$result['LINK'] = 'https://ads.vk.com/hq/leadforms/';
|
||||
$result['LINK'] = 'https://ads.vk.ru/hq/leadforms/';
|
||||
$result['PICTURE'] = (Context::getCurrent()->getRequest()->isHttps() ? 'https' : 'http')
|
||||
. '://'
|
||||
. Context::getCurrent()->getServer()->getHttpHost() . '/bitrix/images/seo/integration/vklogo.svg';
|
||||
|
||||
@@ -47,7 +47,7 @@ class AccountVkads extends Account
|
||||
$result = [
|
||||
'ID' => $data['ID'],
|
||||
'NAME' => $data['FIRST_NAME'] . ' ' . $data['LAST_NAME'],
|
||||
'LINK' => 'https://ads.vk.com/hq/budget/transactions/',
|
||||
'LINK' => 'https://ads.vk.ru/hq/budget/transactions/',
|
||||
];
|
||||
|
||||
$result['PICTURE'] = (Context::getCurrent()->getRequest()->isHttps() ? 'https' : 'http')
|
||||
|
||||
@@ -62,7 +62,7 @@ class AccountVkontakte extends Account
|
||||
return array(
|
||||
'ID' => $data['ID'],
|
||||
'NAME' => $data['FIRST_NAME'] . ' ' . $data['LAST_NAME'],
|
||||
'LINK' => 'https://vk.com/' . $data['SCREEN_NAME'],
|
||||
'LINK' => 'https://vk.ru/' . $data['SCREEN_NAME'],
|
||||
'PICTURE' => (Context::getCurrent()->getRequest()->isHttps() ? 'https' : 'http')
|
||||
. '://'
|
||||
. Context::getCurrent()->getServer()->getHttpHost() . '/bitrix/images/seo/integration/vklogo.svg',
|
||||
|
||||
@@ -12,7 +12,7 @@ class AudienceVkads extends Audience
|
||||
|
||||
const MAX_CONTACTS_PER_PACKET = 1000;
|
||||
const MIN_CONTACTS_FOR_ACTIVATING = 20;
|
||||
const URL_AUDIENCE_LIST = 'https://ads.vk.com/hq/audience/user_lists';
|
||||
const URL_AUDIENCE_LIST = 'https://ads.vk.ru/hq/audience/user_lists';
|
||||
|
||||
protected static $listRowMap = array(
|
||||
'ID' => 'ID',
|
||||
|
||||
@@ -12,7 +12,7 @@ class AudienceVkontakte extends Audience
|
||||
|
||||
const MAX_CONTACTS_PER_PACKET = 1000;
|
||||
const MIN_CONTACTS_FOR_ACTIVATING = 20;
|
||||
const URL_AUDIENCE_LIST = 'https://ads.vk.com/hq/audience/user_lists';
|
||||
const URL_AUDIENCE_LIST = 'https://ads.vk.ru/hq/audience/user_lists';
|
||||
|
||||
const ENUM_CONTACT_TYPE_IDFA_GAID = 'gaid'; // IDFA (Identifier For Advertising) or device ID (Android ID and UDID on iOS)
|
||||
const ENUM_CONTACT_TYPE_INTERNAL_ID = 'vk';
|
||||
|
||||
@@ -11,7 +11,7 @@ class RequestVkontakte extends ProxyRequest
|
||||
|
||||
protected function directQuery(array $params = array())
|
||||
{
|
||||
$url = 'https://api.vk.com/method/';
|
||||
$url = 'https://api.vk.ru/method/';
|
||||
$url .= $params['endpoint'];
|
||||
|
||||
$clientParameters = is_array($params['fields']) ? $params['fields'] : array();
|
||||
|
||||
Reference in New Issue
Block a user