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

# report/ad-units

> Fetch per-ad-unit performance for the requested time range. Requires the `reports:read` permission.



## OpenAPI

````yaml https://provisioning.cloudx.io/api/v1/openapi.yaml get /report/ad-units
openapi: 3.0.3
info:
  title: CloudX API
  description: >-
    Use the CloudX API to retrieve reporting metrics, inspect auctions, and read
    account configuration.
  version: 1.0.0
servers:
  - url: https://provisioning.cloudx.io/api/v1
security: []
tags:
  - name: Authentication
    description: Validate CloudX API keys and inspect authenticated account details.
  - name: Reporting
    description: >-
      Retrieve CloudX reporting metrics for apps, ad units, bidders, and
      exports.
  - name: Configuration
    description: Read live, draft, and published CloudX account configuration.
  - name: Auction Inspection
    description: Inspect auctions, rounds, bids, and related delivery details.
paths:
  /report/ad-units:
    get:
      tags:
        - Reporting
      summary: report/ad-units
      description: >-
        Fetch per-ad-unit performance for the requested time range. Requires the
        `reports:read` permission.
      operationId: getReportAdUnits
      parameters:
        - in: query
          name: start_time
          description: >-
            Start of the time range as a Unix timestamp in seconds. The
            requested range must not exceed 31 days.
          required: true
          schema:
            type: integer
            format: int64
          example: 1712448000
        - in: query
          name: end_time
          description: >-
            End of the time range as a Unix timestamp in seconds. The requested
            range must not exceed 31 days.
          required: true
          schema:
            type: integer
            format: int64
          example: 1712534399
        - in: query
          name: test_mode
          description: Traffic mode to include. Defaults to production traffic.
          schema:
            type: string
            enum:
              - production
              - test
              - all
            default: production
        - in: query
          name: app_bundle
          description: App bundle identifier filter.
          schema:
            type: string
          example: com.example.game
        - in: query
          name: ad_unit_type
          description: Ad unit format filter.
          schema:
            type: string
            enum:
              - BANNER
              - INTERSTITIAL
              - REWARDED
              - MREC
              - NATIVE
        - in: query
          name: country
          description: ISO 3166-1 alpha-2 country code filter.
          schema:
            type: string
          example: US
        - in: query
          name: device_os
          description: Device operating system filter.
          schema:
            type: string
            enum:
              - iOS
              - Android
        - in: query
          name: source
          description: >-
            Reporting source filter. Use `cloudx`, a mediation source such as
            `applovin`, a comma-separated list such as `cloudx,admob`, or `all`.
          schema:
            type: string
          example: cloudx
      responses:
        '200':
          description: Ad unit performance data.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdUnitsResponse'
        '400':
          description: Invalid request parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    AdUnitsResponse:
      type: object
      required:
        - ad_units
      properties:
        ad_units:
          type: array
          maxItems: 100000
          items:
            $ref: '#/components/schemas/AdUnitPerformance'
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
    AdUnitPerformance:
      type: object
      required:
        - ad_unit_id
        - name
        - app_name
        - app_bundle
        - type
        - revenue
        - impressions
        - fill_rate
        - ecpm
      properties:
        ad_unit_id:
          type: string
        name:
          type: string
        app_name:
          type: string
        app_bundle:
          type: string
        type:
          type: string
        revenue:
          type: number
          format: double
        impressions:
          type: integer
          format: int64
        fill_rate:
          type: number
          format: double
        ecpm:
          type: number
          format: double
        source:
          type: string
        revenue_share:
          type: number
          format: double
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Create or manage API keys in [CloudX
        Settings](https://app.cloudx.io/settings/api-keys).
      x-default: YOUR_CLOUDX_API_KEY

````