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

# Get Global Ad Library Ad

> Return one global ad with creatives, assets, and provenance.

The route stays public (gated only by the global-ad-library flag). When the
requester happens to be a platform admin, ``viewer_is_admin`` is set so the
Full Ad Page can offer the admin-only raw-payload inspector.



## OpenAPI

````yaml /openapi.json get /api/v1/ad-library/ads/{ad_id}
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/ad-library/ads/{ad_id}:
    get:
      tags:
        - Ad Library
        - Ad Library
      summary: Get Global Ad Library Ad
      description: >-
        Return one global ad with creatives, assets, and provenance.


        The route stays public (gated only by the global-ad-library flag). When
        the

        requester happens to be a platform admin, ``viewer_is_admin`` is set so
        the

        Full Ad Page can offer the admin-only raw-payload inspector.
      operationId: get_global_ad_library_ad_api_v1_ad_library_ads__ad_id__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/AdLibraryAdDetail'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    AdLibraryAdDetail:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        provider:
          type: string
          title: Provider
        platform:
          type: string
          title: Platform
        publisher_platforms:
          items:
            type: string
          type: array
          title: Publisher Platforms
        source_ad_key:
          type: string
          title: Source Ad Key
        source_ad_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Ad Id
        source_ad_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Ad Url
        display_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Url
        click_through_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Click Through Url
        landing_page_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Landing Page Url
        utm_params:
          additionalProperties:
            type: string
          type: object
          title: Utm Params
        paying_agency:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryOrgSummary'
            - type: 'null'
        placements:
          items:
            type: string
          type: array
          title: Placements
        status:
          type: string
          title: Status
        started_running_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started Running At
        launched_month:
          anyOf:
            - type: string
            - type: 'null'
          title: Launched Month
        is_top_ad:
          type: boolean
          title: Is Top Ad
          default: false
        top_ad_rank:
          anyOf:
            - type: integer
            - type: 'null'
          title: Top Ad Rank
        low_impression_count:
          type: boolean
          title: Low Impression Count
          default: false
        ad_has_multiple_versions:
          type: boolean
          title: Ad Has Multiple Versions
          default: false
        is_still_in_ad_library:
          type: boolean
          title: Is Still In Ad Library
          default: true
        last_seen_in_ad_library_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Seen In Ad Library At
        last_confirmed_active_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Confirmed Active At
        active_finished_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Active Finished At
        active_duration_days:
          anyOf:
            - type: integer
            - type: 'null'
          title: Active Duration Days
        first_seen_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: First Seen At
        last_seen_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Seen At
        language:
          anyOf:
            - type: string
            - type: 'null'
          title: Language
        video_duration_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Video Duration Seconds
        industry:
          anyOf:
            - type: string
            - type: 'null'
          title: Industry
        theme:
          anyOf:
            - type: string
            - type: 'null'
          title: Theme
        transcript:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryTranscript'
            - type: 'null'
        is_video:
          type: boolean
          title: Is Video
          default: false
        posting_page_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Posting Page Name
        advertiser_logo_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Advertiser Logo Url
        ad_format:
          anyOf:
            - type: string
            - type: 'null'
          title: Ad Format
        partners:
          items:
            $ref: '#/components/schemas/AdLibraryPartnerSummary'
          type: array
          title: Partners
        advertiser:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryAdvertiserSummary'
            - type: 'null'
        advertiser_metadata:
          additionalProperties: true
          type: object
          title: Advertiser Metadata
        source_account:
          anyOf:
            - $ref: '#/components/schemas/AdLibrarySourceAccountSummary'
            - type: 'null'
        creatives:
          items:
            $ref: '#/components/schemas/AdLibraryCreativeSummary'
          type: array
          title: Creatives
        observations:
          items:
            $ref: '#/components/schemas/AdLibraryObservationSummary'
          type: array
          title: Observations
        provider_payloads:
          items:
            $ref: '#/components/schemas/AdLibraryProviderPayloadSummary'
          type: array
          title: Provider Payloads
        platform_details:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryPlatformDetails'
            - type: 'null'
        analysis:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryAdAnalysisSummary'
            - type: 'null'
        eu_total_reach:
          anyOf:
            - type: integer
            - type: 'null'
          title: Eu Total Reach
        aaa_info:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryAaaInfo'
            - type: 'null'
        variant_count:
          type: integer
          title: Variant Count
          default: 1
        variants:
          items:
            $ref: '#/components/schemas/AdLibraryAdVariant'
          type: array
          title: Variants
        viewer_is_admin:
          type: boolean
          title: Viewer Is Admin
          default: false
        provenance:
          additionalProperties:
            anyOf:
              - type: string
              - type: 'null'
          type: object
          title: Provenance
      type: object
      required:
        - id
        - provider
        - platform
        - source_ad_key
        - status
      title: AdLibraryAdDetail
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AdLibraryOrgSummary:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
      type: object
      required:
        - id
        - name
      title: AdLibraryOrgSummary
      description: A parent company or paying agency, by id + display name.
    AdLibraryTranscript:
      properties:
        hook:
          anyOf:
            - type: string
            - type: 'null'
          title: Hook
        text:
          anyOf:
            - type: string
            - type: 'null'
          title: Text
        locale:
          anyOf:
            - type: string
            - type: 'null'
          title: Locale
        phrases:
          items:
            $ref: '#/components/schemas/AdLibraryTranscriptPhrase'
          type: array
          title: Phrases
      type: object
      title: AdLibraryTranscript
      description: >-
        Video-ad transcript surfaced on the Full Ad Page (populated by the CU

        classification branch →
        ``AdLibraryAd.classification_json.video.transcript``).
    AdLibraryPartnerSummary:
      properties:
        name:
          type: string
          title: Name
        page_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Page Id
        page_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Page Url
        profile_image_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Profile Image Url
      type: object
      required:
        - name
      title: AdLibraryPartnerSummary
    AdLibraryAdvertiserSummary:
      properties:
        id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Id
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        parent_company:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryOrgSummary'
            - type: 'null'
        primary_domain:
          anyOf:
            - type: string
            - type: 'null'
          title: Primary Domain
        website_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Website Url
        website_header_image_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Website Header Image Url
        industry:
          anyOf:
            - type: string
            - type: 'null'
          title: Industry
        brand_classification:
          anyOf:
            - $ref: '#/components/schemas/BrandClassification'
            - type: 'null'
        partners:
          items:
            $ref: '#/components/schemas/AdLibraryPartnerSummary'
          type: array
          title: Partners
      type: object
      title: AdLibraryAdvertiserSummary
    AdLibrarySourceAccountSummary:
      properties:
        id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Id
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        handle:
          anyOf:
            - type: string
            - type: 'null'
          title: Handle
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        followers:
          anyOf:
            - type: integer
            - type: 'null'
          title: Followers
        logo_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Logo Url
        tagline:
          anyOf:
            - type: string
            - type: 'null'
          title: Tagline
        raw_data:
          additionalProperties: true
          type: object
          title: Raw Data
      type: object
      title: AdLibrarySourceAccountSummary
    AdLibraryCreativeSummary:
      properties:
        id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Id
        headline:
          anyOf:
            - type: string
            - type: 'null'
          title: Headline
        body_text:
          anyOf:
            - type: string
            - type: 'null'
          title: Body Text
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        cta:
          anyOf:
            - type: string
            - type: 'null'
          title: Cta
        creative_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Creative Type
        first_seen_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: First Seen At
        last_seen_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Seen At
        assets:
          items:
            $ref: '#/components/schemas/AdLibraryAssetSummary'
          type: array
          title: Assets
        media_variants:
          items:
            $ref: '#/components/schemas/AdLibraryMediaVariantSummary'
          type: array
          title: Media Variants
        raw_data:
          additionalProperties: true
          type: object
          title: Raw Data
      type: object
      title: AdLibraryCreativeSummary
    AdLibraryObservationSummary:
      properties:
        id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Id
        provider:
          anyOf:
            - type: string
            - type: 'null'
          title: Provider
        platform:
          anyOf:
            - type: string
            - type: 'null'
          title: Platform
        status:
          type: string
          title: Status
        observed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Observed At
        country:
          anyOf:
            - type: string
            - type: 'null'
          title: Country
        raw_data:
          additionalProperties: true
          type: object
          title: Raw Data
      type: object
      required:
        - status
      title: AdLibraryObservationSummary
    AdLibraryProviderPayloadSummary:
      properties:
        id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Id
        provider:
          type: string
          title: Provider
        platform:
          type: string
          title: Platform
        payload_hash:
          type: string
          title: Payload Hash
        captured_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Captured At
        payload:
          additionalProperties: true
          type: object
          title: Payload
      type: object
      required:
        - provider
        - platform
        - payload_hash
      title: AdLibraryProviderPayloadSummary
    AdLibraryPlatformDetails:
      properties:
        family:
          type: string
          enum:
            - meta
            - linkedin
            - tiktok
            - google
            - generic
          title: Family
          default: generic
        meta:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryMetaDetails'
            - type: 'null'
        linkedin:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryLinkedInDetails'
            - type: 'null'
        tiktok:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryTikTokDetails'
            - type: 'null'
        google:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryGoogleDetails'
            - type: 'null'
      type: object
      title: AdLibraryPlatformDetails
      description: >-
        Typed per-platform transparency projection for the ad detail response.


        Exactly one family sub-object is populated (matching ``family``); the
        rest

        stay None. Whitelist-projected server-side from ALL stored payload rows

        (newest-first per key), so scrape mechanics (fetch diagnostics,
        search/API

        URLs, run bookkeeping) structurally cannot leak into it.
    AdLibraryAdAnalysisSummary:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        status:
          type: string
          title: Status
        analysis_kind:
          anyOf:
            - type: string
            - type: 'null'
          title: Analysis Kind
        detected_format:
          anyOf:
            - type: string
            - type: 'null'
          title: Detected Format
        summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Summary
        overall_score:
          anyOf:
            - type: integer
            - type: 'null'
          title: Overall Score
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
        result:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Result
      type: object
      required:
        - id
        - status
      title: AdLibraryAdAnalysisSummary
      description: Latest completed AI creative-teardown summary embedded on ad detail.
    AdLibraryAaaInfo:
      properties:
        targets_eu:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Targets Eu
        eu_total_reach:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Eu Total Reach
        age_country_gender_reach_breakdown:
          items:
            $ref: '#/components/schemas/AdLibraryAaaCountryReach'
          type: array
          title: Age Country Gender Reach Breakdown
        payer_beneficiary_data:
          items:
            $ref: '#/components/schemas/AdLibraryAaaPayerBeneficiary'
          type: array
          title: Payer Beneficiary Data
        has_violating_payer_beneficiary:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Has Violating Payer Beneficiary
        is_ad_taken_down:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Ad Taken Down
      type: object
      title: AdLibraryAaaInfo
      description: >-
        Meta EU DSA ad-transparency block (``aaa_info``).


        Populated only for EU-served Meta ads whose DETAIL page was fetched by
        the

        self-hosted scraper (``meta_public_scrape``). Non-EU ads and ads whose

        detail was budget-skipped carry no ``aaa_info``.
    AdLibraryAdVariant:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        source_ad_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Ad Id
        facebook_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Facebook Url
        landing_page_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Landing Page Url
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        started_running_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started Running At
        last_confirmed_active_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Confirmed Active At
        active_finished_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Active Finished At
        active_duration_days:
          anyOf:
            - type: integer
            - type: 'null'
          title: Active Duration Days
        first_seen_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: First Seen At
        last_seen_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Seen At
        is_current:
          type: boolean
          title: Is Current
          default: false
      type: object
      required:
        - id
      title: AdLibraryAdVariant
      description: >-
        One member of an ad's collation group (Facebook "collective data").


        The ad-detail page lists these instead of re-rendering each variant's

        creative: they're the same image/video + text, so the useful thing is
        the

        per-variant Library ID linking out to Facebook's Ad Library.
    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
    AdLibraryTranscriptPhrase:
      properties:
        text:
          type: string
          title: Text
        start_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: Start Ms
        end_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: End Ms
        speaker:
          anyOf:
            - type: string
            - type: 'null'
          title: Speaker
        locale:
          anyOf:
            - type: string
            - type: 'null'
          title: Locale
      type: object
      required:
        - text
      title: AdLibraryTranscriptPhrase
      description: >-
        One transcript phrase with timing + speaker/locale (Content
        Understanding).
    BrandClassification:
      properties:
        primary_industry:
          anyOf:
            - type: string
            - type: 'null'
          title: Primary Industry
        industries:
          items:
            type: string
          type: array
          title: Industries
        business_models:
          items:
            type: string
          type: array
          title: Business Models
        version:
          anyOf:
            - type: string
            - type: 'null'
          title: Version
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
        classified_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Classified At
        needs_review:
          type: boolean
          title: Needs Review
          default: false
      type: object
      title: BrandClassification
      description: >-
        A versioned multi-label brand classification.


        Industries describe what the brand sells or does. Business models
        describe

        how it operates independently of industry. Keeping those dimensions

        separate prevents the historical ``E-Commerce`` pseudo-industry from

        replacing the brand's real product industry.
    AdLibraryAssetSummary:
      properties:
        id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Id
        kind:
          type: string
          title: Kind
        url:
          type: string
          title: Url
        url_source:
          type: string
          title: Url Source
          default: source
        content_hash:
          anyOf:
            - type: string
            - type: 'null'
          title: Content Hash
        width:
          anyOf:
            - type: integer
            - type: 'null'
          title: Width
        height:
          anyOf:
            - type: integer
            - type: 'null'
          title: Height
        mime_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Mime Type
        raw_data:
          additionalProperties: true
          type: object
          title: Raw Data
      type: object
      required:
        - kind
        - url
      title: AdLibraryAssetSummary
    AdLibraryMediaVariantSummary:
      properties:
        media_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Media Url
        headline:
          anyOf:
            - type: string
            - type: 'null'
          title: Headline
        body_text:
          anyOf:
            - type: string
            - type: 'null'
          title: Body Text
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        cta:
          anyOf:
            - type: string
            - type: 'null'
          title: Cta
        link_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Link Url
        display_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Url
      type: object
      title: AdLibraryMediaVariantSummary
    AdLibraryMetaDetails:
      properties:
        page_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Page Name
        poster_page_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Poster Page Name
        page_profile_picture_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Page Profile Picture Url
        countries:
          items:
            type: string
          type: array
          title: Countries
        delivery_stop_time:
          anyOf:
            - type: string
            - type: 'null'
          title: Delivery Stop Time
        running_summary_text:
          anyOf:
            - type: string
            - type: 'null'
          title: Running Summary Text
        media_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Media Type
        cards:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Cards
        branded_content:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Branded Content
        is_aaa_eligible:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Aaa Eligible
        aaa_info_absent:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Aaa Info Absent
        page_profile:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryMetaPageProfile'
            - type: 'null'
      type: object
      title: AdLibraryMetaDetails
      description: |-
        Meta transparency data projected out of stored provider payloads.

        ``publisher_platforms`` deliberately lives ONLY on the top-level ad
        (normalized column) — not repeated here.
    AdLibraryLinkedInDetails:
      properties:
        posting_page_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Posting Page Name
        advertiser_logo_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Advertiser Logo Url
        company_page_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Company Page Url
        company_page_handle:
          anyOf:
            - type: string
            - type: 'null'
          title: Company Page Handle
        poster_entity_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Poster Entity Type
        restricted:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Restricted
        ad_format:
          anyOf:
            - type: string
            - type: 'null'
          title: Ad Format
        ad_duration:
          anyOf:
            - type: string
            - type: 'null'
          title: Ad Duration
        start_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Start Date
        end_date:
          anyOf:
            - type: string
            - type: 'null'
          title: End Date
        total_impressions:
          anyOf:
            - type: string
            - type: 'null'
          title: Total Impressions
        impressions_by_country:
          items:
            $ref: '#/components/schemas/AdLibraryLinkedInCountryImpressions'
          type: array
          title: Impressions By Country
        targeting:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryLinkedInTargeting'
            - type: 'null'
        paid_for_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Paid For By
        promoted_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Promoted By
        destination_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Destination Url
        media_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Media Type
        carousel_page_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Carousel Page Count
        transparency_expected:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Transparency Expected
        commentary_links:
          items:
            type: string
          type: array
          title: Commentary Links
      type: object
      title: AdLibraryLinkedInDetails
      description: |-
        LinkedIn transparency data projected out of stored provider payloads.

        Server-side twin of the frontend's ad-hoc payload mining — built by
        scanning ALL payload rows newest-first, so detail-phase transparency
        (impressions, targeting) survives even when the newest stored row is a
        list-phase fetch.
    AdLibraryTikTokDetails:
      properties:
        impression:
          anyOf:
            - type: integer
            - type: string
            - type: 'null'
          title: Impression
        unique_users_seen:
          anyOf:
            - type: integer
            - type: string
            - type: 'null'
          title: Unique Users Seen
        first_shown:
          anyOf:
            - type: string
            - type: 'null'
          title: First Shown
        last_shown:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Shown
        advertising_objective:
          anyOf:
            - type: string
            - type: 'null'
          title: Advertising Objective
        advertiser_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Advertiser Name
        advertiser_business_ids:
          items:
            type: string
          type: array
          title: Advertiser Business Ids
        paid_for_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Paid For By
        registered_location:
          anyOf:
            - type: string
            - type: 'null'
          title: Registered Location
        ad_caption:
          anyOf:
            - type: string
            - type: 'null'
          title: Ad Caption
        call_to_action:
          anyOf:
            - type: string
            - type: 'null'
          title: Call To Action
        external_website_url:
          anyOf:
            - type: string
            - type: 'null'
          title: External Website Url
        download_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Download Url
        topic:
          anyOf:
            - type: string
            - type: 'null'
          title: Topic
        tiktok_username:
          anyOf:
            - type: string
            - type: 'null'
          title: Tiktok Username
        tiktok_profile_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Tiktok Profile Url
        tiktok_avatar_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Tiktok Avatar Url
        tiktok_follower_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Tiktok Follower Count
        targeting:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryTikTokTargeting'
            - type: 'null'
      type: object
      title: AdLibraryTikTokDetails
      description: TikTok ad-library detail data projected from the public API.
    AdLibraryGoogleDetails:
      properties:
        format:
          anyOf:
            - type: string
            - type: 'null'
          title: Format
        ad_channel:
          anyOf:
            - type: string
            - type: 'null'
          title: Ad Channel
        advertiser_transparency_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Advertiser Transparency Id
        last_shown:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Shown
        verified:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Verified
        position:
          anyOf:
            - type: integer
            - type: 'null'
          title: Position
        youtube_video_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Youtube Video Id
        youtube_watch_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Youtube Watch Url
      type: object
      title: AdLibraryGoogleDetails
      description: Google transparency data projected out of stored provider payloads.
    AdLibraryAaaCountryReach:
      properties:
        country:
          anyOf:
            - type: string
            - type: 'null'
          title: Country
        age_gender_breakdowns:
          items:
            $ref: '#/components/schemas/AdLibraryAaaAgeGenderReach'
          type: array
          title: Age Gender Breakdowns
      type: object
      title: AdLibraryAaaCountryReach
      description: Per-country EU DSA reach, split by age bracket + gender.
    AdLibraryAaaPayerBeneficiary:
      properties:
        payer:
          anyOf:
            - type: string
            - type: 'null'
          title: Payer
        beneficiary:
          anyOf:
            - type: string
            - type: 'null'
          title: Beneficiary
      type: object
      title: AdLibraryAaaPayerBeneficiary
    AdLibraryMetaPageProfile:
      properties:
        facebook_page_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Facebook Page Id
        facebook_page_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Facebook Page Name
        facebook_page_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Facebook Page Url
        page_category:
          anyOf:
            - type: string
            - type: 'null'
          title: Page Category
        facebook_page_follower_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Facebook Page Follower Count
        instagram_page_slug:
          anyOf:
            - type: string
            - type: 'null'
          title: Instagram Page Slug
        instagram_page_follower_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Instagram Page Follower Count
        about_text:
          anyOf:
            - type: string
            - type: 'null'
          title: About Text
        ad_library_results_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ad Library Results Count
        ad_library_results_count_text:
          anyOf:
            - type: string
            - type: 'null'
          title: Ad Library Results Count Text
      type: object
      title: AdLibraryMetaPageProfile
      description: Advertiser page profile captured alongside Meta ad-library scrapes.
    AdLibraryLinkedInCountryImpressions:
      properties:
        country:
          anyOf:
            - type: string
            - type: 'null'
          title: Country
        impressions:
          anyOf:
            - type: string
            - type: 'null'
          title: Impressions
      type: object
      title: AdLibraryLinkedInCountryImpressions
      description: LinkedIn per-country impressions share (percentage string, e.g. "<1%").
    AdLibraryLinkedInTargeting:
      properties:
        language:
          anyOf:
            - type: string
            - type: 'null'
          title: Language
        location:
          anyOf:
            - type: string
            - type: 'null'
          title: Location
        parameters:
          items:
            $ref: '#/components/schemas/AdLibraryLinkedInTargetingParameter'
          type: array
          title: Parameters
        raw_text:
          anyOf:
            - type: string
            - type: 'null'
          title: Raw Text
      type: object
      title: AdLibraryLinkedInTargeting
      description: LinkedIn DSA targeting block scraped from the ad's detail page.
    AdLibraryTikTokTargeting:
      properties:
        reach_by_location_age_gender:
          items:
            $ref: '#/components/schemas/AdLibraryTikTokReachRow'
          type: array
          title: Reach By Location Age Gender
        total_impressions:
          anyOf:
            - type: integer
            - type: string
            - type: 'null'
          title: Total Impressions
        total_regions:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Regions
        locations:
          items:
            type: string
          type: array
          title: Locations
        ages:
          items:
            type: string
          type: array
          title: Ages
        genders:
          items:
            type: string
          type: array
          title: Genders
        languages:
          items:
            type: string
          type: array
          title: Languages
        high_spending_power:
          anyOf:
            - type: boolean
            - type: 'null'
          title: High Spending Power
        audiences:
          items:
            type: string
          type: array
          title: Audiences
        excluded_audiences:
          items:
            type: string
          type: array
          title: Excluded Audiences
        interest_targeting_categories:
          items:
            type: string
          type: array
          title: Interest Targeting Categories
        creator_interactions:
          items:
            type: string
          type: array
          title: Creator Interactions
        video_interactions:
          items:
            type: string
          type: array
          title: Video Interactions
        devices:
          items:
            type: string
          type: array
          title: Devices
        operating_systems:
          items:
            type: string
          type: array
          title: Operating Systems
        cities:
          items:
            type: string
          type: array
          title: Cities
        provinces:
          items:
            type: string
          type: array
          title: Provinces
        countries:
          items:
            type: string
          type: array
          title: Countries
      type: object
      title: AdLibraryTikTokTargeting
      description: TikTok targeting summary and additional-parameters block.
    AdLibraryAaaAgeGenderReach:
      properties:
        age_range:
          anyOf:
            - type: string
            - type: 'null'
          title: Age Range
        male:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Male
        female:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Female
        unknown:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Unknown
      type: object
      title: AdLibraryAaaAgeGenderReach
      description: One age-bracket row of the EU DSA reach breakdown for a country.
    AdLibraryLinkedInTargetingParameter:
      properties:
        parameter:
          anyOf:
            - type: string
            - type: 'null'
          title: Parameter
        targeted:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Targeted
        excluded:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Excluded
      type: object
      title: AdLibraryLinkedInTargetingParameter
      description: One row of LinkedIn's DSA "Ad Targeting" table.
    AdLibraryTikTokReachRow:
      properties:
        location:
          anyOf:
            - type: string
            - type: 'null'
          title: Location
        age:
          anyOf:
            - type: string
            - type: 'null'
          title: Age
        gender:
          anyOf:
            - type: string
            - type: 'null'
          title: Gender
        reach:
          anyOf:
            - type: integer
            - type: string
            - type: 'null'
          title: Reach
      type: object
      title: AdLibraryTikTokReachRow
      description: One row in TikTok's location / age / gender reach table.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````