Completed
Push — master ( 85dbdb...cd10db )
by Dmitry
03:16
created

KeywordsResearch::hasSearchVolume()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 2
1
<?php
2
/**
3
 * @author Dmitry Gladyshev <[email protected]>
4
 * @date 03.05.17 7:46
5
 */
6
7
namespace Yandex\Direct\Service;
8
9
use Yandex\Direct\Service;
10
11
class KeywordsResearch extends Service
12
{
13
    /**
14
     * Для заданных ключевых фраз и регионов формирует предварительный прогноз наличия показов по этим фразам в
15
     * разбивке по типам устройств. Используется при подборе ключевых фраз.
16
     *
17
     * @param $SelectionCriteria
18
     * @param $FieldNames
19
     * @return array
20
     * @see https://tech.yandex.ru/direct/doc/ref-v5/keywordsresearch/hasSearchVolume-docpage/
21
     */
22
    public function hasSearchVolume($SelectionCriteria, $FieldNames)
23
    {
24
        return $this->request([
25
            'method' => 'hasSearchVolume',
26
            'params' => [
27
                'SelectionCriteria' => $SelectionCriteria,
28
                'FieldNames' => $FieldNames
29
            ]
30
        ]);
31
    }
32
}