rvkstat (version 2.6.3)

vkGetAdBudget: Budget of Advertising Cabinet 'Vkontakte'.

Description

Returns the current balance of the advertising account Vkontakte.

Usage

vkGetAdBudget(account_id = NULL, access_token = NULL, 
              api_version = NULL)

Arguments

account_id

Advertising account ID, a list of all available advertising accounts can be obtained using the function vkGetAdAccounts.

access_token

API access token, obtained using the functions vkAuth or vkGetToken

api_version

Vkontakte API version.

Examples

Run this code
# NOT RUN {
## auth
my_tok <- vkAuth(app_id = 1, 
                 app_secret = "H2Pk8htyFD8024mZaPHm")

# Receive the rest of means from an advertising office
vk_budget <- vkGetAdBudget(account_id = 1, 
                           access_token = my_tok$access_token)
# }

Run the code above in your browser using DataLab