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

# Deactivate Ad Unit

> Sets `is_active=false`. If already inactive, the request is silently ignored.

**Access Control:**
Admin and Operator accounts have full access (create/read/update/delete) to ad unit resources.
Advertiser accounts have no access to this endpoint — see `GET /ad-units/targets` for the
lightweight, allocation-target-selection view available to advertisers.



## OpenAPI

````yaml /openapi/adm.openapi.en-dev.json post /api/manager/ad-units/{ad_unit_id}/deactivate
openapi: 3.1.0
info:
  description: >
    ## Introduction

    The Data Management APIs comprehensively oversees the **diverse data** used
    by advertising and recommendation systems, ensuring that the Decision API
    runs accurately and efficiently.


    From registering, updating, and deleting campaigns and placements to **log
    and statistics analysis**, it provides the insights necessary for effective
    system operation.


    The resulting data and metrics are used by the Decision API to **optimize ad
    and content decisions**, ultimately boosting the overall performance of the
    advertising and recommendation system.
  title: Data Management APIs
  version: dev
servers: []
security: []
tags:
  - description: >-
      Authentication endpoints. All roles (admin, operator, advertiser) use
      these to log in, refresh tokens, and manage their own credentials.
    name: Auth
  - description: >-
      Advertiser account management. Operators and admins onboard advertisers,
      manage their budgets, and deactivate accounts. Advertisers can only read
      their own profile and balance — they cannot create, delete, or modify
      another advertiser's account.
    name: Advertisers
  - description: >-
      Internal user (operator / admin) account management. Admin only. Covers
      creating operator accounts, changing roles, toggling activation status,
      and hard-deleting accounts. Operators have no access to this resource.
    name: Users
  - description: >-
      The AdUnit Management API provides comprehensive functionalities for
      managing ad units and related resources. AdUnits are organized in a
      hierarchical path structure derived from their code and parent path. Only
      admin and operator roles have access — advertisers cannot access raw
      inventory. References:
      [Placement](https://docs.aiderx.io/guides/about-a2/en/placement)
    name: AdUnit
  - description: >-
      Ad catalog management. CRUD for ad catalogs plus public shared-view access
      via a share link.
    name: Ad Catalogs
  - description: >-
      Ad source (demand partner) management. CRUD for external ad sources that
      supply demand to ad units.
    name: AdSource
  - description: >-
      Allocation management. An allocation binds a line item to a serving target
      such as an ad unit. Covers CRUD, status counts, and single-allocation
      lookup.
    name: Allocations
  - description: >-
      Associated items pool (admin). Bulk upsert/delete and lookup of
      associated-items pools used by the recommendation pipeline.
    name: AssociatedItemsPool
  - description: >-
      Custom targeting segment management. CRUD and bulk operations for custom
      targeting segments.
    name: Custom Targeting Segment
  - description: Audit log access. Read the system audit log of administrative actions.
    name: Audit Logs
  - description: >-
      Creative block list. List, block, and unblock creatives to exclude them
      from serving.
    name: Blocked Creative
  - description: Catalog item management. List and update catalog (product/data) items.
    name: Catalogs
  - description: >-
      Creative asset management. Operators and admins manage creatives;
      advertisers see only their own. Deletion is blocked while any line-item
      association (LICA) still exists.
    name: Creatives
  - description: >-
      Dashboard aggregates. Summary data, inventory, and line-item metric
      rollups for the console dashboard.
    name: Dashboard
  - description: Experiment management. CRUD for A/B and optimization experiments.
    name: Experiment
  - description: >-
      External creative inspection. Read-only access to creatives ingested from
      external demand sources.
    name: External Creative
  - description: >-
      Third-party integration management. Manage integration sources (external
      data/serving connectors), probe connectivity, and read public
      (sensitive-config-redacted) configs.
    name: Integration
  - description: >-
      Line Item–Creative Associations (LICA). Associates creatives with line
      items, including batch create and delete (max 100, partial failure
      allowed) and dashboard counts.
    name: LICAs
  - description: License information. Read available license features and usage metrics.
    name: License
  - description: >-
      Line item management within an order. Covers create, update, delete, batch
      operations (max 100, partial failure allowed), and status transitions. A
      line item defines budget, goal, schedule, and targeting under its parent
      order.
    name: LineItems
  - description: Media library. List, upload, and delete media files used by creatives.
    name: Media Library
  - description: >-
      Metric query endpoints. Retrieve aggregated metrics for ad units,
      creatives, line items, and related entities.
    name: Metric
  - description: >-
      Advertiser order management. Operators and admins create and manage orders
      that group line items under a single budget; advertisers can read their
      own. Includes batch operations (max 100) and draft-only deletion rules.
    name: Orders
  - description: >-
      Placement management. A placement maps ad units to a serving surface.
      Endpoints cover CRUD and replacing the ad units bound to a placement.
    name: Placements
  - description: >-
      System settings. Read and update system configuration, including site
      logo, public URL, TLS, and access-token regeneration.
    name: Settings
  - description: System resources. Public static resources such as the site logo.
    name: System
  - description: >-
      Operational/developer control endpoints. Low-level ext patches and health
      checks intended for internal operation, not general API consumers.
    name: developer
  - description: >-
      Operational allocation control. Update allocation ext or force-update
      status (admin only).
    name: developer/control/allocations
  - description: >-
      Ad-serving monitoring (operational). Read ad-serving status, ad-unit
      monitoring history, and alerts.
    name: developer/monitoring
  - description: Internal health and probe endpoints.
    name: internal
  - description: >-
      Manager-level utility endpoints (e.g. service health) not tied to a
      specific resource.
    name: manager
  - description: Manage mappings between ad units, native formats, and native styles.
    name: Ad Unit Native Style
  - description: Manage custom targeting keys, including lifecycle and bulk operations.
    name: Custom Targeting Key
  - description: >-
      Manage values belonging to custom targeting keys, including lifecycle and
      bulk operations.
    name: Custom Targeting Value
  - description: Manage native formats and the fields that define each format.
    name: Native Format
  - description: List templates available for native styles.
    name: Native Style Template
  - description: Manage native rendering styles.
    name: Native Style
paths:
  /api/manager/ad-units/{ad_unit_id}/deactivate:
    post:
      tags:
        - AdUnit
      summary: Deactivate Ad Unit
      description: >-
        Sets `is_active=false`. If already inactive, the request is silently
        ignored.


        **Access Control:**

        Admin and Operator accounts have full access (create/read/update/delete)
        to ad unit resources.

        Advertiser accounts have no access to this endpoint — see `GET
        /ad-units/targets` for the

        lightweight, allocation-target-selection view available to advertisers.
      operationId: >-
        handle_deactivate_ad_unit_api_manager_ad_units__ad_unit_id__deactivate_post
      parameters:
        - in: path
          name: ad_unit_id
          required: true
          schema:
            format: uuid
            title: Ad Unit Id
            type: string
        - in: query
          name: force
          required: false
          schema:
            default: false
            title: Force
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdUnitResponse'
          description: Successful Response
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Resource not found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: PUBLISHED Allocation exists — retry with force=true
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    AdUnitResponse:
      description: Response schema for AdUnit mutation operations (create/patch).
      properties:
        ad_unit_sizes:
          anyOf:
            - items:
                $ref: '#/components/schemas/AdUnitSize'
              type: array
            - type: 'null'
          description: |-
            Targeting metadata sizes
            Distinct from display/video.w/h which govern serving and rendering.
          title: Ad Unit Sizes
        code:
          description: Ad unit code identifier.
          title: Code
          type: string
        created_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Created At
        created_by:
          description: The ID of the user who created the ad unit.
          format: uuid
          title: Created By
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
          description: Description of the ad unit.
          title: Description
        display:
          $ref: >-
            #/components/schemas/a2_adm__domains__inventory__schemas__DisplayPlacement
          description: Display placement configuration.
        ext:
          $ref: '#/components/schemas/AdUnitExt'
          description: Ad unit extension fields.
        gpid:
          anyOf:
            - type: string
            - type: 'null'
          description: Canonical Placement ID for OpenRTB imp.ext.gpid.
          title: Gpid
        id:
          description: ID of the ad unit (uuid7)
          format: uuid
          title: Id
          type: string
        instl:
          $ref: '#/components/schemas/Instl'
          default: 0
          description: >-
            Indicates if this is an interstitial placement, where 0 = no, 1 =
            yes.

            Applies across display, video, and native.
        is_active:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Whether the ad unit is active.
          title: Is Active
        name:
          description: Name of the ad unit.
          title: Name
          type: string
        native:
          $ref: '#/components/schemas/NativePlacement'
          default:
            assets: []
          description: >-
            Based on OpenRTB Native Ads 1.2 Native Markup Request Object, not
            the AdCOM standard native format
        'no':
          anyOf:
            - type: integer
            - type: 'null'
          title: 'No'
        path:
          description: Hierarchical path of the ad unit (e.g., "parent_id/child_id").
          title: Path
          type: string
        recommendation:
          $ref: '#/components/schemas/RecommendationPlacement-Output'
          default:
            ext: {}
            topn: 10
        updated_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Updated At
        video:
          $ref: '#/components/schemas/VideoPlacement'
          description: Video placement configuration.
      required:
        - id
        - code
        - created_by
        - name
        - path
      title: AdUnitResponse
      type: object
    HTTPExceptionResponse:
      properties:
        detail:
          description: Detailed explanation for the exception
          title: Detail
          type: string
      required:
        - detail
      title: HTTPExceptionResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    AdUnitSize:
      properties:
        h:
          description: Height in pixels.
          minimum: 0
          title: H
          type: integer
        w:
          description: Width in pixels.
          minimum: 0
          title: W
          type: integer
      required:
        - h
        - w
      title: AdUnitSize
      type: object
    a2_adm__domains__inventory__schemas__DisplayPlacement:
      properties:
        ampren:
          anyOf:
            - maximum: 255
              minimum: 0
              type: integer
            - type: 'null'
          title: Ampren
        api:
          anyOf:
            - items:
                maximum: 65535
                minimum: 0
                type: integer
              type: array
            - type: 'null'
          title: Api
        clktype:
          $ref: '#/components/schemas/Click'
          default: 1
          description: >-
            Click type. 0: none, 1: unknown, 2: embedded browser, 3: native
            browser.
        context:
          anyOf:
            - $ref: '#/components/schemas/DisplayContext'
            - type: 'null'
        ctype:
          anyOf:
            - items:
                maximum: 255
                minimum: 0
                type: integer
              type: array
            - type: 'null'
          title: Ctype
        displayfmt:
          $ref: '#/components/schemas/DisplayFormat'
          description: Display format configuration.
        event:
          anyOf:
            - items:
                $ref: '#/components/schemas/EventSpec'
              type: array
            - type: 'null'
          title: Event
        ext:
          anyOf:
            - {}
            - type: 'null'
          title: Ext
        h:
          anyOf:
            - type: number
            - type: 'null'
          default: 250
          description: Placement height in units specified by `unit`.
          title: H
        ifrbust:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Ifrbust
        mime:
          description: List of supported MIME types.
          items:
            type: string
          title: Mime
          type: array
        pos:
          anyOf:
            - $ref: '#/components/schemas/PlacementPosition'
            - type: 'null'
        priv:
          default: 0
          description: Whether to show a privacy link.
          title: Priv
          type: integer
        ptype:
          anyOf:
            - $ref: '#/components/schemas/DisplayPlacementTypes'
            - type: 'null'
        topframe:
          anyOf:
            - maximum: 255
              minimum: 0
              type: integer
            - type: 'null'
          title: Topframe
        unit:
          $ref: '#/components/schemas/Size'
          default: 2
          description: 'Size unit. 1: DIPS, 2: inches, 3: centimeters.'
        w:
          anyOf:
            - type: number
            - type: 'null'
          default: 300
          description: Placement width in units specified by `unit`.
          title: W
      title: DisplayPlacement
      type: object
    AdUnitExt:
      properties:
        algorithm:
          default: axa0
          description: Algorithm used for the ad unit.
          title: Algorithm
          type: string
        approval_method:
          $ref: '#/components/schemas/AdUnitApproval'
          default: admin
          description: Approval method for the ad unit.
        bcat:
          default: []
          description: >-
            Blocked advertiser categories using the IAB taxonomy, and extended
            with additional sensitive categories.
          items:
            type: string
          title: Bcat
          type: array
        default_cpa:
          default: 0
          description: >-
            Default CPA, for CPA line item that has no specific target CPA.
            Defaults to 0.0.
          title: Default Cpa
          type: number
        default_cpc:
          default: 0
          description: >-
            Default CPC, for CPC line item that has no specific target CPC.
            Defaults to 0.0.
          title: Default Cpc
          type: number
        display:
          default:
            enabled: 0
          description: Display-specific extension data in JSON format.
          title: Display
        external_raw_data:
          anyOf:
            - {}
            - type: 'null'
          description: External raw data for the ad unit, represented as a map.
          title: External Raw Data
        implicit_app_inference:
          anyOf:
            - $ref: '#/components/schemas/ImplicitAppInference'
            - type: 'null'
          description: >-
            Configuration for fallback/implicit mobile app inference via UA
            keyword mapping.
        metric_mode:
          $ref: '#/components/schemas/AdUnitMetricMode'
          default: all
          description: >-
            Metric visibility scope. all: all, internal_only: internal only,
            external_only: external only.
        native:
          $ref: '#/components/schemas/AdUnitExtNative'
          default:
            enabled: 0
            render_mode: html
          description: Native-specific extension data.
        passback:
          anyOf:
            - {}
            - type: 'null'
          description: Passback ad tags for the ad unit, represented as a map.
          title: Passback
        payout:
          $ref: '#/components/schemas/AdUnitPayout'
          default: rates
          description: Payout type for the ad unit.
        public_url:
          anyOf:
            - type: string
            - type: 'null'
          description: |-
            Public URL override for this ad unit's event tracker URLs.
            If set, overrides EdgeConfig.public_url for this ad unit.
          title: Public Url
        publisher:
          anyOf:
            - {}
            - type: 'null'
          description: publisher information for the ad unit.
          title: Publisher
        recommendation:
          default:
            enabled: 0
          description: Recommendation-specific extension data in JSON format.
          title: Recommendation
        responsive:
          $ref: '#/components/schemas/AdUnitResponsiveness'
          default: fixed
          description: Indicates whether the ad unit is responsive.
        target_ecpm:
          default: 0
          description: >-
            Target eCPM (effective cost per mille) for the ad unit. Defaults to
            0.0.
          title: Target Ecpm
          type: number
        target_service:
          anyOf:
            - type: string
            - type: 'null'
          description: Target service for the ad unit.
          title: Target Service
        video:
          default:
            enabled: 0
          description: Video-specific extension data in JSON format.
          title: Video
      title: AdUnitExt
      type: object
    Instl:
      enum:
        - 0
        - 1
      title: Instl
      type: integer
    NativePlacement:
      properties:
        assets:
          default: []
          description: Native asset request definitions for this placement.
          items:
            $ref: '#/components/schemas/AssetRequest'
          title: Assets
          type: array
        context:
          anyOf:
            - maximum: 65535
              minimum: 0
              type: integer
            - type: 'null'
          description: >-
            OpenRTB Native context type (1=ContentCentric, 2=SocialCentric,
            3=ProductContext)
          title: Context
        contextsubtype:
          anyOf:
            - maximum: 65535
              minimum: 0
              type: integer
            - type: 'null'
          description: OpenRTB Native context subtype (e.g. 14=PrimarilyImageContent)
          title: Contextsubtype
        ext:
          anyOf:
            - {}
            - type: 'null'
          description: Optional vendor-specific extensions.
          title: Ext
        plcmtcnt:
          anyOf:
            - maximum: 255
              minimum: 1
              type: integer
            - type: 'null'
          description: OpenRTB Native placement count
          title: Plcmtcnt
        plcmttype:
          anyOf:
            - maximum: 65535
              minimum: 0
              type: integer
            - type: 'null'
          description: >-
            OpenRTB Native placement type (1=Feed, 2=AtomicUnit,
            3=OutsideOfContent, 4=RecommendationWidget)
          title: Plcmttype
      title: NativePlacement
      type: object
    RecommendationPlacement-Output:
      properties:
        candidate_filtering:
          anyOf:
            - $ref: '#/components/schemas/CandidateFiltering'
            - type: 'null'
          description: Candidate filtering.
        content_filter_rule:
          anyOf:
            - $ref: '#/components/schemas/Expr-Output'
            - type: 'null'
          description: Content filter rule.
        ext:
          default: {}
          description: Additional ad unit-specific extensions.
          title: Ext
        topn:
          default: 10
          description: Number of items to recommend.
          maximum: 99
          minimum: 0
          title: Topn
          type: integer
      title: RecommendationPlacement
      type: object
    VideoPlacement:
      properties:
        api:
          anyOf:
            - items:
                maximum: 65535
                minimum: 0
                type: integer
              type: array
            - type: 'null'
          title: Api
        boxing:
          anyOf:
            - maximum: 255
              minimum: 0
              type: integer
            - type: 'null'
          default: 1
          title: Boxing
        clktype:
          $ref: '#/components/schemas/Click'
          default: 1
          description: >-
            Click type. 0: none, 1: unknown, 2: embedded browser, 3: native
            browser.
        comp:
          anyOf:
            - items:
                $ref: '#/components/schemas/Companion'
              type: array
            - type: 'null'
          title: Comp
        comptype:
          anyOf:
            - items:
                $ref: '#/components/schemas/CompanionType'
              type: array
            - type: 'null'
          title: Comptype
        ctype:
          description: List of creative types.
          items:
            type: integer
          title: Ctype
          type: array
        delay:
          default: 0
          description: Ad start delay (seconds).
          title: Delay
          type: integer
        delivery:
          anyOf:
            - items:
                $ref: '#/components/schemas/DeliveryMethod'
              type: array
            - type: 'null'
          title: Delivery
        expdir:
          anyOf:
            - items:
                $ref: '#/components/schemas/ExpandableDirection'
              type: array
            - type: 'null'
          title: Expdir
        ext:
          anyOf:
            - {}
            - type: 'null'
          title: Ext
        h:
          default: 300
          description: Video height (px).
          title: H
          type: integer
        linear:
          default: 0
          description: 'Linearity. 0: unknown, 1: linear, 2: non-linear.'
          title: Linear
          type: integer
        maxbitr:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          title: Maxbitr
        maxdur:
          default: 0
          description: Maximum allowed duration (seconds).
          title: Maxdur
          type: integer
        maxext:
          anyOf:
            - type: integer
            - type: 'null'
          default: 0
          title: Maxext
        maxseq:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          title: Maxseq
        mime:
          description: List of supported MIME types.
          items:
            type: string
          title: Mime
          type: array
        minbitr:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          title: Minbitr
        mincpmpersec:
          anyOf:
            - type: number
            - type: 'null'
          title: Mincpmpersec
        mindur:
          default: 0
          description: Minimum allowed duration (seconds).
          title: Mindur
          type: integer
        overlayexpdir:
          anyOf:
            - items:
                $ref: '#/components/schemas/ExpandableDirection'
              type: array
            - type: 'null'
          title: Overlayexpdir
        playend:
          anyOf:
            - $ref: '#/components/schemas/PlaybackCessationMode'
            - type: 'null'
        playmethod:
          description: List of playback methods.
          items:
            $ref: '#/components/schemas/PlaybackMethod'
          title: Playmethod
          type: array
        poddur:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          title: Poddur
        podid:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          title: Podid
        podseq:
          anyOf:
            - $ref: '#/components/schemas/PodSequence'
            - type: 'null'
          default: 0
          description: 'Pod sequence. -1: last, 0: any, 1: first.'
        pos:
          anyOf:
            - $ref: '#/components/schemas/PlacementPosition'
            - type: 'null'
        ptype:
          $ref: '#/components/schemas/PlacementSubtypeVideo'
          default: 1
          description: >-
            Video placement type. 1: in-stream, 2: in-banner, 3: in-article, 4:
            in-feed, 5: interstitial.
        rqddurs:
          anyOf:
            - items:
                minimum: 0
                type: integer
              type: array
            - type: 'null'
          title: Rqddurs
        skip:
          default: 0
          description: 'Skippable flag. 0: not skippable, 1: skippable.'
          title: Skip
          type: integer
        skipafter:
          default: 0
          description: Playback position at which skip button appears (seconds).
          title: Skipafter
          type: integer
        skipmin:
          default: 0
          description: Minimum ad duration before skip button appears (seconds).
          title: Skipmin
          type: integer
        slotinpod:
          anyOf:
            - $ref: '#/components/schemas/SlotPositionInPod'
            - type: 'null'
          default: 0
          description: 'Slot position in pod. -1: last, 0: any, 1: first, 2: first or last.'
        unit:
          anyOf:
            - $ref: '#/components/schemas/Size'
            - type: 'null'
          default: 2
          description: 'Size unit. 1: DIPS, 2: inches, 3: centimeters.'
        w:
          default: 480
          description: Video width (px).
          title: W
          type: integer
      title: VideoPlacement
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    Click:
      enum:
        - 0
        - 1
        - 2
        - 3
      title: Click
      type: integer
    DisplayContext:
      enum:
        - ContentCentric
        - ArticleContent
        - VideoContent
        - AudioContent
        - ImageContent
        - UserGeneratedContent
        - SocialCentric
        - EmailContent
        - ChatContent
        - ProductContext
        - AppStore
        - ProductReviews
      title: DisplayContext
      type: string
    DisplayFormat:
      properties:
        expdir:
          anyOf:
            - $ref: '#/components/schemas/ExpandableDirection'
            - type: 'null'
        ext:
          anyOf:
            - {}
            - type: 'null'
          title: Ext
        h:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          title: H
        hratio:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          title: Hratio
        w:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          title: W
        wratio:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          title: Wratio
      title: DisplayFormat
      type: object
    EventSpec:
      properties:
        api:
          anyOf:
            - items:
                maximum: 65535
                minimum: 0
                type: integer
              type: array
            - type: 'null'
          title: Api
        ext:
          anyOf:
            - {}
            - type: 'null'
          title: Ext
        jstrk:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Jstrk
        method:
          anyOf:
            - items:
                $ref: '#/components/schemas/EventTrackingMethod'
              type: array
            - type: 'null'
          title: Method
        pxtrk:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Pxtrk
        type:
          $ref: '#/components/schemas/EventType'
        wjs:
          default: 1
          title: Wjs
          type: integer
        wpx:
          default: 1
          title: Wpx
          type: integer
      required:
        - type
      title: EventSpec
      type: object
    PlacementPosition:
      enum:
        - Unknown
        - AboveTheFold
        - Locked
        - BelowTheFold
        - Header
        - Footer
        - Sidebar
        - FullScreen
      title: PlacementPosition
      type: string
    DisplayPlacementTypes:
      enum:
        - Feed
        - AtomicUnit
        - OutsideCore
        - RecommendationWidget
      title: DisplayPlacementTypes
      type: string
    Size:
      enum:
        - 1
        - 2
        - 3
      title: Size
      type: integer
    AdUnitApproval:
      enum:
        - admin
        - delegate
      title: AdUnitApproval
      type: string
    ImplicitAppInference:
      properties:
        android_bundle:
          anyOf:
            - type: string
            - type: 'null'
          title: Android Bundle
        app_name:
          anyOf:
            - type: string
            - type: 'null'
          title: App Name
        cat:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Cat
        ios_bundle:
          anyOf:
            - type: string
            - type: 'null'
          title: Ios Bundle
        ua_keywords:
          default: []
          items:
            type: string
          title: Ua Keywords
          type: array
      title: ImplicitAppInference
      type: object
    AdUnitMetricMode:
      enum:
        - all
        - internal_only
        - external_only
      title: AdUnitMetricMode
      type: string
    AdUnitExtNative:
      properties:
        enabled:
          default: 0
          description: Whether native ads are enabled for the ad unit (0 or 1).
          title: Enabled
          type: integer
        render_mode:
          $ref: '#/components/schemas/NativeRenderMode'
          default: html
          description: Native rendering mode for this ad unit.
      title: AdUnitExtNative
      type: object
    AdUnitPayout:
      enum:
        - rates
        - revenue_share
        - none
      title: AdUnitPayout
      type: string
    AdUnitResponsiveness:
      enum:
        - fixed
        - resized
      title: AdUnitResponsiveness
      type: string
    AssetRequest:
      anyOf:
        - $ref: '#/components/schemas/AssetRequest1'
        - $ref: '#/components/schemas/AssetRequest2'
        - $ref: '#/components/schemas/AssetRequest3'
        - $ref: '#/components/schemas/AssetRequest4'
      title: AssetRequest
    CandidateFiltering:
      properties:
        method:
          $ref: '#/components/schemas/CandidateFilteringMethod'
          default: NoFilter
          description: Filtering method.
      title: CandidateFiltering
      type: object
    Expr-Output:
      anyOf:
        - $ref: '#/components/schemas/Expr1'
        - $ref: '#/components/schemas/Expr2-Output'
        - $ref: '#/components/schemas/Expr3-Output'
        - $ref: '#/components/schemas/Expr4-Output'
      title: Expr
    Companion:
      properties:
        display:
          anyOf:
            - $ref: >-
                #/components/schemas/a2_adm__generated__ad_unit__DisplayPlacement
            - type: 'null'
        ext:
          anyOf:
            - {}
            - type: 'null'
          title: Ext
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        vcm:
          anyOf:
            - type: integer
            - type: 'null'
          title: Vcm
      title: Companion
      type: object
    CompanionType:
      enum:
        - Static
        - HTML
        - IFrame
      title: CompanionType
      type: string
    DeliveryMethod:
      enum:
        - Streaming
        - Progressive
        - Download
      title: DeliveryMethod
      type: string
    ExpandableDirection:
      enum:
        - Left
        - Right
        - Up
        - Down
        - FullScreen
        - ResizeMinimize
      title: ExpandableDirection
      type: string
    PlaybackCessationMode:
      enum:
        - OnVideoCompletion
        - OnLeavingViewport
        - OnLeavingViewportContinuesAsAUnit
      title: PlaybackCessationMode
      type: string
    PlaybackMethod:
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
      title: PlaybackMethod
      type: integer
    PodSequence:
      enum:
        - -1
        - 0
        - 1
      title: PodSequence
      type: integer
    PlacementSubtypeVideo:
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
      title: PlacementSubtypeVideo
      type: integer
    SlotPositionInPod:
      enum:
        - -1
        - 0
        - 1
        - 2
      title: SlotPositionInPod
      type: integer
    EventTrackingMethod:
      enum:
        - 1
        - 2
      title: EventTrackingMethod
      type: integer
    EventType:
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
      title: EventType
      type: integer
    NativeRenderMode:
      enum:
        - html
        - asset
      title: NativeRenderMode
      type: string
    AssetRequest1:
      properties:
        data:
          anyOf:
            - $ref: '#/components/schemas/DataAssetRequest'
            - type: 'null'
        ext:
          anyOf:
            - {}
            - type: 'null'
          title: Ext
        id:
          title: Id
          type: integer
        img:
          anyOf:
            - $ref: '#/components/schemas/ImageAssetRequest'
            - type: 'null'
        required:
          anyOf:
            - $ref: '#/components/schemas/IsRequired'
            - type: 'null'
        title:
          anyOf:
            - $ref: '#/components/schemas/TitleAssetRequest'
            - type: 'null'
        video:
          anyOf:
            - $ref: '#/components/schemas/VideoAssetRequest'
            - type: 'null'
      required:
        - id
        - title
      title: AssetRequest1
      type: object
    AssetRequest2:
      properties:
        data:
          anyOf:
            - $ref: '#/components/schemas/DataAssetRequest'
            - type: 'null'
        ext:
          anyOf:
            - {}
            - type: 'null'
          title: Ext
        id:
          title: Id
          type: integer
        img:
          anyOf:
            - $ref: '#/components/schemas/ImageAssetRequest'
            - type: 'null'
        required:
          anyOf:
            - $ref: '#/components/schemas/IsRequired'
            - type: 'null'
        title:
          anyOf:
            - $ref: '#/components/schemas/TitleAssetRequest'
            - type: 'null'
        video:
          anyOf:
            - $ref: '#/components/schemas/VideoAssetRequest'
            - type: 'null'
      required:
        - id
        - img
      title: AssetRequest2
      type: object
    AssetRequest3:
      properties:
        data:
          anyOf:
            - $ref: '#/components/schemas/DataAssetRequest'
            - type: 'null'
        ext:
          anyOf:
            - {}
            - type: 'null'
          title: Ext
        id:
          title: Id
          type: integer
        img:
          anyOf:
            - $ref: '#/components/schemas/ImageAssetRequest'
            - type: 'null'
        required:
          anyOf:
            - $ref: '#/components/schemas/IsRequired'
            - type: 'null'
        title:
          anyOf:
            - $ref: '#/components/schemas/TitleAssetRequest'
            - type: 'null'
        video:
          anyOf:
            - $ref: '#/components/schemas/VideoAssetRequest'
            - type: 'null'
      required:
        - id
        - video
      title: AssetRequest3
      type: object
    AssetRequest4:
      properties:
        data:
          anyOf:
            - $ref: '#/components/schemas/DataAssetRequest'
            - type: 'null'
        ext:
          anyOf:
            - {}
            - type: 'null'
          title: Ext
        id:
          title: Id
          type: integer
        img:
          anyOf:
            - $ref: '#/components/schemas/ImageAssetRequest'
            - type: 'null'
        required:
          anyOf:
            - $ref: '#/components/schemas/IsRequired'
            - type: 'null'
        title:
          anyOf:
            - $ref: '#/components/schemas/TitleAssetRequest'
            - type: 'null'
        video:
          anyOf:
            - $ref: '#/components/schemas/VideoAssetRequest'
            - type: 'null'
      required:
        - data
        - id
      title: AssetRequest4
      type: object
    CandidateFilteringMethod:
      enum:
        - NoFilter
        - ViewPenalty
        - ViewOut
      title: CandidateFilteringMethod
      type: string
    Expr1:
      properties:
        data:
          $ref: '#/components/schemas/Compare'
        type:
          const: cmp
          title: Type
          type: string
      required:
        - data
        - type
      title: Expr1
      type: object
    Expr2-Output:
      properties:
        data:
          items:
            $ref: '#/components/schemas/Expr-Output'
          title: Data
          type: array
        type:
          const: and
          title: Type
          type: string
      required:
        - data
        - type
      title: Expr2
      type: object
    Expr3-Output:
      properties:
        data:
          items:
            $ref: '#/components/schemas/Expr-Output'
          title: Data
          type: array
        type:
          const: or
          title: Type
          type: string
      required:
        - data
        - type
      title: Expr3
      type: object
    Expr4-Output:
      properties:
        data:
          $ref: '#/components/schemas/Expr-Output'
        type:
          const: not
          title: Type
          type: string
      required:
        - data
        - type
      title: Expr4
      type: object
    a2_adm__generated__ad_unit__DisplayPlacement:
      properties:
        ampren:
          anyOf:
            - maximum: 255
              minimum: 0
              type: integer
            - type: 'null'
          title: Ampren
        api:
          anyOf:
            - items:
                maximum: 65535
                minimum: 0
                type: integer
              type: array
            - type: 'null'
          title: Api
        clktype:
          default: 1
          maximum: 255
          minimum: 0
          title: Clktype
          type: integer
        context:
          anyOf:
            - $ref: '#/components/schemas/DisplayContext'
            - type: 'null'
        ctype:
          anyOf:
            - items:
                maximum: 255
                minimum: 0
                type: integer
              type: array
            - type: 'null'
          title: Ctype
        displayfmt:
          anyOf:
            - $ref: '#/components/schemas/DisplayFormat'
            - type: 'null'
        event:
          anyOf:
            - items:
                $ref: '#/components/schemas/EventSpec'
              type: array
            - type: 'null'
          title: Event
        ext:
          anyOf:
            - {}
            - type: 'null'
          title: Ext
        h:
          anyOf:
            - type: number
            - type: 'null'
          title: H
        ifrbust:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Ifrbust
        mime:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Mime
        pos:
          anyOf:
            - $ref: '#/components/schemas/PlacementPosition'
            - type: 'null'
        priv:
          default: 0
          maximum: 255
          minimum: 0
          title: Priv
          type: integer
        ptype:
          anyOf:
            - $ref: '#/components/schemas/DisplayPlacementTypes'
            - type: 'null'
        topframe:
          anyOf:
            - maximum: 255
              minimum: 0
              type: integer
            - type: 'null'
          title: Topframe
        unit:
          default: 2
          maximum: 255
          minimum: 0
          title: Unit
          type: integer
        w:
          anyOf:
            - type: number
            - type: 'null'
          title: W
      title: DisplayPlacement
      type: object
    DataAssetRequest:
      properties:
        ext:
          anyOf:
            - {}
            - type: 'null'
          title: Ext
        len:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          title: Len
        type:
          maximum: 65535
          minimum: 0
          title: Type
          type: integer
      required:
        - type
      title: DataAssetRequest
      type: object
    ImageAssetRequest:
      properties:
        ext:
          anyOf:
            - {}
            - type: 'null'
          title: Ext
        h:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          title: H
        hmin:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          title: Hmin
        mimes:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Mimes
        type:
          anyOf:
            - maximum: 65535
              minimum: 0
              type: integer
            - type: 'null'
          title: Type
        w:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          title: W
        wmin:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          title: Wmin
      title: ImageAssetRequest
      type: object
    IsRequired:
      enum:
        - 0
        - 1
      title: IsRequired
      type: integer
    TitleAssetRequest:
      properties:
        ext:
          anyOf:
            - {}
            - type: 'null'
          title: Ext
        len:
          minimum: 0
          title: Len
          type: integer
      required:
        - len
      title: TitleAssetRequest
      type: object
    VideoAssetRequest:
      properties:
        ext:
          anyOf:
            - {}
            - type: 'null'
          title: Ext
        linearity:
          anyOf:
            - $ref: '#/components/schemas/LinearityMode'
            - type: 'null'
        maxduration:
          minimum: 0
          title: Maxduration
          type: integer
        mimes:
          items:
            type: string
          title: Mimes
          type: array
        minduration:
          minimum: 0
          title: Minduration
          type: integer
        protocols:
          items:
            maximum: 65535
            minimum: 0
            type: integer
          title: Protocols
          type: array
      required:
        - maxduration
        - mimes
        - minduration
        - protocols
      title: VideoAssetRequest
      type: object
    Compare:
      properties:
        lhs:
          items:
            type: string
          title: Lhs
          type: array
        op:
          $ref: '#/components/schemas/Op'
        rhs:
          title: Rhs
      required:
        - lhs
        - op
        - rhs
      title: Compare
      type: object
    LinearityMode:
      enum:
        - 1
        - 2
      title: LinearityMode
      type: integer
    Op:
      enum:
        - eq
        - ne
        - lt
        - le
        - gt
        - ge
        - in
        - nin
      title: Op
      type: string
  securitySchemes:
    HTTPBearer:
      description: >-
        Bearer authentication. Pass the access token in the `Authorization:
        Bearer <token>` header.
      scheme: bearer
      type: http

````