vkGetAdCampaigns: Campaign list

Description Usage Arguments Value Author(s) Examples

View source: R/vkGetAdCampaigns.R

Description

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

Usage

1
2
3
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.

Author(s)

Alexey Seleznev

Examples

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

## End(Not run)

rvkstat documentation built on July 28, 2019, 5:03 p.m.