rvkstat (version 2.6.3)

vkGetAdCampaigns: Campaign list

Description

Returns a list of available advertising campaigns from the advertising office Vkontakte.

Usage

vkGetAdCampaigns(account_id = NULL, client_id = NULL, include_deleted =
                 TRUE, campaign_ids = "null", api_version = NULL,
                 access_token = NULL)

Arguments

account_id

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

client_id

Client identifier from which advertisements are requested. Available and required for advertising agencies.

include_deleted

Boolean TRUE or FALSE, flag, specifying the need to display archived ads.

campaign_ids

Campaing ids.

access_token

API access token, obtained using the functions vkAuth or vkGetToken.

api_version

Vkontakte API version for send request.

Value

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

id

campaign ID.

type

campaign type.

name

campaign name.

status

campaign status.

day_limit

daily campaign limit in rubles.

all_limit

total campaign limit in rubles.

start_time

campaign start time.

stop_time

campaign stop time.

create_time

campaign creation time.

update_time

the last time the campaign was modified.

Examples

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

## get campaing list
my_vk_camp <- vkGetAdCampaigns(account_id = 1, 
                               access_token = my_tok$access_token)
# }

Run the code above in your browser using DataLab