Learn R Programming

rvkstat (version 3.2.0)

vkGetAdAccounts: List of Advertising Account

Description

Returns a list of available advertising spaces.

Usage

vkGetAdAccounts(
  username     = getOption("rvkstat.username"),
  api_version  = getOption("rvkstat.api_version"),
  token_path   = vkTokenPath(),
  access_token = getOption("rvkstat.access_token")
)

Arguments

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

Value

Date frame with a list of advertising offices and their parameters with the following values:

account_id

ID of the advertising account.

account_type

Type of advertising office.

account_status

The status of the advertising office. (1 - active, 0 - inactive)

access_role

User privileges in the advertising office.

References

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

Examples

Run this code
# NOT RUN {
my_vk_acc <- vkGetAdAccounts()
# }

Run the code above in your browser using DataLab