> ## 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.

# Получение рекламных объявлений

> Получение списка заявок на рекламу.

Доступные действия:
- `list` - список заявок на рекламу (требует page, limit).




## OpenAPI

````yaml ru/openapi/ru-economy-v2-openapi.yaml GET /moscowroleplay/civops/ads
openapi: 3.1.0
info:
  title: ER:LC Россия API V2 - Moscow RolePlay API Экономики V2
  version: 2.0.0
servers:
  - url: https://api.erlcrussia.xyz/v2
    description: ER:LC Россия API V2
security: []
tags:
  - name: Moscow RolePlay API Экономики V2
    description: Эндпоинты для управления экономикой и CivOps системой.
paths:
  /moscowroleplay/civops/ads:
    get:
      tags:
        - Moscow RolePlay API Экономики V2
      summary: Получение рекламных объявлений
      description: |
        Получение списка заявок на рекламу.

        Доступные действия:
        - `list` - список заявок на рекламу (требует page, limit).
      parameters:
        - name: action
          in: query
          description: Тип действия для получения данных.
          required: true
          schema:
            type: string
            enum:
              - list
        - name: limit
          in: query
          description: Лимит записей (по умолчанию 10).
          required: false
          schema:
            type: integer
            default: 10
        - name: page
          in: query
          description: Номер страницы (по умолчанию 1).
          required: false
          schema:
            type: integer
            default: 1
      responses:
        '200':
          description: Успешный ответ со списком заявок.
          content:
            application/json:
              schema:
                type: object
              examples:
                list:
                  summary: Список заявок на рекламу.
                  value:
                    count: 8
                    ads:
                      - id: 38
                        user_id: '1133665013794607114'
                        username: IvanPetrov
                        business_name: Moscow Motors
                        address: ул. Ленина, 1
                        created_at: 1776893453
                      - id: 37
                        user_id: '1133665013794607114'
                        username: IvanPetrov
                        business_name: Moscow Motors
                        address: ул. Ленина, 1
                        created_at: 1776893361
                      - id: 36
                        user_id: '1133665013794607114'
                        username: pancakeboyman_8
                        business_name: Безопасные Качественные Дороги
                        address: 3101 Orchard Boulevard
                        created_at: 1761929707
                      - id: 35
                        user_id: '1133665013794607114'
                        username: pancakeboyman_8
                        business_name: Безопасные Качественные Дороги
                        address: 3101 Orchard Boulevard
                        created_at: 1761929658
                      - id: 34
                        user_id: '1133665013794607114'
                        username: pancakeboyman_8
                        business_name: Безопасные Качественные Дороги
                        address: 3101 Orchard Boulevard
                        created_at: 1761929405
                      - id: 33
                        user_id: '1133665013794607114'
                        username: pancakeboyman_8
                        business_name: Безопасные Качественные Дороги
                        address: 3101 Orchard Boulevard
                        created_at: 1761929284
                      - id: 32
                        user_id: '1133665013794607114'
                        username: pancakeboyman_8
                        business_name: Безопасные Качественные Дороги
                        address: 3101 Orchard Boulevard
                        created_at: 1761929190
                      - id: 31
                        user_id: '1133665013794607114'
                        username: pancakeboyman_8
                        business_name: Безопасные Качественные Дороги
                        address: 3101 Orchard Boulevard
                        created_at: 1761927415
        '401':
          $ref: '#/components/responses/UnauthorizedMissingOrInvalidToken'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
      security:
        - MRPAPIKey: []
components:
  responses:
    UnauthorizedMissingOrInvalidToken:
      description: Ошибка аутентификации.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UnauthorizedError'
          examples:
            Missing Token:
              summary: Нет токена.
              value:
                code: 5007
                message: Missing Token
            Invalid Token:
              summary: Неверный или деактивированный токен.
              value:
                code: 5008
                message: Invalid Token
            Invalid Master Key:
              summary: Неверный мастер-ключ.
              value:
                code: 5006
                message: Invalid Master Key
    Forbidden:
      description: Доступ запрещён.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ForbiddenError'
          examples:
            Forbidden:
              summary: Нет прав доступа к эндпоинту.
              value:
                code: 5009
                message: Forbidden
            Api Version Forbidden:
              summary: Доступ к этой версии API запрещён.
              value:
                code: 5010
                message: Api Version Forbidden
            Query Param Forbidden:
              summary: Query-параметр запрещён.
              value:
                code: 5011
                message: Query Param Forbidden
    TooManyRequests:
      description: Превышено количество запросов.
      headers:
        X-RateLimit-Limit:
          description: Максимум запросов в минуту.
          schema:
            type: integer
            example: 60
        X-RateLimit-Remaining:
          description: Оставшееся количество запросов.
          schema:
            type: integer
            example: 0
        Retry-After:
          description: Секунд до сброса лимита.
          schema:
            type: integer
            example: 30
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitError'
          examples:
            Rate Limit Exceeded:
              summary: Превышение лимита запросов.
              value:
                code: 6021
                message: Rate Limit Exceeded
                retry_after: 30
    InternalServerError:
      description: Внутренняя ошибка сервера.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/EconomyApiError'
          examples:
            Internal Server Error Occurred:
              summary: Ошибка API экономики.
              value:
                code: 6005
                message: Internal Server Error Occurred.
  schemas:
    UnauthorizedError:
      type: object
      description: Ошибка аутентификации (отсутствует или неверный токен).
      required:
        - code
        - message
      properties:
        code:
          type: integer
          example: 5007
        message:
          type: string
          example: Missing Token
    ForbiddenError:
      type: object
      description: Ошибка доступа (запрещено).
      required:
        - code
        - message
      properties:
        code:
          type: integer
          example: 5009
        message:
          type: string
          example: Forbidden
    RateLimitError:
      type: object
      description: Ошибка превышения лимита запросов.
      required:
        - code
        - message
      properties:
        code:
          type: integer
          example: 6021
        message:
          type: string
          example: Rate Limit Exceeded
        retry_after:
          type: integer
          description: Время до сброса лимита в секундах.
          example: 30
    EconomyApiError:
      type: object
      description: Ошибка API Экономики.
      required:
        - code
        - message
      properties:
        code:
          type: integer
          example: 6010
        message:
          type: string
          example: Business not found
  securitySchemes:
    MRPAPIKey:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: |
        API ключ для доступа к эндпоинтам Гражданских Операций.

        Передается в заголовке `Authorization: Bearer <ключ>`.

        ОБЯЗАТЕЛЕН ДЛЯ ВСЕХ ЭНДПОИНТОВ ГРАЖДАНСКИХ ОПЕРАЦИЙ (кроме /health).

````