rvkstat (version 2.6.3)

vkGetAdAccounts: List of Advertising Account

Description

Returns a list of available advertising spaces.

Usage

vkGetAdAccounts(access_token = NULL, api_version = NULL)

Arguments

access_token

API access tokens obtained using vkAuth or vkGetToken functions

api_version

Vkontakte API version.

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.

Examples

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

my_vk_acc <- vkGetAdAccounts(my_tok$access_token)
# }

Run the code above in your browser using DataCamp Workspace