> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stophy.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Google ads

> Read a Google Ads Transparency Center advertiser page as JSON with the google-ads parser. $1 per 1,000 calls. Send the page to scrape.

Reads a Google Ads Transparency Center advertiser page, ad page or search page with a domain, and returns its data as JSON.

## Make a request

Send the page's URL to [scrape](https://docs.stophy.dev/api-reference/endpoint/scrape.md) with a `json` format that names the parser. This parser works without an API key when you send no options, up to 10 calls a minute and 50 calls a day per IP address. See [Rate limits](https://docs.stophy.dev/production/rate-limits.md). To lift the limits, get an API key in the [Quickstart](https://docs.stophy.dev/quickstart).

```bash cURL theme={null}
curl -X POST https://api.stophy.dev/v1/scrape \
  -H "Authorization: Bearer $STOPHY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://adstransparency.google.com/?region=US&domain=nike.com","formats":[{"type":"json","parser":"google-ads"}]}'
```

```typescript TypeScript theme={null}
const response = await fetch("https://api.stophy.dev/v1/scrape", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.STOPHY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://adstransparency.google.com/?region=US&domain=nike.com",
    formats: [{ type: "json", parser: "google-ads" }],
  }),
});
console.log(await response.json());
```

```python Python theme={null}
import os

import requests

response = requests.post(
    "https://api.stophy.dev/v1/scrape",
    headers={"Authorization": f"Bearer {os.environ['STOPHY_API_KEY']}"},
    json={
        "url": "https://adstransparency.google.com/?region=US&domain=nike.com",
        "formats": [{"type": "json", "parser": "google-ads"}],
    },
)
print(response.json())
```

## Read the response

The parser's data is in `data.json`. Its fields include `adId`, `adUrl`, `advertiserId`, `advertiserName`, `advertiserUrl` and `domain`. This sample is cut to the first items.

```json theme={null}
{
  "success": true,
  "data": {
    "json": {
      "results": [
        {
          "adId": "CR00802554745662210049",
          "adUrl": "https://adstransparency.google.com/advertiser/AR16735076323512287233/creative/CR00802554745662210049",
          "advertiserId": "AR16735076323512287233",
          "advertiserName": "Nike, Inc.",
          "advertiserUrl": "https://adstransparency.google.com/advertiser/AR16735076323512287233",
          "domain": "nike.com",
          "format": "video",
          "firstShownAt": "2026-11-03T18:57:15.000Z",
          "lastShownAt": "2026-11-04T21:31:04.000Z",
          "daysShown": 2,
          "previewUrl": "https://displayads-formats.googleusercontent.com/ads/preview/content.js?client=ads-integrity-transparency&obfuscatedCus…",
          "imageUrl": null
        }
      ],
      "totalMin": 8000,
      "totalMax": 9000,
      "cursor": "CgoAP7zmghyLjfUzEhCWvRtPpsg95u2/n40AAAAAGgn8+GWT+NWZIHk="
    }
  }
}
```

## Options

Send options in the `options` object of the `json` format.

| Option | What it does |
| - | - |
| `view` | Picks one of the answers this parser can give: `advertisers`. |
| `query` | A domain like nike.com. Google's library finds ads by domain or advertiser, not by keyword. |
| `platform` | Google's own Platform filter: where the ad was shown. Google leaves out ads shown before 4 September 2023 when it is set. |
| `shownFrom` | Google's own Date range: ads shown on or after this day. |
| `shownTo` | Google's own Date range: ads shown on or before this day. |
| `cursor` | The cursor from the previous response. Send it as is. |

It also takes `advertiser` and `mediaType`.

## Price

\$1 per 1,000 calls. Works without an API key, within the free limits. See [Pricing](https://docs.stophy.dev/account/pricing.md).

## Limits and errors

* The URL must be a Google Ads Transparency Center advertiser page, ad page or search page with a domain. Set options.view to advertisers on a search page to look up advertisers by the domain's name. Any other URL fails with `invalidRequest`.
* To read the next page, send the `cursor` from the response as the `cursor` option. Paging needs an API key.
* The answer comes back in `data.json`. If the page cannot be read, the call fails with an error code from [Errors](https://docs.stophy.dev/api-reference/errors.md).

## Related

* [Pre-built parsers](https://docs.stophy.dev/scrape/prebuilt-parsers) lists every parser.
* [Scrape](https://docs.stophy.dev/scrape/overview) has the options every scrape takes.
* [Google Patents](https://docs.stophy.dev/scrape/prebuilt-parsers/web/google-patents.md)
* [Google Trends](https://docs.stophy.dev/scrape/prebuilt-parsers/web/google-trends.md)
* [Google Maps](https://docs.stophy.dev/scrape/prebuilt-parsers/places-and-travel/google-maps.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.