vkGetAdBudget: Budget of Advertising Cabinet 'Vkontakte'.

Description Usage Arguments Author(s) References Examples

View source: R/vkGetAdBudget.R

Description

Returns the current balance of the advertising account Vkontakte.

Usage

1
2
3
4
5
6
7
vkGetAdBudget(
    account_id   = getOption("rvkstat.account_id"), 
    username     = getOption("rvkstat.username"),
    api_version  = getOption("rvkstat.api_version"),
    token_path   = vkTokenPath(),
    access_token = getOption("rvkstat.access_token")
)

Arguments

account_id

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

username

Your vkontakte login.

api_version

Vkontakte API version.

token_path

Path to dir with credentials

access_token

API access tokens obtained using vkAuth or vkGetToken functions

Author(s)

Alexey Seleznev

References

Documentation for API method ads.getBudget: https://vk.com/dev/ads.getBudget

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

## End(Not run)

rvkstat documentation built on Oct. 18, 2021, 5:07 p.m.