3namespace Bitrix\Seo\Retargeting\Services;
6use Bitrix\Main\Localization\Loc;
7use \Bitrix\Main\Web\Json;
8use \Bitrix\Seo\Retargeting\Response;
30 if (is_array(
$data[
'error']))
32 if (
$data[
'error'][
'status'] &&
$data[
'error'][
'status'] ==
'UNAUTHENTICATED')
34 $this->addError(
new Error(
"Unauthorized"));
41 if (mb_strpos(
$errorMessage,
'AuthenticationError.CUSTOMER_NOT_FOUND') !==
false
42 || mb_strpos(
$errorMessage,
'AuthenticationError.NOT_ADS_USER') !==
false)
47 if (mb_strpos(
$errorMessage,
'UserListError.ADVERTISER_NOT_WHITELISTED_FOR_USING_UPLOADED_DATA') !==
false)
49 $errorMessage = Loc::getMessage(
'SEO_RETARGETING_SERVICE_RESPONSE_GOOGLE_CANT_ADD_AUDIENCE', [
'#LINK#' =>
'https://support.google.com/adspolicy/answer/6299717']);
51 if (mb_strpos(
$errorMessage,
'UserListError.NAME_ALREADY_USED') !==
false)
53 $errorMessage = Loc::getMessage(
'SEO_RETARGETING_SERVICE_RESPONSE_GOOGLE_NAME_ALREADY_USED');
58 $this->setData(
$data);
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
while($arParentIBlockProperty=$dbParentIBlockProperty->Fetch()) $errorMessage