Skip to main content

Get a list of advertising categories

Gets a list of advertising category IDs for creating an advertising post

Function GetAdvertisingCategoryList(Val Parameters = "") Export

ParameterCLI optionTypeDescription
Parameters--authStructure Of StringAuthorization JSON or path to .json

Returns: Map Of KeyAndValue - Serialized JSON response from VK


Code example
  
Response = OPI_VK.GetAdvertisingCategoryList(Parameters);
Response = OPI_Tools.JSONString(Response);
CLI command example
    
oint vk GetAdvertisingCategoryList --auth %auth%

Result
{
"response": {
"v2": [
{
"subcategories": [
{
"subcategories": [
{
"name": "Mobile phones and tablets",
"id": 202
},
{
"name": "Audio and video",
"id": 203
},
{
"name": "Portable gadgets",
"id": 204
},
{
"name": "Consoles",
"id": 205
},
...
]
}
]
}
]
}
}