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

Search public advertiser records, list creatives for an advertiser or destination domain, retrieve records by ID, or find advertiser and domain suggestions.

- **URL**: https://apify.com/thenetaji/google-ads-transparency-scraper.md
- **Developed by:** [The Netaji](https://apify.com/thenetaji) (community)
- **Categories:** Marketing, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Ads Transparency Center Scraper

The Actor searches the public Google Ads Transparency Center and saves advertiser, creative, and suggestion records as structured dataset items. It is intended for moving from an advertiser name to its identifier, from an identifier to its record, or from a destination domain to creatives that link to it.

### Choosing a function

`scraperType` selects one task. Only the fields needed by the selected task are required; fields belonging to another task can be left empty.

| Function | Required input | Saved records |
| --- | --- | --- |
| `searchAdvertisers` | `query` | Matching advertisers with `advertiser_id`, `advertiser_name`, `billing_country`, and `disclosure_country` when available. |
| `getAdvertiser` | `advertiser_id` | One advertiser record with disclosed names, verification status, and political-ad disclosure information when available. |
| `searchCreatives` | `advertiser_id` or `domain` | Creative summaries with identifiers, format, media reference when available, and activity dates. |
| `getCreative` | `advertiser_id` and `creative_id` | One creative record with media variations, activity dates, served countries, and available impression ranges. |
| `searchSuggestions` | `query` | Advertiser and destination-domain suggestions. |

The output identifiers are designed to be reused. A typical sequence starts with `searchAdvertisers`, uses the returned `advertiser_id` in `searchCreatives`, and then passes an `advertiser_id` and `creative_id` to `getCreative` for the fuller creative record.

### Example: list an advertiser's creatives

```json
{
  "scraperType": "searchCreatives",
  "advertiser_id": "AR13536189912721653761",
  "ad_format": "image",
  "maxItems": 20
}
```

Each search result is a single dataset item. Fields not supplied by the source are `null` or absent; a creative search summary does not contain the detail-only fields returned by `getCreative`.

The following is a schema-backed illustration, not a verified live response. The `AR…` and `CR…` values stand for the identifiers returned by a search. A recorded source smoke-test example is still required before publication.

```json
{
  "advertiser_id": "AR…",
  "creative_id": "CR…",
  "creative_format": "image",
  "media": null,
  "activity_start": null,
  "activity_end": null
}
```

### Search settings and pagination

`country` narrows `searchAdvertisers` by the advertiser billing country and accepts a two-letter ISO-3166 code. `report_type` accepts `all` or `political` for advertiser and creative tasks. `ad_format`, `surfaces`, `sort_key`, and `descending` apply to `searchCreatives`; `sort_key` also supports advertiser ordering, with a different set of available choices shown in the input form.

`maxItems` defaults to `50` for advertiser and creative searches. Pagination stops when that number is saved, when the source has no next page, or when a page contains no records. Setting `maxItems` to `0` removes the Actor limit, but does not guarantee a fixed number of available records.

An unrecognized `advertiser_id`, `creative_id`, or identifier pair completes with an empty dataset rather than a synthetic record. `searchCreatives` requires at least one of `advertiser_id` and `domain`; providing neither ends the run with an input error.

### Response fields

Advertiser records use `advertiser_id`, `advertiser_name`, `billing_country`, `disclosure_country`, `advertiser_name_info`, `report_type`, `unverified`, and `political_info` when applicable. Creative records use `creative_id`, `creative_format`, `media` or `media_variations`, `activity_start`, `activity_end`, `num_served_days`, `served_country`, and impression-range fields such as `impressions_min`, `impressions_max`, and `country_impression_range` when available. Impression values are ranges rather than exact counts.

For a separate list of recent disapproved creative records, use the [Google Ads Disapproved Creatives Scraper](https://apify.com/thenetaji/google-ads-disapproved-creatives-scraper). It accepts no advertiser or keyword search and is the appropriate Actor when the disapproved-record feed, rather than advertiser or creative discovery, is required.

# Actor input Schema

## `scraperType` (type: `string`):

Choose the workflow for this run.

## `query` (type: `string`):

Name or brand to search. Required only for Search advertisers and Search suggestions.

## `country` (type: `string`):

Two-letter country code, e.g. US or GB. Optionally narrows Search advertisers to advertisers billed in that country.

## `sort_key` (type: `string`):

For Search advertisers: relevance, revenue, name, creative count, or impressions. For Search creatives: relevance, revenue, impressions, or last activity date.

## `descending` (type: `boolean`):

Used with a non-default sort option.

## `report_type` (type: `string`):

Choose All or Political. This setting applies to advertiser and creative functions.

## `advertiser_id` (type: `string`):

Paste the advertiser's Google Ads Transparency Center link, or just the AR... code in it. You can also get this from Search advertisers or Search suggestions.

## `creative_id` (type: `string`):

Paste the ad's Google Ads Transparency Center link, or just the CR... code in it. Used together with Advertiser link or ID for Creative details. You can also get this from Search creatives.

## `domain` (type: `string`):

Lists creatives linking to this domain. For Search creatives, provide this or Advertiser ID.

## `ad_format` (type: `string`):

Optionally restrict Search creatives to one format.

## `surfaces` (type: `array`):

Optionally restrict Search creatives to ads shown on these Google products. Leave empty for all of them.

## `num_advertiser_results` (type: `integer`):

Maximum advertiser suggestions returned by Search suggestions, from 0 to 20.

## `num_domain_results` (type: `integer`):

Maximum domain suggestions returned by Search suggestions, from 0 to 20.

## `maxItems` (type: `integer`):

Maximum records saved by a list or search function. Set 0 to continue until no more records are available.

## Actor input object example

```json
{
  "scraperType": "searchAdvertisers",
  "query": "nike",
  "country": "US",
  "sort_key": "unknown",
  "descending": true,
  "report_type": "all",
  "advertiser_id": "AR13536189912721653761",
  "creative_id": "CR18300947740944760833",
  "domain": "nike.com",
  "ad_format": "unknown",
  "num_advertiser_results": 5,
  "num_domain_results": 5,
  "maxItems": 20
}
```

# Actor output Schema

## `dataset` (type: `string`):

All records scraped by this run

# 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 = {
    "query": "nike",
    "country": "US",
    "advertiser_id": "AR13536189912721653761",
    "creative_id": "CR18300947740944760833",
    "domain": "nike.com",
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("thenetaji/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 = {
    "query": "nike",
    "country": "US",
    "advertiser_id": "AR13536189912721653761",
    "creative_id": "CR18300947740944760833",
    "domain": "nike.com",
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("thenetaji/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 '{
  "query": "nike",
  "country": "US",
  "advertiser_id": "AR13536189912721653761",
  "creative_id": "CR18300947740944760833",
  "domain": "nike.com",
  "maxItems": 20
}' |
apify call thenetaji/google-ads-transparency-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thenetaji/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/YPWaxaDKCxvMqBHDC/builds/l3CqdondOlWhdcKoA/openapi.json
