# Google Ad Scraper (`getdataforme/google-ad-scraper`) Actor

Scrape public Google Ads by company name using this actor. Get ad creatives, image URLs, ad types, and run-time metadata. Perfect for ad research, marketing analysis, or competitor tracking. Fast, reliable, and supports proxy for better data access.

- **URL**: https://apify.com/getdataforme/google-ad-scraper.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** Lead generation
- **Stats:** 28 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$25.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

***

### 📊 Google Ad Scraper

**Google Ad Scraper** is an \[Apify Actor] that allows you to extract public ad creatives and metadata from Google Ad Transparency data using a company name. This is useful for competitive intelligence, ad monitoring, or market research.

***

### 📥 Input

The actor accepts a JSON configuration with the following fields:

```json
{
  "companies": ["AMD"],
  "item_limit": 30,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

#### Input Fields

| Field                | Type      | Description                                                                    |
| -------------------- | --------- | ------------------------------------------------------------------------------ |
| `companies`          | `array`   | **(Required)** List of company names to search ads for.                        |
| `item_limit`         | `integer` | **(Optional)** Max number of ads to fetch per company. Default is `30`.        |
| `proxyConfiguration` | `object`  | **(Required)** Apify proxy settings. Use `RESIDENTIAL` group for best results. |

***

### 📤 Output

The actor returns a list of ads scraped for each company, including ad IDs, image links, and timing metadata.

#### Sample Output

```json
[
  {
    "company_name": "AMD",
    "first_token": "AR15828763354186383361"
  },
  {
    "company_name": "AMD",
    "advertiser_id": "AR15828763354186383361",
    "creative_id": "CR04459195472325640193",
    "company": "AMDS",
    "ad_type": "image",
    "preview_url": null,
    "image_url": "https://tpc.googlesyndication.com/archive/simgad/6302500766027692463",
    "start_timestamp": "1635145200",
    "end_timestamp": "1732087555",
    "ad_format": 880
  },
  ...
]
```

#### Output Fields

| Field             | Type     | Description                                                     |
| ----------------- | -------- | --------------------------------------------------------------- |
| `company_name`    | `string` | Name of the company searched.                                   |
| `advertiser_id`   | `string` | Unique advertiser identifier.                                   |
| `creative_id`     | `string` | ID of the specific ad creative.                                 |
| `company`         | `string` | Advertiser’s official name in Google records.                   |
| `ad_type`         | `string` | Type of ad (e.g., image, text, video).                          |
| `image_url`       | `string` | Direct link to the ad image.                                    |
| `preview_url`     | `string` | Preview URL if available.                                       |
| `start_timestamp` | `string` | UNIX timestamp for when the ad began running.                   |
| `end_timestamp`   | `string` | UNIX timestamp for when the ad stopped or is scheduled to stop. |
| `ad_format`       | `number` | Format code used by Google Ads.                                 |

***

### 🧰 Use Cases

- Track your competitors' latest ad campaigns
- Gather advertising metadata for analysis
- Monitor creative strategy trends in your industry
- Academic or research use in digital marketing studies

***

### ⚙️ Proxy Configuration

This actor **requires** the use of [Apify Proxy](https://docs.apify.com/proxy), preferably the `RESIDENTIAL` group for optimal performance. Without it, some data may not be accessible.

***

### 📞 Support

Need help or want a custom version?

- 📧 Email: <support@getdataforme.com>
- 🌐 Contact Form: <https://getdataforme.com/contact/>

👉 **Make sure to include a subject line and your request details when contacting support.**

***

Let me know if you want this turned into a live Apify actor template or want to include a `README.md` with image previews or logos!

# Actor input Schema

## `companies` (type: `array`):

A list of URLs of the web pages you want to scrape data from.

## `item_limit` (type: `integer`):

The maximum number of items to scrape.

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

Specifies proxy servers that will be used by the scraper in order to hide its origin.

## Actor input object example

```json
{
  "companies": [
    "Nvidia"
  ],
  "item_limit": 30,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "companies": [
        "Nvidia"
    ],
    "item_limit": 30,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/google-ad-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 = {
    "companies": ["Nvidia"],
    "item_limit": 30,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/google-ad-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 '{
  "companies": [
    "Nvidia"
  ],
  "item_limit": 30,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call getdataforme/google-ad-scraper --silent --output-dataset

```

## MCP server setup

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