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

\[ 1k / 1$ ] Google Ads Transparency scraper: extract ads from the Google Ads Transparency Center by advertiser name, domain or advertiser ID. Filter by region, platform and format and add per-ad regions, variants, headlines, descriptions and landing pages.

- **URL**: https://apify.com/alpha-scraper/google-ads-transparency-scraper.md
- **Developed by:** [Alpha Scraper](https://apify.com/alpha-scraper) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 25.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event + usage

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Scraper

Google Ads Transparency Scraper is an Apify Actor that collects advertising transparency data from Google Ads and returns it as clean, structured records.
Google Ads Transparency scraper: extract ads from the Google Ads Transparency Center by advertiser name, domain or advertiser ID.
Instead of copying Google Ads pages by hand, you enter your keywords, choose a few options, and receive one JSON record for every ad record that Google Ads returns.

**Who is it for?** advertising and competitive-intelligence analysts; creative strategists and agencies; compliance and policy researchers.
**What problem does it solve?** Collecting Google Ads information by hand is slow and hard to repeat. Google Ads Transparency Scraper returns the same documented Google Ads fields every time, ready for spreadsheets, databases and dashboards.
**What data do you get?** 39 documented Google Ads fields per record, exported as JSON, CSV, Excel, XML, HTML or RSS.
**What is the easiest way to start?** Open the Actor on Apify, keep the pre-filled input, lower `maxItems`, and press Start.

> **📌 Google Ads Transparency Scraper at a glance**
>
> - **Platform:** Google Ads
> - **Category:** advertising transparency
> - **Input fields:** 11 · **Output fields:** 39
> - **Listed price:** $1.00 per 1,000 results

### ✨ Google Ads Transparency Scraper Key Features

Google Ads Transparency Scraper turns Google Ads ad records into structured data with a short list of inputs and a documented output.
Here is what Google Ads Transparency Scraper offers:

- **Keyword input:** Google Ads Transparency Scraper accepts one or many entries in `queries` and processes each entry on its own.
- **Result limit:** `maxItems` caps the Google Ads records per run, so test runs of the Actor stay small and costs predictable.
- **Structured output:** 39 documented Google Ads fields in a consistent JSON structure.
- **Export anywhere:** download the Google Ads data as JSON, CSV, Excel, XML, HTML or RSS, or read the dataset through the Apify API.
- **Run summary:** a `RUN_SUMMARY` record and the status message report counts and the first problem of every run of Google Ads Transparency Scraper.
- **Region** (`region`): Where the ads were shown: 'Anywhere' for all regions or one country.
- **Ad Platform** (`platform`): Only ads shown on this Google platform.
- **Ad Format** (`format`): Only ads of this creative format.

> **💡 Why use Google Ads Transparency Scraper?**
>
> - You work with documented Google Ads fields instead of raw pages.
> - You can repeat the same Google Ads job on a schedule and compare results over time.
> - You can start small with the Actor, check the output, and scale up when you are happy.

### 🔍 What Data Can Google Ads Transparency Scraper Extract?

Each record describes one ad record found on Google Ads.
The schema documents 39 fields: 17 core fields that appear in almost every record, 3 common fields and 19 conditional fields that appear only when Google Ads provides the value or the matching option is on.

- `creativeId`: Creative ID
- `creativeUrl`: Creative URL
- `advertiserId`: Advertiser ID
- `advertiserName`: Advertiser name
- `advertiserUrl`: Advertiser URL
- `advertiserCountry`: Advertiser country
- `adFormat`: Ad format
- `formatCode`: Format code

The Output section below lists more Google Ads fields with their types and shows a real sample record collected by Google Ads Transparency Scraper.

### ⚙️ How Google Ads Transparency Scraper Works

The workflow of Google Ads Transparency Scraper is intentionally simple, and Google Ads Transparency Scraper needs no code:

1. You provide a JSON input or fill the Console form; missing options use their documented defaults.
2. For every entry in `queries`, the Actor requests results from Google Ads, page after page, until it has `maxItems` records or Google Ads has no more matches.
3. With `fetchDetails` on, Google Ads Transparency Scraper also opens each record's detail page and adds the extra fields.
4. Each record is cleaned and mapped to the documented fields; values that Google Ads does not provide are left out instead of guessed.
5. Records are saved to the default dataset in small batches, and a `RUN_SUMMARY` record closes the run of Google Ads Transparency Scraper.

### 🚀 How to Use Google Ads Transparency Scraper

You can run the Actor in a few minutes. Follow these steps in the Apify Console:

1. Open the page of Google Ads Transparency Scraper on Apify and select the **Input** tab.
2. Enter your Google Ads keywords in **Advertiser Names, Domains or IDs** (`queries`).
3. Set **Max Items Per Query** (`maxItems`) to a small number such as 20 for the first run.
4. Press **Start**, then open the **Output** tab to browse the Google Ads dataset and use **Export** to download it.
5. Save the input as a **Task** and add a **Schedule** to repeat Google Ads Transparency Scraper runs.

A quick start input for Google Ads Transparency Scraper:

```json
{
  "queries": ["nike"],
  "maxItems": 20
}
```

With this input, the Actor searches Google Ads for the keywords shown and returns at most `maxItems` records.

### 🛒 How to Scrape Google Ads ad records with Google Ads Transparency Scraper

To scrape Google Ads ad records, add your keywords to `queries`, set `maxItems`, and start Google Ads Transparency Scraper. Each keyword is processed separately, so ten keywords produce ten Google Ads searches that share one dataset.

#### 📁 Can You Export Google Ads Data to CSV, Excel or JSON?

Yes. Every run of Google Ads Transparency Scraper stores its Google Ads records in a dataset that you can download as JSON, CSV, Excel, XML, HTML or RSS from the Console or through the API.

#### ⏰ Can You Schedule Google Ads Transparency Scraper to Monitor Google Ads?

Yes. Save your input as a Task, attach a Schedule, and compare the Google Ads dataset of every run.

### 📥 Google Ads Transparency Scraper Input

This table lists every input field of the Actor, taken from the Actor's input schema. The form is pre-filled with a working example.

#### 🧾 Google Ads Transparency Scraper Input Fields

|Field|Type|Default|Purpose|
|---|---|---|---|
|`queries`|array|\["nike"]|One or more advertisers to look up: an advertiser or brand name (for example 'nike'), a website…|
|`maxItems`|integer|15|Maximum number of ads (creatives) to extract per entry.|
|`region`|string|"anywhere"|Where the ads were shown: 'Anywhere' for all regions or one country.|
|`platform`|string|-|Only ads shown on this Google platform.|
|`format`|string|-|Only ads of this creative format.|
|`advertiserMatch`|string|"best"|Only for name queries (domains and advertiser IDs are unaffected).|
|`maxAdvertisers`|integer|3|Max Advertisers (when matching all)|
|`pageSize`|integer|40|How many ads are requested per call (10-100; values outside this range are clamped).|
|`fetchDetails`|boolean|true|For every ad add each region it ran in with its last-shown date, all ad variants (image URLs and…|
|`detailLimit`|integer|0|Only the first N returned ads get the detail requests; the rest keep their list data and…|
|`previewScripts`|integer|1|0 skips the script download: fewer requests, but no ad texts.|

#### 📝 Google Ads Transparency Scraper Input Examples

These are valid inputs for Google Ads Transparency Scraper. Copy one into the JSON editor of the input form, or send it through the API.

#### 🧪 Example 1: Minimal input

The smallest useful input: your Google Ads keywords and a result limit. Every other option keeps its default.

```json
{
  "queries": ["nike"],
  "maxItems": 20
}
```

#### 🧪 Example 2: Typical input with the documented defaults

Every option that has a documented default, shown with that default value so you can see the full shape of the input.

```json
{
  "queries": ["nike"],
  "maxItems": 20,
  "region": "anywhere",
  "advertiserMatch": "best",
  "maxAdvertisers": 3,
  "pageSize": 40,
  "fetchDetails": true,
  "detailLimit": 0,
  "previewScripts": 1
}
```

#### 🧪 Example 3: Ad Platform set to "SEARCH"

Changes `platform` and keeps the other defaults.

```json
{
  "queries": ["nike"],
  "maxItems": 20,
  "region": "anywhere",
  "platform": "SEARCH",
  "advertiserMatch": "best",
  "maxAdvertisers": 3,
  "pageSize": 40,
  "fetchDetails": true,
  "detailLimit": 0,
  "previewScripts": 1
}
```

#### 🧪 Example 4: Ad Platform set to "MAPS"

Changes `platform` and keeps the other defaults.

```json
{
  "queries": ["nike"],
  "maxItems": 20,
  "region": "anywhere",
  "platform": "MAPS",
  "advertiserMatch": "best",
  "maxAdvertisers": 3,
  "pageSize": 40,
  "fetchDetails": true,
  "detailLimit": 0,
  "previewScripts": 1
}
```

### 📤 Google Ads Transparency Scraper Output

Google Ads Transparency Scraper stores one record per ad record in the default dataset of the run. The table shows the most common of the 39 documented Google Ads fields.

#### 📋 Google Ads Transparency Scraper Output Fields

|Field|Type|Description|
|---|---|---|
|`creativeId`|string|ID of the ad creative in the Google Ads Transparency Center, starting with `CR`.|
|`creativeUrl`|string|Link to the ad's page in the Google Ads Transparency Center, opened for the…|
|`advertiserId`|string|ID of the advertiser that runs the ad, starting with `AR`.|
|`advertiserName`|string|Name of the advertiser as registered with Google's advertiser verification.|
|`advertiserUrl`|string|Link to the advertiser's page in the Google Ads Transparency Center, opened for…|
|`advertiserCountry`|string|Two-letter country code of the advertiser.|
|`adFormat`|string|Format of the ad: `text`, `image` or `video`.|
|`formatCode`|integer|Numeric code of the ad format used by the Transparency Center: 1 for text, 2…|
|`firstShownAt`|string|Date and time the ad was first shown, as an ISO 8601 UTC timestamp.|
|`lastShownAt`|string|Date and time the ad was last shown, as an ISO 8601 UTC timestamp.|
|`matchingAdsEstimate`|string|Approximate number of ads matching the search and filters, as a range text such…|
|`regionFilter`|string|Region filter applied to the search: a two-letter country code, or `anywhere`…|

#### 🧬 Google Ads Transparency Scraper Sample Output

This record comes from a real run of Google Ads Transparency Scraper. Long texts and lists are shortened, only common fields are shown, and contact details, personal names, usernames and profile links are hidden.

```json
{
  "creativeId": "CR09478963857012555777",
  "creativeUrl": "https://adstransparency.google.com/advertiser/AR16735076323512287233/creative/CR094789638…",
  "advertiserId": "AR16735076323512287233",
  "advertiserName": "Nike, Inc.",
  "advertiserUrl": "https://adstransparency.google.com/advertiser/AR16735076323512287233?region=anywhere",
  "advertiserCountry": "US",
  "adFormat": "text",
  "formatCode": 1,
  "firstShownAt": "2023-11-16T22:25:47Z",
  "lastShownAt": "2026-11-14T06:48:46Z",
  "matchingAdsEstimate": "8000-9000",
  "regionFilter": "anywhere",
  "searchType": "advertiser",
  "searchKeyword": "nike"
}
```

**Sample record 2**

```json
{
  "creativeId": "CR15931394260604026881",
  "creativeUrl": "https://adstransparency.google.com/advertiser/AR16735076323512287233/creative/CR159313942…",
  "advertiserId": "AR16735076323512287233",
  "advertiserName": "Nike, Inc.",
  "advertiserUrl": "https://adstransparency.google.com/advertiser/AR16735076323512287233?region=anywhere",
  "advertiserCountry": "US",
  "adFormat": "text",
  "formatCode": 1,
  "firstShownAt": "2023-12-03T05:27:18Z",
  "lastShownAt": "2026-11-14T06:32:55Z",
  "matchingAdsEstimate": "8000-9000",
  "regionFilter": "anywhere",
  "searchType": "advertiser",
  "searchKeyword": "nike"
}
```

#### 🔬 Google Ads Transparency Scraper Field Details

Each field below is described with its type, how often it appears in the sample and example values.

- **`creativeId`** (string, present in 50 of 50 sample records): ID of the ad creative in the Google Ads Transparency Center, starting with `CR`. Examples: `"CR09478963857012555777"`, `"CR01167362610585141249"`.
- **`creativeUrl`** (string, present in 50 of 50 sample records): Link to the ad's page in the Google Ads Transparency Center, opened for the region filter used in the search. Examples: `"https://adstransparency.google.com/advertiser/A…"`, `"https://adstransparency.google.com/advertiser/A…"`.
- **`advertiserId`** (string, present in 50 of 50 sample records): ID of the advertiser that runs the ad, starting with `AR`. Examples: `"AR16735076323512287233"`.

### 🎯 Google Ads Transparency Scraper Use Cases

People use the Actor when they need repeatable, structured advertising transparency data from Google Ads. Typical applications:

- Search public ad libraries by advertiser, keyword or region
- Review ad copy, formats and destination pages
- Track which advertisers run campaigns in a market
- Collect ad metadata for transparency research
- Compare messaging across competitors
- Export ads to spreadsheets for review

Every one of these tasks starts from the same Google Ads records that Google Ads Transparency Scraper stores in the dataset.

### 💰 Google Ads Transparency Scraper Pricing

The Actor description lists the price of Google Ads Transparency Scraper as **$1.00 per 1,000 results**.
The table shows what that rate means for typical run sizes.

|Results|Cost at the listed rate|
|---|---|
|100|$0.10|
|1,000|$1.00|
|10,000|$10.00|
|100,000|$100.00|

- Check the **Pricing** tab on the Actor page for the current terms; your Apify plan and platform usage may also apply.
- Test with a small `maxItems` value before a large run.

### 💻 Run Google Ads Transparency Scraper with the Apify API

You can start Google Ads Transparency Scraper from code and read the Google Ads records from the dataset.

#### 🐍 Run the Actor from Python

Replace `ACTOR_ID` with the Actor ID shown on the Actor page and keep your token in an environment variable.

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("ACTOR_ID").call(run_input={'queries': ['nike'], 'maxItems': 20})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### 🔗 Integrations and Automation

Google Ads Transparency Scraper works with schedules, webhooks, the Apify API and many integrations.

#### 🔌 Connect Google Ads Transparency Scraper to Google Sheets

- Open the Integrations tab of the Actor or Task in the Apify Console and add the Google Sheets integration.
- Authorise your Google account and pick the spreadsheet and the worksheet.
- Choose whether each run appends rows or replaces the sheet content.
- Start a run; when it succeeds the rows appear in your spreadsheet automatically.
- Once a run succeeds, the Google Ads data is ready to use in Google Sheets.

### 🧭 Example Workflows with Google Ads Transparency Scraper

These workflows show how teams combine the Actor with schedules, storage and analysis tools.

#### 🧭 Weekly monitoring dashboard

1. Create a Task with your Google Ads keywords and a fixed `maxItems`.
2. Add a weekly schedule and a webhook on success.
3. Let the webhook append the Google Ads dataset to Google Sheets or a database.
4. Chart the 39-field records in Looker Studio, Power BI or Tableau.
5. Review the RUN_SUMMARY record whenever a number looks unusual.

### 🛠️ Tips and Best Practices

Follow these tips to get clean data from Google Ads Transparency Scraper faster:

- Start every new search with a small `maxItems` value so you can check the output and the cost before a big run.
- Change one input option at a time and compare the datasets; this makes it clear which option produced which effect.
- Save good inputs as Apify Tasks and give them descriptive names such as the keyword and the market.
- Use a schedule for monitoring jobs, and keep each run small so that Google Ads results arrive quickly.
- Treat every field except the identifiers as optional in your downstream code.
- Keep the raw JSON of important runs; it is the most complete representation of each record.
- Review `region` (Region) before large runs: Where the ads were shown: 'Anywhere' for all regions or one country.
- Review `platform` (Ad Platform) before large runs: Only ads shown on this Google platform.

### 🗂️ Apify Platform Topics for Google Ads Transparency Scraper

These notes cover Apify features that you meet while running Google Ads Transparency Scraper.

#### 📌 Running Google Ads Transparency Scraper from the Console

- Open the Actor page and review the Input tab; every field is documented there.
- Press Start to launch a run; the status changes from Ready to Running to Succeeded.
- Watch the log tab for progress, warnings and the final summary line.
- Open the Output tab to browse the Google Ads dataset in table or JSON view.
- Use Export to download the Google Ads results in your preferred format.

### ⚖️ Legal and Responsible Use

The Actor is meant for publicly available information, and you are responsible for how you use the Google Ads data. This is general information, not legal advice.

- Read and follow the terms of service and the published crawler rules of Google Ads before you run large jobs.
- Collect only the ad records and fields you need from Google Ads, and use them for a legitimate purpose.
- Treat names, handles and contact details as personal data where privacy laws such as GDPR or CCPA apply.
- Respect copyright and database rights when you republish Google Ads content, and honour removal requests.

### ❓ Frequently Asked Questions about Google Ads Transparency Scraper

Answers to common questions about Google Ads Transparency Scraper and about collecting Google Ads data.

#### ❓ How do I run Google Ads Transparency Scraper?

Open the Actor page on Apify, fill in the input form, and press Start.
The same run can be started from the Apify API, the Apify CLI, a schedule, or an integration, using the identical JSON input shown in the Input section.
The Actor saves every record to the run's default dataset, where you can preview and download it.

#### ❓ Do I need an Apify account to use Google Ads Transparency Scraper?

Yes. Google Ads Transparency Scraper runs on the Apify platform, so you need an Apify account to start it from the Console or the API.
A free account is enough to try the Actor on a small input; check your plan for the monthly credits it includes.

#### ❓ Can I run Google Ads Transparency Scraper through the API?

Yes. Every Apify Actor can be started with the Apify API or one of the official clients for JavaScript and Python.
The API section of this page shows a copy-paste example that sends the same JSON input as the Console form.

#### ❓ How do I schedule the Actor to run every day or every week?

Save your input as an Apify Task, then add a Schedule with a cron expression to that Task.
Each scheduled run creates a new dataset, so you can compare today's Google Ads results with yesterday's.

#### ❓ Which formats can I export the results in?

Apify datasets can be downloaded as JSON, JSONL, CSV, Excel, XML, HTML table and RSS.
Nested lists and objects are kept intact in JSON; for CSV or Excel choose the Google Ads fields you need or flatten nested fields in the export options.

#### ❓ How many results can I collect in one run?

The `maxItems` input field controls the limit. Its default is 15, with a minimum of 1.
The run also stops earlier when Google Ads has no more matching results for your input, so you may receive fewer records than requested.

#### ❓ Where do I see my overall Apify usage?

Open the billing and usage pages of your Apify account in the Console.

### 🤝 Support

Need help with Google Ads Transparency Scraper or want a new field? Use the **Issues** tab on the Actor page and include the run link and your input.

- contact me by email : alphascraper69@gmail.com

# Actor input Schema

## `queries` (type: `array`):

One or more advertisers to look up: an advertiser or brand name (for example 'nike'), a website domain (for example 'nike.com': every ad whose destination is that domain) or an advertiser ID ('AR' followed by digits, taken from an advertiser page URL). The Transparency Center has no free-text ad search, so words that are not advertiser names find nothing useful. Every entry is processed on its own and gets its own 'Max Items Per Query'.

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

Maximum number of ads (creatives) to extract per entry. The Actor keeps loading result pages until this number is reached or the Transparency Center has no more ads. When a name matches several advertisers ('Advertiser Match' = all) the limit covers all of them together.

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

Where the ads were shown: 'Anywhere' for all regions or one country. The region is also used in the creative and advertiser links of every record.

## `platform` (type: `string`):

Only ads shown on this Google platform. Leave 'Any platform' for all of them.

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

Only ads of this creative format. Leave 'Any format' for text, image and video ads.

## `advertiserMatch` (type: `string`):

Only for name queries (domains and advertiser IDs are unaffected). 'Best match' uses the single matching advertiser with the most ads. 'All matching' collects the ads of up to 'Max Advertisers' matching advertisers one after another.

## `maxAdvertisers` (type: `integer`):

How many matching advertisers are used when 'Advertiser Match' is 'All matching advertisers' (1-10: Google's suggestion list returns at most 10 candidates per name).

## `pageSize` (type: `integer`):

How many ads are requested per call (10-100; values outside this range are clamped). The Transparency Center's own web app uses 40.

## `fetchDetails` (type: `boolean`):

For every ad add each region it ran in with its last-shown date, all ad variants (image URLs and preview scripts), the advertiser's country and approximate ad count and, from the first preview script, the headline, description, visible ad texts, landing-page URL, YouTube video id and images. This is at least 2 extra requests per ad; requests are 3 seconds apart and a block (HTTP 403/429) stops detail fetching for the run. Exact impressions, spend and targeting of commercial ads are not published. Turn off for a much faster run with the list data only.

## `detailLimit` (type: `integer`):

Only the first N returned ads get the detail requests; the rest keep their list data and 'detailStatus' says 'skipped: detailLimit=N'. Use 0 to enrich every returned ad. Used only while 'Fetch Creative Details' is on.

## `previewScripts` (type: `integer`):

How many of an ad's preview scripts are downloaded and parsed for headline, description, landing page and images (the first fills the main fields, further ones are listed in 'extraPreviews'). 0 skips the script download: fewer requests, but no ad texts. Used only while 'Fetch Creative Details' is on.

## Actor input object example

```json
{
  "queries": [
    "nike"
  ],
  "maxItems": 15,
  "region": "anywhere",
  "advertiserMatch": "best",
  "maxAdvertisers": 3,
  "pageSize": 40,
  "fetchDetails": true,
  "detailLimit": 0,
  "previewScripts": 1
}
```

# Actor output Schema

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

Structured records extracted by Google Ads Transparency Scraper and stored in the run's default dataset.

# 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 = {
    "queries": [
        "nike"
    ],
    "maxItems": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/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 = {
    "queries": ["nike"],
    "maxItems": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/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 '{
  "queries": [
    "nike"
  ],
  "maxItems": 15
}' |
apify call alpha-scraper/google-ads-transparency-scraper --silent --output-dataset

```

## MCP server setup

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