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

> Return one global advertiser with source accounts and recent ads.



## OpenAPI

````yaml /openapi.json get /api/v1/ad-library/advertisers/{advertiser_id}
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/ad-library/advertisers/{advertiser_id}:
    get:
      tags:
        - Ad Library
        - Ad Library
      summary: Get Global Ad Library Advertiser
      description: Return one global advertiser with source accounts and recent ads.
      operationId: >-
        get_global_ad_library_advertiser_api_v1_ad_library_advertisers__advertiser_id__get
      parameters:
        - name: advertiser_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Advertiser Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdLibraryAdvertiserDetail'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    AdLibraryAdvertiserDetail:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        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
        brand_classification:
          anyOf:
            - $ref: '#/components/schemas/BrandClassification'
            - type: 'null'
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
        viewer_is_admin:
          type: boolean
          title: Viewer Is Admin
          default: false
        partners:
          items:
            $ref: '#/components/schemas/AdLibraryPartnerSummary'
          type: array
          title: Partners
        last_top_ads_fetch_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Top Ads Fetch At
        source_accounts:
          items:
            $ref: '#/components/schemas/AdLibrarySourceAccountSummary'
          type: array
          title: Source Accounts
        ad_count:
          type: integer
          title: Ad Count
          default: 0
        ad_signals:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryAdSignals'
            - type: 'null'
        eu_transparency:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryEuTransparency'
            - type: 'null'
        brand_profiles:
          items:
            $ref: '#/components/schemas/AdLibraryBrandProfile'
          type: array
          title: Brand Profiles
        top_ads:
          items:
            $ref: '#/components/schemas/AdLibrarySearchAd'
          type: array
          title: Top Ads
        recent_ads:
          items:
            $ref: '#/components/schemas/AdLibrarySearchAd'
          type: array
          title: Recent Ads
        provenance:
          additionalProperties:
            anyOf:
              - type: string
              - type: 'null'
          type: object
          title: Provenance
      type: object
      required:
        - id
        - name
      title: AdLibraryAdvertiserDetail
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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.
    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
    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
    AdLibraryAdSignals:
      properties:
        total_ads:
          type: integer
          title: Total Ads
          default: 0
        active_ads:
          type: integer
          title: Active Ads
          default: 0
        inactive_ads:
          type: integer
          title: Inactive Ads
          default: 0
        dated_ads:
          type: integer
          title: Dated Ads
          default: 0
        themed_ads:
          type: integer
          title: Themed Ads
          default: 0
        new_ads_30d:
          type: integer
          title: New Ads 30D
          default: 0
        new_ads_14d:
          type: integer
          title: New Ads 14D
          default: 0
        new_ads_7d:
          type: integer
          title: New Ads 7D
          default: 0
        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
        longest_active_days:
          anyOf:
            - type: integer
            - type: 'null'
          title: Longest Active Days
        avg_active_days:
          anyOf:
            - type: number
            - type: 'null'
          title: Avg Active Days
        run_length_measured_ads:
          type: integer
          title: Run Length Measured Ads
          default: 0
        distinct_concepts:
          type: integer
          title: Distinct Concepts
          default: 0
        avg_video_duration_seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Avg Video Duration Seconds
        platforms:
          items:
            $ref: '#/components/schemas/AdLibraryCountBucket'
          type: array
          title: Platforms
        formats:
          items:
            $ref: '#/components/schemas/AdLibraryCountBucket'
          type: array
          title: Formats
        landing_domains:
          items:
            $ref: '#/components/schemas/AdLibraryCountBucket'
          type: array
          title: Landing Domains
        landing_pages:
          items:
            $ref: '#/components/schemas/AdLibraryCountBucket'
          type: array
          title: Landing Pages
        hooks:
          items:
            $ref: '#/components/schemas/AdLibraryCountBucket'
          type: array
          title: Hooks
        ctas:
          items:
            $ref: '#/components/schemas/AdLibraryCountBucket'
          type: array
          title: Ctas
        countries:
          items:
            $ref: '#/components/schemas/AdLibraryCountBucket'
          type: array
          title: Countries
        languages:
          items:
            $ref: '#/components/schemas/AdLibraryCountBucket'
          type: array
          title: Languages
        industries:
          items:
            $ref: '#/components/schemas/AdLibraryCountBucket'
          type: array
          title: Industries
        themes:
          items:
            $ref: '#/components/schemas/AdLibraryCountBucket'
          type: array
          title: Themes
        launched_by_month:
          items:
            $ref: '#/components/schemas/AdLibraryMonthBucket'
          type: array
          title: Launched By Month
      type: object
      title: AdLibraryAdSignals
      description: >-
        Full-history rollups over ALL of an advertiser's stored ads.


        Server-computed so the Full Brand Page shows true totals — the previous

        client-side derivation only saw the capped ``recent_ads`` window, which

        made "first ad seen" and every distribution chip wrong for any
        advertiser

        with more than one page of ads. Bucket semantics mirror the Explore

        surfaces: ``platforms`` uses the same Meta publisher-platform expansion
        as

        the pill counts, ``landing_domains`` the same domain normalization as
        the

        ``landing_domain`` filter.
    AdLibraryEuTransparency:
      properties:
        ads_with_eu_data:
          type: integer
          title: Ads With Eu Data
          default: 0
        sampled:
          type: boolean
          title: Sampled
          default: false
        targets_eu_ads:
          type: integer
          title: Targets Eu Ads
          default: 0
        taken_down_ads:
          type: integer
          title: Taken Down Ads
          default: 0
        total_eu_reach:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Eu Reach
        max_ad_eu_reach:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Ad Eu Reach
        reach_by_country:
          items:
            $ref: '#/components/schemas/AdLibraryEuCountryReach'
          type: array
          title: Reach By Country
        age_gender_reach:
          items:
            $ref: '#/components/schemas/AdLibraryAaaAgeGenderReach'
          type: array
          title: Age Gender Reach
        payer_beneficiaries:
          items:
            $ref: '#/components/schemas/AdLibraryEuPayerBeneficiaryCount'
          type: array
          title: Payer Beneficiaries
      type: object
      title: AdLibraryEuTransparency
      description: >-
        Meta EU DSA transparency aggregated across an advertiser's ads.


        Built from the per-ad ``aaa_info`` blocks (newest detail payload per
        ad).

        Only present when at least one of the advertiser's ads carries EU data;

        ``sampled`` is True when the payload scan hit its cap, meaning the
        totals

        cover a newest-first subset rather than every ad.
    AdLibraryBrandProfile:
      properties:
        platform:
          type: string
          title: Platform
        source_account_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Source Account 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
        page_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Page Id
        category:
          anyOf:
            - type: string
            - type: 'null'
          title: Category
        industry:
          anyOf:
            - type: string
            - type: 'null'
          title: Industry
        about:
          anyOf:
            - type: string
            - type: 'null'
          title: About
        tagline:
          anyOf:
            - type: string
            - type: 'null'
          title: Tagline
        website:
          anyOf:
            - type: string
            - type: 'null'
          title: Website
        verified:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Verified
        followers:
          anyOf:
            - type: integer
            - type: 'null'
          title: Followers
        likes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Likes
        following:
          anyOf:
            - type: integer
            - type: 'null'
          title: Following
        post_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Post Count
        video_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Video Count
        employee_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Employee Count
        company_size:
          anyOf:
            - type: string
            - type: 'null'
          title: Company Size
        headquarters:
          anyOf:
            - type: string
            - type: 'null'
          title: Headquarters
        founded:
          anyOf:
            - type: string
            - type: 'null'
          title: Founded
        organization_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Organization Type
        specialties:
          items:
            type: string
          type: array
          title: Specialties
        avatar_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Avatar Url
        cover_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Cover Url
      type: object
      required:
        - platform
      title: AdLibraryBrandProfile
      description: >-
        Typed per-platform brand profile projected from stored scrape data.


        Merges the advertiser's ad-vetted ``social_profiles`` metadata, the

        per-platform ``*_profile`` blobs on source accounts, and the
        advertiser's

        scalar Facebook/Instagram metadata keys into one clean card per platform
        —

        so the Full Brand Page renders real fields instead of raw JSON dumps.
    AdLibrarySearchAd:
      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
        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
        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
        industry:
          anyOf:
            - type: string
            - type: 'null'
          title: Industry
        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
        advertiser:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryAdvertiserSummary'
            - type: 'null'
        source_account:
          anyOf:
            - $ref: '#/components/schemas/AdLibrarySourceAccountSummary'
            - type: 'null'
        creative:
          anyOf:
            - $ref: '#/components/schemas/AdLibraryCreativeSummary'
            - type: 'null'
        creative_count:
          type: integer
          title: Creative Count
          default: 0
        variant_count:
          type: integer
          title: Variant Count
          default: 1
        provenance:
          additionalProperties:
            anyOf:
              - type: string
              - type: 'null'
          type: object
          title: Provenance
      type: object
      required:
        - id
        - provider
        - platform
        - source_ad_key
        - status
      title: AdLibrarySearchAd
    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
    AdLibraryCountBucket:
      properties:
        key:
          type: string
          title: Key
        count:
          type: integer
          minimum: 0
          title: Count
          default: 0
        image_count:
          type: integer
          minimum: 0
          title: Image Count
          default: 0
        video_count:
          type: integer
          minimum: 0
          title: Video Count
          default: 0
        other_count:
          type: integer
          minimum: 0
          title: Other Count
          default: 0
      type: object
      required:
        - key
      title: AdLibraryCountBucket
      description: >-
        One distribution bucket of an advertiser's ads (e.g. platform → count).


        ``count`` is unchanged: every ad that falls in this bucket, regardless
        of

        creative format. The three ``*_count`` fields split that same total by
        the

        ad's SINGLE format class (see

        ``advertiser_signals.format_class_for_ad``) so the INSIGHTS tab can
        render

        an image/video/other stack, or filter to one class, without a second
        round

        trip.


        INVARIANT: ``image_count + video_count + other_count == count``.

        Producers that cannot classify must leave all three at 0 AND set count
        to 0.
    AdLibraryMonthBucket:
      properties:
        month:
          type: string
          title: Month
        count:
          type: integer
          minimum: 0
          title: Count
          default: 0
      type: object
      required:
        - month
      title: AdLibraryMonthBucket
      description: Ads launched in one ``YYYY-MM`` month (advertiser ad-velocity series).
    AdLibraryEuCountryReach:
      properties:
        country:
          type: string
          title: Country
        reach:
          type: integer
          minimum: 0
          title: Reach
          default: 0
      type: object
      required:
        - country
      title: AdLibraryEuCountryReach
      description: Summed EU DSA reach for one country across an advertiser's ads.
    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.
    AdLibraryEuPayerBeneficiaryCount:
      properties:
        payer:
          anyOf:
            - type: string
            - type: 'null'
          title: Payer
        beneficiary:
          anyOf:
            - type: string
            - type: 'null'
          title: Beneficiary
        ad_count:
          type: integer
          minimum: 0
          title: Ad Count
          default: 0
      type: object
      title: AdLibraryEuPayerBeneficiaryCount
      description: One distinct (payer, beneficiary) pair with the number of ads it funds.
    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
    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
    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.
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````