rvkstat (version 2.6.3)

vkGetAdClients: Client list.

Description

Returns a list of advertising agency clients.

Usage

vkGetAdClients(account_id = NULL, api_version = NULL, 
               access_token = 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.

Value

Date frame with community statistics with the following values:

id

client id.

name

customer name.

day_limit

client's daily limit in rubles.

all_limit

total customer limit in rubles.

Examples

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

## We get a list of clients from the agent account
vk_clients <- vkGetAdClients(account_id = 1, 
                             access_token = my_tok$access_token)

# }

Run the code above in your browser using DataCamp Workspace