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

# Company Ads

> Get public ads for a company from the Google Ad Transparency Library. Only publicly accessible ads are returned — login-gated ads cannot be retrieved. Ad text is extracted via OCR, so response times may be slightly longer.

<Note>
  💳 **1 credit** per request
</Note>


## OpenAPI

````yaml GET /v1/scrape/google-ad-library/company-ads
openapi: 3.1.0
info:
  title: SociaVault API
  version: 1.0.0
  description: >-
    # SociaVault API Documentation


    The SociaVault API provides comprehensive access to social media data
    extraction across multiple platforms.


    ## Features


    - **Multi-Platform Support**: TikTok, Instagram, YouTube, Facebook, Twitter,
    Reddit, Threads, and more

    - **Credit-Based System**: Pay-as-you-go pricing with transparent credit
    costs

    - **High Performance**: Fast, reliable data extraction

    - **Comprehensive Data**: Detailed user profiles, videos, posts, comments,
    and analytics


    ## Authentication


    All API requests require authentication using an API key in the `X-API-Key`
    header:


    ```bash

    X-API-Key: sk_live_your_api_key_here

    ```


    Get your API key from the [SociaVault
    Dashboard](https://sociavault.com/dashboard).


    ## Credits


    Each endpoint consumes credits based on data complexity:

    - Simple requests (profiles): 1 credit

    - Complex requests (demographics): 20+ credits

    - Paginated requests: Credits per page


    Check your credit balance in the dashboard or via the API.


    ## Support


    - **Documentation**: https://docs.sociavault.com

    - **Email**: support@sociavault.com

    - **Discord**: https://discord.gg/sociavault
  contact:
    name: SociaVault Support
    email: support@sociavault.com
    url: https://sociavault.com/support
  license:
    name: Commercial
    url: https://sociavault.com/terms
servers:
  - url: https://api.sociavault.com
    description: Production API
security:
  - ApiKeyAuth: []
tags:
  - name: account
    description: Account management and credit balance
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/account
  - name: tiktok
    description: Scrape TikTok profiles, videos, and more
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/tiktok
  - name: tiktok-shop
    description: Everything about TikTok Shop
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/tiktok-shop
  - name: instagram
    description: Gets Instagram profiles, posts, and reels
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/instagram
  - name: youtube
    description: Scrape YouTube channels, videos, and more
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/youtube
  - name: linkedin
    description: Scrape LinkedIn
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/linkedin
  - name: facebook
    description: Get public Facebook profiles and posts
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/facebook
  - name: facebookAdLibrary
    description: Scrapes the Facebook (Meta) Ad Library
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/facebookAdLibrary
  - name: facebookMarketplace
    description: Search Facebook Marketplace and pull full listing details
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/facebookMarketplace
  - name: googleAdLibrary
    description: >-
      Scrape the Google Ad Transparency Library. *This only gets the public ads.
      Some ads you need to log in for and sadly we can't get those. Also, since
      there are so many variations, the return types might not all be 100% the
      same.
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/googleAdLibrary
  - name: linkedinAdLibrary
    description: Search the LinkedIn Ad Library
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/linkedinAdLibrary
  - name: twitter
    description: Get Twitter profiles, tweets, followers and more
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/twitter
  - name: reddit
    description: Scrape Reddit posts and comments
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/reddit
  - name: threads
    description: Get Threads posts
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/threads
  - name: google
    description: Scrape Google search results
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/google
paths:
  /v1/scrape/google-ad-library/company-ads:
    get:
      tags:
        - googleAdLibrary
      summary: Company Ads
      description: >-
        Get public ads for a company from the Google Ad Transparency Library.
        Only publicly accessible ads are returned — login-gated ads cannot be
        retrieved. Ad text is extracted via OCR, so response times may be
        slightly longer.
      operationId: googleAdLibrary_Company_Ads
      parameters:
        - name: domain
          in: query
          description: The domain of the company
          required: false
          schema:
            type: string
            example: lululemon.com
        - name: advertiser_id
          in: query
          description: The advertiser id of the company
          required: false
          schema:
            type: string
            example: AR01614014350098432001
        - name: topic
          in: query
          description: >-
            The topic to search for. If you search for 'political', you will
            also need to pass a 'region', like 'US' or 'AU'
          required: false
          schema:
            type: string
            enum:
              - all
              - political
            example: all
        - name: region
          in: query
          description: The region to search for. Defaults to anywhere
          required: false
          schema:
            type: string
            example: US
        - name: start_date
          in: query
          description: 'Start date to search for. Format: YYYY-MM-DD'
          required: false
          schema:
            type: string
            example: '2025-08-01'
        - name: end_date
          in: query
          description: 'End date to search for. Format: YYYY-MM-DD'
          required: false
          schema:
            type: string
            example: '2025-08-11'
        - name: cursor
          in: query
          description: Cursor to paginate through results
          required: false
          schema:
            type: string
            example: CgoAP7znOo9RPjf%2FEhD5utgx8m75NrTTbU0AAAAAGgn8%2BJyW%2BJQK40A%3D
      responses:
        '200':
          description: >-
            Successful response


            **Key Response Fields:**

            - `ads[0].advertiserId`: Unique advertiser identifier (e.g.
            `AR01614014350098432001`)

            - `ads[0].creativeId`: Unique creative identifier (e.g.
            `CR16304891583101140993`)

            - `ads[0].format`: Ad format type (`image`, `video`, `text`)

            - `ads[0].adUrl`: Direct link to the ad on Google Ads Transparency

            - `ads[0].advertiserName`: Display name of the advertiser

            - `ads[0].domain`: Advertiser's domain (e.g. `lululemon.com`)

            - `ads[0].imageUrl`: URL of the ad's image (may be `null`)

            - `ads[0].firstShown`: ISO 8601 timestamp of when the ad first ran

            - `ads[0].lastShown`: ISO 8601 timestamp of when the ad last ran

            - `cursor`: Opaque token to paginate to the next page of results
          content:
            application/json:
              example:
                success: true
                data:
                  success: true
                  ads:
                    '0':
                      advertiserId: AR01614014350098432001
                      creativeId: CR16304891583101140993
                      format: image
                      adUrl: >-
                        https://adstransparency.google.com/advertiser/AR01614014350098432001/creative/CR16304891583101140993
                      advertiserName: lululemon athletica canada inc.
                      domain: lululemon.com
                      imageUrl: null
                      firstShown: '2026-01-13T21:55:14.000Z'
                      lastShown: '2026-02-08T23:43:47.000Z'
                  cursor: >-
                    CgoAP7zm1p%2BmCBpjEhBHJahAmRTF8HhdvzwAAAAAGgn8%2BH7I%2BNOQAlw%3D
                creditsUsed: 1
        '400':
          description: Bad Request - Invalid parameters or missing required fields
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: 'Missing required parameter: handle'
                  endpoint:
                    type: string
                  credits_required:
                    type: integer
                required:
                  - error
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Invalid API key
                  docs:
                    type: string
                    example: https://docs.sociavault.com/authentication
                required:
                  - error
        '402':
          description: Payment Required - Insufficient credits
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Insufficient credits
                  required:
                    type: integer
                    example: 1
                    description: Credits required for this request
                  available:
                    type: integer
                    example: 0
                    description: Credits currently available
                required:
                  - error
                  - required
                  - available
        '500':
          description: Internal Server Error - Service configuration or processing error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Service configuration error
                required:
                  - error
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: |-
        API key for authentication. Format: `sk_live_xxxxxxxxxxxxx`

        Get your API key from the [Dashboard](https://sociavault.com/dashboard).

````