Learn R Programming

rvkstat (version 3.2.0)

vkGetAdCategories: List of Possible Subjects of Advertisements

Description

Returns a table with all possible topics and their subsections of the topics of advertisements from 'Vkontakte'

Usage

vkGetAdCategories(
  version      = c("v1", "v2"),
  username     = getOption("rvkstat.username"),
  api_version  = getOption("rvkstat.api_version"),
  token_path   = vkTokenPath(),
  access_token = getOption("rvkstat.access_token")
)

Arguments

version

Dictionary version, v1 include deprecated themes, v2 exclude deprecated themes.

username

Your vkontakte login.

api_version

Vkontakte API version.

token_path

Path to dir with credentials

access_token

API access tokens obtained using vkAuth or vkGetToken functions

Value

Date frame with the following values:

id

subject identifier.

name

subject name.

subcategories_id

identifier of the subsection.

ubcategories_name

subsection name.

References

Documentation for API method ads.getCategories: https://vk.com/dev/ads.getCategories

Examples

Run this code
# NOT RUN {
# list of subjects
vk_ad_categories <- vkGetAdCategories()
# }

Run the code above in your browser using DataLab