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

# Admin Get Ad Library Raw Payloads

> Admin-only raw provider-payload inspector for a single ad (troubleshooting).

Surfaces the scrape mechanics the public ad-detail response deliberately
scrubs.



## OpenAPI

````yaml /openapi.json get /api/v1/admin/ad-library/ads/{ad_id}/raw-payloads
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/admin/ad-library/ads/{ad_id}/raw-payloads:
    get:
      tags:
        - Admin
      summary: Admin Get Ad Library Raw Payloads
      description: >-
        Admin-only raw provider-payload inspector for a single ad
        (troubleshooting).


        Surfaces the scrape mechanics the public ad-detail response deliberately

        scrubs.
      operationId: >-
        admin_get_ad_library_raw_payloads_api_v1_admin_ad_library_ads__ad_id__raw_payloads_get
      parameters:
        - name: ad_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Ad Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdLibraryAdminRawPayloads'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    AdLibraryAdminRawPayloads:
      properties:
        ad_id:
          type: string
          format: uuid
          title: Ad Id
        provider_payloads:
          items:
            $ref: '#/components/schemas/AdLibraryAdminProviderPayload'
          type: array
          title: Provider Payloads
        advertiser_metadata:
          additionalProperties: true
          type: object
          title: Advertiser Metadata
        source_account_raw_data:
          additionalProperties: true
          type: object
          title: Source Account Raw Data
        creatives_raw_data:
          items:
            $ref: '#/components/schemas/AdLibraryAdminCreativeRaw'
          type: array
          title: Creatives Raw Data
      type: object
      required:
        - ad_id
      title: AdLibraryAdminRawPayloads
      description: Admin-only raw provider-payload dump for a single ad (troubleshooting).
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AdLibraryAdminProviderPayload:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        provider:
          type: string
          title: Provider
        platform:
          type: string
          title: Platform
        captured_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Captured At
        payload_hash:
          anyOf:
            - type: string
            - type: 'null'
          title: Payload Hash
        ingestion_run_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Ingestion Run Id
        payload:
          additionalProperties: true
          type: object
          title: Payload
      type: object
      required:
        - id
        - provider
        - platform
      title: AdLibraryAdminProviderPayload
    AdLibraryAdminCreativeRaw:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        headline:
          anyOf:
            - type: string
            - type: 'null'
          title: Headline
        raw_data:
          additionalProperties: true
          type: object
          title: Raw Data
      type: object
      required:
        - id
      title: AdLibraryAdminCreativeRaw
    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

````