Learn R Programming

ryandexdirect (version 3.6.2)

yadirGetWordStatReport: Get WordStat Report

Description

Returns a search query statistics report from 'Wordstat'.

Usage

yadirGetWordStatReport( 
                 Phrases,
                 GeoID         = 0,
                 Login         = getOption("ryandexdirect.user"),
                 Token         = NULL,
                 AgencyAccount = getOption("ryandexdirect.agency_account"),
                 TokenPath     = yadirTokenPath())

Value

Data Frame

Arguments

Phrases

character vector with yandex direct campaign ID, require

GeoID

character vectora, an array of key phrases for which you want to obtain statistics on search queries

Login

integer, An array of region identifiers. Allows you to get statistics on search queries made only in the specified regions, see yadirGetDictionary

Token

character, your Yandex Direct API Token, require

AgencyAccount

Your agency account login, if you get statistic from client account

TokenPath

Path to directory where you save credential data

Author

Alexey Seleznev

Examples

Run this code
if (FALSE) {
### Please choose another TokenPath to save the Login permanently.
# get wordstat report
wsrep <- yadirGetWordStatReport(
            Phrases = 'samsung smartphone',
            Login = "abekker.ru.2017")

wsrep[['SearchedAlso']]
wsrep[['SearchedWith']]
}

Run the code above in your browser using DataLab