for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Dmitry Gladyshev <[email protected]>
* @date 23/08/2016 15:16
*/
namespace Yandex\Direct\Service;
use Yandex\Direct\Exception\Exception;
use Yandex\Direct\Service;
use function Yandex\Direct\get_param_names;
* Class AdExtensions
* @package Yandex\Direct\Service
final class AdExtensions extends Service
{
* Создает расширения.
*
* @param $AdExtensions
* @return array
* @throws Exception
* @see https://tech.yandex.ru/direct/doc/ref-v5/adextensions/add-docpage/
public function add($AdExtensions)
return $this->request([
'method' => 'add',
'params' => [
'AdExtensions' => $AdExtensions
]
]);
}
* Удаляет расширения.
* @param $SelectionCriteria
* @see https://tech.yandex.ru/direct/doc/ref-v5/adextensions/delete-docpage/
public function delete($SelectionCriteria)
'method' => 'delete',
'SelectionCriteria' => $SelectionCriteria
* Возвращает расширения, отвечающие заданным критериям.
* @param $FieldNames
* @param $CalloutFieldNames
* @param $Page
* @throws \ReflectionException
* @see https://tech.yandex.ru/direct/doc/ref-v5/adextensions/get-docpage/
public function get($SelectionCriteria, $FieldNames, $CalloutFieldNames = null, $Page = null)
$params = compact(get_param_names(__METHOD__));
'method' => 'get',
'params' => $params