> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.erlcrussia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Нова рекламна кампанія

> Створює заявку на кампанію. За модерацію списується 10 коїнів.



## OpenAPI

````yaml uk/openapi/uk-api-v3-openapi.yaml POST /ads/campaigns
openapi: 3.1.0
info:
  title: ER:LC Росія API V3
  description: >-
    API ER:LC Russia: сервери, користувачі, CDN, редиректи, підписки та ключі
    доступу.
  version: 3.0.0
servers:
  - url: https://api.erlcrussia.com/v3
    description: Основний сервер (com)
  - url: https://api.erlcrussia.xyz/v3
    description: Резервний сервер (xyz)
security: []
tags:
  - name: ER:LC Сервер
    description: Отримання статусу, онлайн, списків гравців та персоналу сервера ER:LC.
  - name: ER:LC Команди
    description: >-
      Відправлення та постановка в чергу команд внутрішньоігрового сервера (:h,
      :m, :kick, :ban та ін.).
  - name: Економіка
    description: >-
      Взаємодія з економічною системою (користувачі, бізнес, мафії, магазин,
      реклама).
  - name: API Статистики
    description: >-
      Високопродуктивне отримання статистики дискорд-серверів та ігрових
      серверів (онлайн, учасники, роботи).
  - name: API Верифікації
    description: Пошук та зіставлення Discord ID та Roblox ID акаунтів.
  - name: CDN Ассети
    description: >-
      Завантаження, керування, статистика та очищення кешу файлів об'єктного
      сховища MinIO/Edge CDN.
  - name: CDN Папки
    description: Ієрархічна структура та сортування папок медіатеки CDN.
  - name: API Покарань
    description: Управління балансом та історією транзакцій балів гравців.
  - name: API Передплат
    description: >-
      Каталог планів, замовлення FunPay, нарахування бенефітів та активація
      підписок.
  - name: API Авторизації
    description: >-
      Вхід через Discord та Roblox OAuth2, керування сесіями користувача та
      зв'язування акаунтів.
  - name: API Управління - WebSocket Ключі
    description: Керування ключами доступу до WebSocket шлюзу та підписками на канали.
  - name: API Управління - Вебхукі
    description: Реєстрація, валідація доступності та моніторинг власних вебхуків.
  - name: API Управління - Панель
    description: >-
      Управління користувачами, підписками, тарифами, ручний баланс та системна
      статистика.
  - name: API Стану
    description: Моніторинг працездатності сервісу, підключень до PostgreSQL та Redis.
  - name: AI Audio
  - name: AI Studio
  - name: API Адмінки - Сервера
  - name: API Ключів
  - name: API Управління - Сервери
  - name: API Управління - Токени
  - name: CDN
  - name: CDN V3
  - name: CDN Домени
  - name: Адміністрація E-Coins
  - name: Адміністрування AI
  - name: Користувальницькі Вебхуки
  - name: Особисті файли та бібліотека
  - name: Редиректи організацій V3
  - name: Рекламные кампании V3
paths:
  /ads/campaigns:
    post:
      tags:
        - Рекламные кампании V3
      summary: Нова рекламна кампанія
      description: Створює заявку на кампанію. За модерацію списується 10 коїнів.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                description:
                  type: string
                bannerUrl:
                  type: string
                targetUrl:
                  type: string
                buttonText:
                  type: string
                placement:
                  type: string
                  enum:
                    - all
                    - bot
                    - site
                  default: all
            example:
              title: Сервер Moscow RP
              description: Лучший RP-сервер
              bannerUrl: https://images.erlcrussia.com/ads/banners/0123456789abcdef.png
              targetUrl: https://example.com
              buttonText: Перейти
              placement: all
      responses:
        '201':
          description: Кампания успешно создана и ожидает модерации.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  userId:
                    type: string
                  title:
                    type: string
                  description:
                    type: string
                  bannerUrl:
                    type: string
                  verticalBannerUrl:
                    type: string
                  discordBannerUrl:
                    type: string
                  targetUrl:
                    type: string
                  buttonText:
                    type: string
                  placement:
                    type: string
                  status:
                    type: string
                  moderationFeePaid:
                    type: boolean
                  purchasedImpressions:
                    type: integer
                  remainingImpressions:
                    type: integer
                  deliveredImpressions:
                    type: integer
                  clicksCount:
                    type: integer
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
              example:
                id: ad_7Kq2Zp
                userId: '123456789012345678'
                title: Сервер Moscow RP
                description: Лучший RP-сервер
                bannerUrl: https://images.erlcrussia.com/ads/banners/0123456789abcdef.png
                verticalBannerUrl: ''
                discordBannerUrl: ''
                targetUrl: https://example.com
                buttonText: Перейти
                placement: all
                status: pending_moderation
                moderationFeePaid: true
                purchasedImpressions: 0
                remainingImpressions: 0
                deliveredImpressions: 0
                clicksCount: 0
                createdAt: '2026-10-21T12:00:00Z'
                updatedAt: '2026-10-21T12:00:00Z'
        '400':
          description: Ошибка валидации параметров.
        '402':
          description: Недостаточно eCoins для оплаты модерации (требуется 10 eCoins).
      security:
        - CookieAuth: []
        - BearerAuth: []
components:
  securitySchemes:
    CookieAuth:
      type: apiKey
      in: cookie
      name: erlc_auth
      description: Сесійна HTTP-Only кука авторизації на порталі.
    BearerAuth:
      type: http
      scheme: bearer
      description: API-ключ у заголовку Authorization у форматі `Bearer <token>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.