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

# List Fetched Ad Library Ads

> List the most recently fetched ad-library ads (admin-only).

Any fetch method, optionally filtered by stored platform, ordered
most-recently-fetched first. ``origin_user_accounts`` is separate from
``fetched_by``: it names the UA lineage for UOB/DOB advertisers, whereas
``fetched_by`` names what caused THAT row's fetch — the triggering account's
email when a signed-in user caused it, otherwise the automated cause
("Nightly refresh", "Liveness check", "Competitor dashboard", …). It is
never blank. The platform is derivable from ``ad_url``; it is also returned
for ads missing a source URL.



## OpenAPI

````yaml /openapi.json get /api/v1/admin/integrations/meta-ad-library/ads/fetched
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/admin/integrations/meta-ad-library/ads/fetched:
    get:
      tags:
        - Admin
      summary: List Fetched Ad Library Ads
      description: >-
        List the most recently fetched ad-library ads (admin-only).


        Any fetch method, optionally filtered by stored platform, ordered

        most-recently-fetched first. ``origin_user_accounts`` is separate from

        ``fetched_by``: it names the UA lineage for UOB/DOB advertisers, whereas

        ``fetched_by`` names what caused THAT row's fetch — the triggering
        account's

        email when a signed-in user caused it, otherwise the automated cause

        ("Nightly refresh", "Liveness check", "Competitor dashboard", …). It is

        never blank. The platform is derivable from ``ad_url``; it is also
        returned

        for ads missing a source URL.
      operationId: >-
        list_fetched_ad_library_ads_api_v1_admin_integrations_meta_ad_library_ads_fetched_get
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 50
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            title: Offset
            default: 0
        - name: platform
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 64
              - type: 'null'
            title: Platform
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdminAdLibraryFetchedAdsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    AdminAdLibraryFetchedAdsResponse:
      properties:
        ads:
          items:
            $ref: '#/components/schemas/AdminAdLibraryFetchedAd'
          type: array
          title: Ads
        has_more:
          type: boolean
          title: Has More
          default: false
        platforms:
          items:
            type: string
          type: array
          title: Platforms
      type: object
      title: AdminAdLibraryFetchedAdsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AdminAdLibraryFetchedAd:
      properties:
        ad_id:
          type: string
          format: uuid
          title: Ad Id
        fetched_by:
          type: string
          title: Fetched By
        brand_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Brand Name
        ad_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Ad Url
        platform:
          type: string
          title: Platform
        fetched_at:
          type: string
          format: date-time
          title: Fetched At
        origin_user_accounts:
          items:
            type: string
          type: array
          title: Origin User Accounts
      type: object
      required:
        - ad_id
        - fetched_by
        - platform
        - fetched_at
      title: AdminAdLibraryFetchedAd
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````