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

# /google/ads

> Get full details of a single Google Ads Transparency Center ad creative by URL or advertiser/creative composite. Returns advertiser, format, regions, image/video/preview, and for political ads — spend range, impressions, targeting, per-region statistics.

**Price:** 1 credit

**⚠️ Common errors:** 412: Ad not found. Verify the URL or advertiser_id+creative_id+region combination.



## OpenAPI

````yaml /openapi/ad-transparency.json post /api/google/ads
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/google/ads:
    post:
      tags:
        - /google/ads
      summary: /google/ads
      description: >-
        Get full details of a single Google Ads Transparency Center ad creative
        by URL or advertiser/creative composite. Returns advertiser, format,
        regions, image/video/preview, and for political ads — spend range,
        impressions, targeting, per-region statistics.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: Ad not found. Verify the URL or
        advertiser_id+creative_id+region combination.
      operationId: __api_google_ads_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GoogleAdsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GoogleAd'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GoogleAdsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        ad:
          type: string
          minLength: 1
        region:
          anyOf:
            - $ref: '#/components/schemas/GoogleAdRegion'
            - type: 'null'
      type: object
      required:
        - ad
    GoogleAd:
      properties:
        '@type':
          type: string
          default: GoogleAd
        id:
          type: string
        advertiser_id:
          type: string
        advertiser_name:
          anyOf:
            - type: string
            - type: 'null'
        topic:
          $ref: '#/components/schemas/GoogleAdTopic'
        format:
          $ref: '#/components/schemas/GoogleAdFormat'
        regions:
          items:
            type: string
          type: array
          default: []
        first_shown_at:
          anyOf:
            - type: integer
            - type: 'null'
        last_shown_at:
          anyOf:
            - type: integer
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        video_url:
          anyOf:
            - type: string
            - type: 'null'
        preview_url:
          anyOf:
            - type: string
            - type: 'null'
        impressions_max:
          anyOf:
            - type: integer
            - type: 'null'
        days_shown:
          anyOf:
            - type: integer
            - type: 'null'
        total_days:
          anyOf:
            - type: integer
            - type: 'null'
        spend_low:
          anyOf:
            - type: number
            - type: 'null'
        spend_high:
          anyOf:
            - type: number
            - type: 'null'
        currency:
          anyOf:
            - type: string
            - type: 'null'
        targeting:
          anyOf:
            - $ref: '#/components/schemas/GoogleAdTargeting'
            - type: 'null'
        per_region:
          items:
            $ref: '#/components/schemas/GoogleAdRegionStat'
          type: array
          default: []
      type: object
      required:
        - id
        - advertiser_id
        - topic
        - format
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    GoogleAdRegion:
      type: string
      enum:
        - US
        - GB
        - CA
        - AU
        - DE
        - FR
        - IT
        - ES
        - NL
        - SE
        - JP
        - PL
        - AT
        - BE
        - BR
        - CH
        - CZ
        - DK
        - FI
        - GR
        - HK
        - HU
        - IE
        - IL
        - IN
        - KR
        - MX
        - MY
        - 'NO'
        - NZ
        - PH
        - PR
        - PT
        - RO
        - SG
        - TH
        - TR
        - TW
        - UA
        - VI
        - ZA
    GoogleAdTopic:
      type: string
      enum:
        - commercial
        - political
    GoogleAdFormat:
      type: string
      enum:
        - text
        - image
        - video
        - html5
        - other
    GoogleAdTargeting:
      properties:
        '@type':
          type: string
          default: GoogleAdTargeting
        regions:
          items:
            type: string
          type: array
          default: []
        age_min:
          anyOf:
            - type: integer
            - type: 'null'
        age_max:
          anyOf:
            - type: integer
            - type: 'null'
        genders:
          items:
            type: string
          type: array
          default: []
        parental_status:
          items:
            type: string
          type: array
          default: []
      type: object
    GoogleAdRegionStat:
      properties:
        '@type':
          type: string
          default: GoogleAdRegionStat
        region:
          type: string
        impressions_max:
          anyOf:
            - type: integer
            - type: 'null'
        first_shown_date:
          anyOf:
            - type: string
            - type: 'null'
        last_shown_date:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - region
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````