1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00
Files
OpenIntegrations/docs/en/md/Yandex_Market/Campaigns-and-business/Get-market.mdx
T
Vitaly the Alpaca (bot) bbd276e000 Main build (Jenkins)
2024-11-05 22:19:58 +03:00

44 lines
903 B
Plaintext

---
sidebar_position: 2
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get market
Gets information about a market (campaign) by ID
`Function GetMarket(Val Token, Val CampaignID) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --Key) | String | ✔ | token |
| CampaignID | --campaign | String, Number | ✔ | Market ID (campaignsId) |
Returns: Map Of KeyAndValue - serialized JSON response from Yandex Market
<br/>
:::tip
Method at API documentation: [Market information](https://yandex.ru/dev/market/partner-api/doc/ru/reference/campaigns/getCampaign)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";
CampaignID = "129112733";
Result = OPI_YandexMarket.GetMarket(Token, CampaignID);
```
```json title="Result"
```