yadirGetBalance: Get 'Yandex Direct' account balance

Description Usage Arguments Value Author(s) Examples

Description

Returns settings for shared accounts.

Usage

1
2
3
4
yadirGetBalance(Logins        = NULL, 
                Token         = NULL,     
                AgencyAccount = NULL,
                TokenPath     = getwd())

Arguments

Logins

character vector, your logins at Yandex Direct, require

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
### Please choose another TokenPath to save the Login permanently.
aut <- yadirAuth(Login = "login", NewUser = TRUE, 
        TokenPath = tempdir())
#For get accounts from client account use
my_balance <- yadirGetBalance(Logins = "login",
                              Token = aut)

#For get accounts from agancy account use
library(ryandexdirect)
aut <- yadirAuth(Login = "agency_login", NewUser = TRUE, 
                 TokenPath = tempdir())
client <- yadirGetClientList(Token = aut)
client_balance <- yadirGetBalance(Logins = client$Login,
                                  AgencyAccount = "agency_login",
                                  Token = aut)

## End(Not run)

serditov/ryandexdirect documentation built on May 15, 2019, 12:09 a.m.