Returns a list of available advertising campaigns from the advertising office Vkontakte.
vkGetAdCampaigns(
account_id = vkCurrentAdAccount(),
client_id = vkCurrentClientAccount(),
include_deleted = TRUE,
campaign_ids = "null",
username = getOption("rvkstat.username"),
api_version = getOption("rvkstat.api_version"),
token_path = vkTokenPath(),
access_token = getOption("rvkstat.access_token")
)
The ID of the advertising account, a list of all available advertising offices can be obtained using the function vkGetAdAccounts.
Client identifier from which advertisements are requested. Available and required for advertising agencies.
Boolean TRUE or FALSE, flag, specifying the need to display archived ads.
Campaing ids.
Your vkontakte login.
Vkontakte API version.
Path to dir with credentials
API access tokens obtained using vkAuth or vkGetToken functions
Date frame with a list of advertising offices and their parameters with the following values:
campaign ID.
campaign type.
campaign name.
campaign status.
daily campaign limit in rubles.
total campaign limit in rubles.
campaign start time.
campaign stop time.
campaign creation time.
the last time the campaign was modified.
Documentation for API method ads.getCampaigns: https://vk.com/dev/ads.getCampaigns
# NOT RUN {
## get campaing list
my_vk_camp <- vkGetAdCampaigns(account_id = 1)
# }
Run the code above in your browser using DataLab