{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency & Winner Scraper Pro",
    "description": "Extract competitor Google Search, Display & YouTube Ads from Google Ads Transparency Center. Get 90+ day observed ad-span candidates, decoded ad copy, MP4 video links, Ad-Group scaling counts & B2B summaries — $0 proxy cost, from $1.50/1k base ads ($4.00/1k details, $2.50/1k advertisers).",
    "version": "1.2",
    "x-build-id": "4LsOAfMMA3Ca5eRGv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/voxatools~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-voxatools-google-ads-transparency-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/voxatools~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-voxatools-google-ads-transparency-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/voxatools~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-voxatools-google-ads-transparency-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "resultType": {
            "title": "1. Output Mode (Ad Creatives vs. B2B Lead-Gen Advertiser Check)",
            "enum": [
              "ads",
              "advertisers"
            ],
            "type": "string",
            "description": "Select 'ads' (default) when you want to extract full competitor ad creatives, decoded headlines, ad copy, video URLs, and Observed Date-Span Tiers ($1.50/1k base ads; optional includeDetails +$2.50/1k = $4.00/1k, downloadAssets +$1.00/1k). Select 'advertisers' for B2B Lead-Gen Ad-Check mode to quickly verify if a list of company domains is actively running Google Ads (1 summary row per domain, $2.50/1k advertisers effective total).",
            "default": "ads"
          },
          "queries": {
            "title": "2. Competitor Domains, Brand Names, Advertiser IDs, or Transparency URLs",
            "type": "array",
            "description": "List of target queries to inspect. Accepts root website domains (e.g., 'shopify.com', 'hubspot.com'), brand names (e.g., 'Nike'), Google Advertiser IDs (e.g., 'AR01625195283841286145'), or full adstransparency.google.com URLs.",
            "items": {
              "type": "string"
            }
          },
          "creative_id": {
            "title": "3. Specific Creative ID Lookup (CR..., Optional)",
            "type": "string",
            "description": "Optional full creative URL (/advertiser/AR.../creative/CR...), 'AR.../CR...' pair, or specific 'CR...' Creative ID (paired with its domain/advertiser in 'queries') to inspect a single ad creative directly without scanning the entire domain."
          },
          "urlsFromFile": {
            "title": "4. Bulk Import from CSV / TXT URL or Google Sheet Link (Optional)",
            "type": "string",
            "description": "Paste a public Google Sheet link, a URL to a .csv / .txt file, or a comma/newline-separated list of domains to merge with 'queries'."
          },
          "region": {
            "title": "4. Target Country / Region",
            "enum": [
              "ALL",
              "US",
              "GB",
              "CA",
              "AU",
              "DE",
              "FR",
              "NL",
              "ES",
              "IT",
              "PL",
              "SE",
              "CH",
              "SG",
              "VN",
              "JP",
              "KR",
              "IN",
              "BR",
              "MX",
              "AE",
              "ZA"
            ],
            "type": "string",
            "description": "Filter ads shown in a specific country (ISO-2 code like US, GB, DE, FR, VN, SG, AU, CA, JP) or select 'ALL' for global ads.",
            "default": "US"
          },
          "adFormat": {
            "title": "5. Ad Creative Format",
            "enum": [
              "ALL",
              "TEXT",
              "IMAGE",
              "VIDEO"
            ],
            "type": "string",
            "description": "Filter by ad creative format: All formats, Text Search Ads, Image Display Ads, or Video/YouTube Ads.",
            "default": "ALL"
          },
          "platforms": {
            "title": "6. Google Surface Platforms Filter (Optional)",
            "type": "array",
            "description": "Filter ads by specific Google properties where the ad was served: SEARCH, YOUTUBE, SHOPPING, MAPS, or PLAY. Leave empty for all properties.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "political": {
            "title": "7. 🏛️ Political & Election Ads Only Filter (Optional)",
            "type": "boolean",
            "description": "Set to true when researching political, election, or social-issue advertisers (e.g., 'ActBlue', 'WinRed'). Filters Google Ads Transparency Center strictly for verified political ads.",
            "default": false
          },
          "startDate": {
            "title": "8. Start Date Filter (YYYY-MM-DD, Optional)",
            "type": "string",
            "description": "Only return ads active on or after this date (e.g. '2026-01-01')."
          },
          "endDate": {
            "title": "9. End Date Filter (YYYY-MM-DD, Optional)",
            "type": "string",
            "description": "Only return ads active on or before this date (e.g. '2026-12-31')."
          },
          "maxAdsPerQuery": {
            "title": "10. Max Ads per Query / Domain",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of ad creatives to extract per domain/advertiser query.",
            "default": 20
          },
          "onlyLongRunningWinners": {
            "title": "11. 🏆 Only Long-Span 'Winning Ads' Candidates (30+ Days Observed Date Span)",
            "type": "boolean",
            "description": "Set to true to prioritize creatives with an observed calendar span (observedDateSpanDays / daysActive between firstShown and lastShown) of at least 30 days (or minDaysActive). Note: observedDateSpanDays is a prioritization heuristic and does not prove uninterrupted daily serving or financial ROI.",
            "default": false
          },
          "minDaysActive": {
            "title": "12. Minimum Observed Date-Span Days Filter (e.g. 30, 60, or 90 Days)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return ads with an observed date span (lastShown - firstShown + 1) of at least this many days (0 = return all ads; 30 = 30-89d candidates; 90 = 90+ day Evergreen candidates).",
            "default": 0
          },
          "deduplicateVisualClones": {
            "title": "13. 📈 Smart Visual/Copy Clone Deduplication (Cluster Size & Distinct Ad-Group Count)",
            "type": "boolean",
            "description": "When enabled (recommended), automatically merges identical visual/copy creatives so you only pay ONCE per representative ad, while outputting 'creativeClusterSize' (alias 'adGroupScaleCount' = 1 + clonedCreativeIds.length), 'distinctAdGroupCount' (clonedAdGroupIds.length), 'clonedAdGroupIds', and 'clonedCreativeIds'.",
            "default": true
          },
          "includeDetails": {
            "title": "14. Deep EU Reach, Impressions & A/B Variations Add-On (+$2.50 / 1,000 ads)",
            "type": "boolean",
            "description": "Note: Ad Headlines, Descriptions, Video URLs & Observed Date-Span Tiers are ALREADY included FREE in the base tier! Enable this only if you also need per-creative GetCreativeById lookups for all A/B variations, EU transparency impression ranges, and audience targeting signals.",
            "default": false
          },
          "downloadAssets": {
            "title": "15. 💾 Download & Archive Permanent MP4/JPG Assets to Cloud Storage (+$1.00 / 1,000 ad bundles)",
            "type": "boolean",
            "description": "Because Google's direct googlevideo.com stream URLs expire after ~6 hours and are IP-signed, enable 'downloadAssets' to automatically download and save permanent .mp4 video and .jpg image files into your Apify Key-Value Store ('savedAssetUrl'). Billed at most 1 'asset' bundle event per creative record ($0.001/ad record) even when both downloadAssets and downloadPreviews are enabled.",
            "default": false
          },
          "downloadPreviews": {
            "title": "16. 📦 Download & Archive Rendered Creative Preview Bundles (+$1.00 / 1,000 ad bundles)",
            "type": "boolean",
            "description": "When enabled, saves the verified (>1,000 bytes) raw HTML5/JS creative preview bundle ('savedPreviewUrl') into your Apify Key-Value Store for offline compliance and creative archiving. Shares the same single 'asset' bundle event cap (max 1 'asset' charge per creative record).",
            "default": false
          },
          "maxAssetSizeKb": {
            "title": "17. Max Downloaded Asset File Size Limit (KB)",
            "minimum": 100,
            "maximum": 102400,
            "type": "integer",
            "description": "Maximum allowed file size in Kilobytes (KB) per downloaded video or image when 'downloadAssets' or 'downloadPreviews' is enabled (Default: 15360 KB = 15 MB). Protects your Key-Value Store from oversized videos.",
            "default": 15360
          },
          "onlyNewAds": {
            "title": "18. 📡 Scheduled Scoped Radar: Only Output Newly Observed Ads in Scope",
            "type": "boolean",
            "description": "When enabled on scheduled runs, persists previously seen creativeIds under an isolated scope key (query + region + adFormat + platforms + startDate + endDate) in a named Key-Value Store and only outputs creatives newly observed within the sampled scope on subsequent runs.",
            "default": false
          },
          "monitorStoreName": {
            "title": "19. Monitor Key-Value Store Name",
            "type": "string",
            "description": "Named Key-Value Store used to persist seen creativeIds across scheduled runs when 'onlyNewAds' is enabled.",
            "default": "ads-transparency-monitor"
          },
          "maxChargedUsd": {
            "title": "20. Optional Max Charged USD Budget Ceiling",
            "minimum": 0,
            "maximum": 10000,
            "type": "number",
            "description": "Optional hard spending ceiling in USD (e.g., 1.50). Before pushing items or charging optional 'detail'/'asset' add-ons, the Actor reserves budget against the tighter of this ceiling and Apify platform limits, redacting unfunded add-ons before pushData."
          },
          "webhookUrl": {
            "title": "21. Optional HTTPS Completion Webhook URL",
            "type": "string",
            "description": "Optional public HTTPS endpoint (https://...) to POST the redacted COMPETITOR_AD_SUMMARY.json payload and top 10 sample records upon completion. Private/internal IPs, non-HTTPS schemes, and unsafe redirects are blocked."
          },
          "proxyConfiguration": {
            "title": "22. Proxy Configuration (Optional — $0 Direct RPC Works by Default)",
            "type": "object",
            "description": "Our Zero-Browser Protobuf RPC engine runs at $0 proxy cost for standard runs (<60 pages). Only enable Datacenter/Residential proxy if scraping 50,000+ ads in bulk."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}