# 4 Best Google Ad Library APIs for Competitor Ads (2026)

By [Florian Martens](https://pipe0.com/authors/florian-martens) · Published Dec 4, 2026

Source: https://pipe0.com/blog/google-ad-library-api

> How to get a competitor's Google ads by API. Google offers no API for its Ads Transparency Center. Here are four APIs that get them, with prices.

In this post, we'll walk you through how to get a company's Google ads
through an API. This includes the ads a company runs on Google Search, YouTube and Google's
other sites. Companies often use these ads to research their competitors: which
products they push, which messages they test, and how long a campaign
runs. Others use them for inspiration for their own ads, or to see which
companies are paying for ads right now.

Google shows every advertiser's ads on a public website, but it offers no
API for them. We explain what Google does publish and where it stops. Then
we walk you through four APIs for Google ads: pipe0,
LeadMagic, SerpApi and Apify. We compare what you send them, what comes
back and what it costs. So keep reading.

## Google's Ads Transparency Center

Google publishes its ads in the
[Ads Transparency Center](https://adstransparency.google.com), a website
where anyone can search the ads of any advertiser. It covers Google Search,
YouTube, Display and Gmail. You search by advertiser or website, then
filter by date and location.

Google offers no API for the Ads Transparency Center.

Next to the website, Google publishes two datasets you can download or
query in BigQuery. One holds election ads. The other holds ads shown in
the European Economic Area and Turkey, without their text or landing page.

Ads that fall into neither category don't show up in these datasets.

## Four APIs that read the Ads Transparency Center

The third-party APIs in this post get their data from the Ads Transparency
Center website.

### [pipe0](https://pipe0.com)

pipe0 finds a company's Google ads from its domain. You run the lookup in a
pipe0 sheet (visually), through the API or from an AI agent.

The lookup runs on LeadMagic and returns each ad's text in the list, read
off the ad's preview image. That saves a call per ad, but the text can
carry reading errors, such as "Al" for "AI". It returns up to 25 ads by
default, newest first, and charges per ad. A company with no ads costs
nothing.

### [LeadMagic](https://leadmagic.io)

LeadMagic is a B2B data API for work emails, mobile numbers and company
data. Its Google ads search takes a company's domain or name and returns
up to 100 ads, with their text.

It charges one credit per ad returned and nothing when a company runs no
ads.

### [SerpApi](https://serpapi.com/google-ads-transparency-center-api)

SerpApi is an API for Google search results. Its Ads Transparency Center
API takes a domain or an advertiser ID and returns 40 ads per search by
default. A filter narrows the list to one platform, such as YouTube.

Each ad's text takes one more search. SerpApi counts a search that finds
no ads.

### [Apify](https://apify.com/scrapesage/google-ads-transparency-scraper)

Apify is a marketplace of web scrapers. Its most-used Ads Transparency
Center scraper takes domains, advertiser IDs or search terms.

It charges per ad scraped, plus a little more per ad for the text.

### Notable tools beyond this list

| Tool       | What it is                                                                      |
| ---------- | ------------------------------------------------------------------------------- |
| SearchApi  | A search results API. Takes a domain or an advertiser ID, from $40 a month.     |
| DataForSEO | A search data API. Cheapest per list, with a preview image instead of the text. |
| Adyntel    | An ad data API for Google, Meta, LinkedIn and TikTok, from $44 a month.         |

## What a company's Google ads tell you

A company's Google ads can be used to analyze its customer acquisition strategy,
messages, and budget. The dates show whether it still advertises.

One company can advertise from several advertiser accounts. Apollo's ads
came from five, all linking to apollo.io.

A lookup by domain returns the ads that link to that domain. For most
companies, those are their own ads. For a marketplace, they are often its
users' ads. When we looked up craigslist.org, the newest ads came from two
businesses selling auto repair and towing, not from Craigslist. For
marketplaces and app stores, look up the advertiser ID instead.

For sales teams, a company running Google ads is paying for growth right
now. Our post on [sales signals](/blog/sales-signals) explains the
different types of signals and how to turn them into campaigns.

Meta keeps its ads in a separate library. The same question for Facebook
and Instagram is answered in
[the best Meta Ad Library APIs](/blog/meta-ad-library-api).

## Get Google ads in pipe0

You can run the Google ads lookup on a list in
[a pipe0 sheet](/docs/sheets) (visually), or call it through the API. To
check whether a company still advertises, set the limit to 1: pipe0
returns the newest ad first. The request, for two domains:

**pipe0 SDK**

```typescript
import { Pipe0 } from "@pipe0/client";

const pipe0 = new Pipe0({ apiKey: process.env.PIPE0_API_KEY });

const result = await pipe0.pipes.pipe({
  config: { environment: "sandbox" },
  pipes: [
    {
      pipe_id: "ads:google:waterfall@1",
      config: { limit: 1 },
    },
  ],
  input: [
    { id: "1", company_domain: "basecamp.com" },
    { id: "2", company_domain: "linear.app" },
  ],
});
console.log(result);
```

**Python**

```python
import os
import requests

response = requests.post(
    "https://api.pipe0.com/v1/pipes/run/sync",
    headers={"Authorization": f"Bearer {os.environ['PIPE0_API_KEY']}"},
    json={
        "config": {"environment": "sandbox"},
        "pipes": [
            {
                "pipe_id": "ads:google:waterfall@1",
                "config": {"limit": 1},
            }
        ],
        "input": [
            {"id": "1", "company_domain": "basecamp.com"},
            {"id": "2", "company_domain": "linear.app"},
        ],
    },
)
print(response.json())
```

**cURL**

```bash
curl -X POST "https://api.pipe0.com/v1/pipes/run/sync" \
  -H "Authorization: Bearer $PIPE0_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "config": { "environment": "sandbox" },
  "pipes": [
    {
      "pipe_id": "ads:google:waterfall@1",
      "config": { "limit": 1 }
    }
  ],
  "input": [
    { "id": "1", "company_domain": "basecamp.com" },
    { "id": "2", "company_domain": "linear.app" }
  ]
}'
```

## FAQ

### How do I get a company's YouTube ads by API?

YouTube ads sit in the Google Ads Transparency Center as video creatives under the advertiser's account. SerpApi and SearchApi take a platform filter set to YouTube. pipe0's Google ads lookup returns them with the format video, next to the company's search and image ads.

### Where can I download Google's political ad data?

Google publishes election ads from verified advertisers in its Political Ads Transparency Report, also available as the BigQuery public dataset google_political_ads. It starts in 2018 and keeps ads for seven years. It holds no commercial ads.

## Sources

- [Ads transparency (Google Advertising Policies Help)](https://support.google.com/adspolicy/answer/13733850)
- [Ads Transparency Center dataset README](https://storage.googleapis.com/ads-transparency-center/api-data/README.txt)
- [Getting started with the Political Ads Transparency Report dataset](https://cloud.google.com/blog/topics/developers-practitioners/how-get-started-political-ads-transparency-report-dataset)
- [Google Ads API forum, "Google Ads Transparency Center"](https://groups.google.com/g/adwords-api/c/ajtctkqokEc)
- [Google Ads lookup (pipe0 docs)](https://pipe0.com/docs/pipe-catalog/ads:google:waterfall/1)
- [Google Ads Transparency Center API](https://serpapi.com/google-ads-transparency-center-api)
- [Google Ads Transparency Center Ad Details API](https://serpapi.com/google-ads-transparency-center-ad-details)
- [SerpApi pricing](https://serpapi.com/pricing)
- [Google Ads Transparency Center API docs](https://www.searchapi.io/docs/google-ads-transparency-center-api)
- [Google Ads Transparency Center Ad Details API docs](https://www.searchapi.io/docs/google-ads-transparency-center-ad-details-api)
- [SearchApi pricing](https://www.searchapi.io/pricing)
- [Live Google Ads Search Advanced](https://docs.dataforseo.com/v3/serp/google/ads_search/live/advanced.md)
- [DataForSEO Ads Transparency API pricing](https://dataforseo.com/apis/serp-api/ads-transparency-api)
- [Google Ads Transparency Center Scraper & API](https://apify.com/scrapesage/google-ads-transparency-scraper)
- [Adyntel pricing](https://adyntel.com/#pricing)
- [Google Ads Search API reference](https://leadmagic.io/docs/v1/reference/google-ads-search)
- [LeadMagic pricing](https://leadmagic.io/pricing)