Learn R Programming

ryandexdirect (version 3.6.2)

yadirGetForecast: Get Forecast

Description

Returns a forecast for cost, click and impression

Usage

yadirGetForecast(Phrases,
                 GeoID         = 0,
                 Currency      = "RUB",
                 AuctionBids   = "No",
                 Login         = getOption("ryandexdirect.user"),
                 Token         = NULL,
                 AgencyAccount = getOption("ryandexdirect.agency_account"),
                 TokenPath     = yadirTokenPath())

Value

Data Frame

Arguments

Phrases

character vector of key phrases for which you want to get a forecast, require

GeoID

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

Currency

The currency in which click prices and total costs in the report should be expressed. Possible values: RUB, CHF, EUR, KZT, TRY, UAH, USD, BYN.

AuctionBids

Whether to display trading results in the report (Yes / No)

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) {
# get forecast
forecast <- yadirGetForecast(c('buy smartphone -xiaomi', 
                               'buy samsung'),
                             Login = "selesnow")
}

Run the code above in your browser using DataLab