yadirGetForecast: Get Forecast

View source: R/yadirGetForecast.R

yadirGetForecastR Documentation

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())
                        

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

Value

Data Frame

Author(s)

Alexey Seleznev

Examples

## Not run: 
# get forecast
forecast <- yadirGetForecast(c('buy smartphone -xiaomi', 
                               'buy samsung'),
                             Login = "selesnow")

## End(Not run)

selesnow/ryandexdirect documentation built on March 18, 2023, 12:57 a.m.