# Google Ads Transparency Scraper (`seemuapps/google-ads-transparency-scraper`) Actor

Scrape every Google ad creative for any advertiser or domain — image, text, and video ads with run dates, regions, and asset URLs.

- **URL**: https://apify.com/seemuapps/google-ads-transparency-scraper.md
- **Developed by:** [Seemu Scraping](https://apify.com/seemuapps) (community)
- **Categories:** SEO tools, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 30 total users, 3 monthly users, 97.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google Ad Transparency Scraper

Pull every ad creative an advertiser is running on Google - Search, YouTube, Display, Shopping, Maps, and Play - with run dates, regions, and direct asset URLs. Search by **keyword**, **domain**, or **advertiser ID**, and export the entire ad library to JSON, CSV, or Excel.

### What you get

For every ad, the dataset returns:

- **advertiserId** - Google's stable advertiser ID (e.g. `AR07816964328396947457`)
- **advertiserName** - verified legal name (e.g. `Roadget Business Pte. Ltd.`)
- **advertiserDomain** - verified domain (e.g. `shein.com`)
- **creativeId** - stable ID for the specific ad
- **format** - `text`, `image`, or `video`
- **formatCode** - raw numeric format code (1, 2, 3)
- **firstShown** / **lastShown** - ISO date range the ad was active
- **approxDaysShown** - approximate days the ad has been in rotation
- **adUrl** - direct link to the creative on the Ads Transparency Center
- **imageUrl** - full image asset URL when available
- **videoUrl** - direct video asset URL for video ads
- **iframeUrl** - rich-media iframe source for HTML5 banners
- **previewUrl** / **contentJsUrl** - Google's preview content endpoint
- **regionsServed** - list of country codes the ad ran in (when "Fetch detailed info" is on)
- **lastShownPerRegion** - last-seen date per country (when "Fetch detailed info" is on)
- **searchQuery**, **searchRegion**, **scrapedAt** - provenance metadata

### Use cases

- **Competitor ad intelligence** - monitor every Google ad your competitors run, including dates, formats, and regions
- **Ad creative research** - pull a brand's full ad library to study messaging, hooks, and visual direction
- **Affiliate and partner compliance** - audit affiliates running paid Google traffic against your brand
- **Influencer and merchant vetting** - verify advertiser identity, domain ownership, and ad volume before deals
- **Market and trend research** - track creative volume and regional rollout for any advertiser over time
- **SEO and PPC analysis** - see which domains are bidding alongside specific keywords or in specific countries
- **Brand safety monitoring** - surface unauthorized advertisers using your brand name or domain

### How to use

1. Enter a **Search query** - a keyword (`shein`), a domain (`shein.com`), or an advertiser ID (`AR07816964328396947457`)
2. Optionally force the **Search type** if auto-detect picks the wrong path
3. Pick a **Region** - 2-letter ISO country code (`US`, `GB`, `DE`, `IN`, …) or `anywhere` for worldwide. 237 countries supported.
4. Filter by **Ad format** if you only want text, image, or video creatives
5. Set **Max results** - default 100, or `0` for unlimited (auto-paginates until exhausted or the run times out)
6. Optional: set **Date from / Date to** to keep only ads last shown in a date window
7. Optional: enable **Fetch detailed info per ad** to enrich every record with the per-region service map
8. Run the actor - results stream into the **Dataset** tab. Download as JSON, CSV, or Excel.

### Search types

- **Keyword** - finds the closest matching brand using Ads Transparency Center suggestions, then returns its full creative library. Smart resolution prefers domain matches (e.g. `temu` → `temu.com`) over low-volume name matches.
- **Domain** - returns ads from every advertiser whose verified domain matches. Often returns multiple legal entities under one brand (e.g. `nike.com` → `Nike, Inc.` plus `Nike Retail BV`).
- **Advertiser ID** - exact lookup when you already have an `AR…` ID and want only that advertiser's ads.

### Pagination across runs

A single run pulls up to your **Max results** in one go. For very large advertisers, set `maxResults` to `0` and let the actor auto-paginate until it times out - the cursor is saved automatically.

After the run finishes, open the **Key-value store** tab → copy the `NEXT_PAGE_ID` value → paste it into **Page ID** on the next run to resume. If `NEXT_PAGE_ID` is `null`, you've fetched everything.

### Notes on regions

Region filtering is applied at the API level when you specify a country code. Picking `anywhere` returns ads from every country. Enabling **Fetch detailed info per ad** populates `regionsServed` and `lastShownPerRegion` so you can see the global rollout of every individual creative.

### Sample output

```json
{
  "advertiserId": "AR07816964328396947457",
  "advertiserName": "Roadget Business Pte. Ltd.",
  "advertiserDomain": "shein.com",
  "creativeId": "CR…",
  "format": "image",
  "firstShown": "2024-03-12",
  "lastShown": "2026-05-06",
  "approxDaysShown": 786,
  "adUrl": "https://adstransparency.google.com/advertiser/AR…/creative/CR…?region=US",
  "imageUrl": "https://tpc.googlesyndication.com/archive/simgad/…",
  "regionsServed": ["US", "GB", "DE", "FR", "AU"],
  "lastShownPerRegion": { "US": "2026-05-06", "GB": "2026-05-04" }
}
```

# Actor input Schema

## `searchQuery` (type: `string`):

Keyword, domain (e.g. 'shein.com'), or advertiser ID (e.g. 'AR07816964328396947457'). Type is auto-detected unless overridden below.

## `searchType` (type: `string`):

Force a specific interpretation of the search query. 'auto' detects from the input shape.

## `region` (type: `string`):

ISO 2-letter country code (e.g. 'US', 'GB', 'DE') or 'anywhere' for worldwide. 237 countries supported.

## `format` (type: `string`):

Filter by creative format.

## `maxResults` (type: `integer`):

Maximum ads to return in this run. Set to 0 for unlimited (auto-paginates until exhausted or actor times out).

## `dateFrom` (type: `string`):

Only keep ads last shown on or after this date (YYYY-MM-DD). Optional.

## `dateTo` (type: `string`):

Only keep ads last shown on or before this date (YYYY-MM-DD). Optional.

## `fetchDetailedInfo` (type: `boolean`):

If enabled, makes an additional request per ad to fetch the full list of regions where it ran and the per-region last-shown date. Slower and uses more proxy bandwidth, but enriches every record with regionsServed and lastShownPerRegion.

## `pageId` (type: `string`):

Paste NEXT_PAGE_ID from the previous run's Key-value store to fetch the next page.

## `proxyConfiguration` (type: `object`):

Apify Proxy. Leave default for automatic datacenter → residential fallback. If you select a specific group, that group is used and no fallback is attempted.

## Actor input object example

```json
{
  "searchQuery": "shein.com",
  "searchType": "auto",
  "region": "anywhere",
  "format": "all",
  "maxResults": 100,
  "fetchDetailedInfo": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One ad creative per record. Fields: advertiserId, advertiserName, advertiserDomain, creativeId, format, formatCode, firstShown, lastShown, approxDaysShown, adUrl, imageUrl, videoUrl, iframeUrl, previewUrl, contentJsUrl, regionsServed, lastShownPerRegion, searchQuery, searchRegion, scrapedAt.

## `nextPageId` (type: `string`):

NEXT_PAGE_ID record in the default key-value store. Paste into Page ID on the next run to resume; null when the list is exhausted.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQuery": "shein.com",
    "region": "anywhere",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("seemuapps/google-ads-transparency-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQuery": "shein.com",
    "region": "anywhere",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("seemuapps/google-ads-transparency-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQuery": "shein.com",
  "region": "anywhere",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call seemuapps/google-ads-transparency-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,seemuapps/google-ads-transparency-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/oegwf7e9uVIHvB8aB/builds/KlqW5MliLthfwPB0B/openapi.json
