---
sidebar_position: 4
description: Get campaign settings and other functions to work with Yandex Market in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Yandex Market]
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Get campaign settings
 Gets market (campaign) settings by ID



`Function GetCampaignSettings(Val Token, Val CampaignID) Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | Token | --Key) | String | &#x2714; | token |
  | CampaignID | --campaign | String, Number | &#x2714; | Market ID (campaignsId) |

  
  Returns:  Map Of KeyAndValue - serialized JSON response from Yandex Market

:::tip
Method at API documentation: [Market settings](https://yandex.ru/dev/market/partner-api/doc/ru/reference/campaigns/getCampaignSettings)
:::
<br/>


```bsl title="1C:Enterprise/OneScript code example"
    Token      = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
    CampaignID = "129112733";

    Result = OPI_YandexMarket.GetCampaignSettings(Token, CampaignID);
```
 



```json title="Result"
{
 "status": "ERROR",
 "errors": [
  {
   "code": "CAMPAIGN_TYPE_NOT_SUPPORTED",
   "message": "Campaign type is not allowed"
  }
 ]
}
```
