Resolve a brand or domain to a Google advertiser id, then pull every ad it runs across Search, YouTube, Shopping, Maps and Play, and open one creative with its full region and impression history. 3 endpoints, 1 credit each.
---
name: google-ads-transparency-api
description: Resolve a brand or domain to a Google advertiser id, then pull every ad it runs across Search, YouTube, Shopping, Maps and Play, and open one creative with its full region and impression history. 3 endpoints, 1 credit each.
version: 1.0.0
tags: google-ads, ads-transparency, ad-library, competitor-ads, ad-creative, ad-intelligence, ppc-research, paid-search, youtube-ads, political-ads, advertiser-lookup, marketing-research, agents, langchain, crewai, autogen, structured-data, json, ai-agents
metadata:
openclaw:
requires:
env:
- SCAVIO_API_KEY
primaryEnv: SCAVIO_API_KEY
timeout: 120
throttle: 1
emoji: "\U0001F4E2"
homepage: https://scavio.dev/docs/google-ads-advertisers?utm_source=agent-skills&utm_medium=skill&utm_campaign=google-ads-transparency-api
---
# Google Ads Transparency via Scavio
Resolve a brand name or domain to a verified Google advertiser id, pull every ad that advertiser is running across Search, YouTube, Shopping, Maps and Play, and open any single creative for its full per-region history. All three endpoints return structured JSON from Google's Ads Transparency Center.
## When to trigger
Use this skill when the user asks to:
- See what ads a competitor is running on Google, YouTube or Shopping right now
- Find a brand's verified Google advertiser id
- Pull ad creatives with their first-seen and last-seen dates and how long they actually ran
- Break one creative down by region, surface and impression bucket
- Research political or issue ads and their funder disclosures
- Build ad-intelligence, creative-swipe or competitor-monitoring pipelines
## Setup
Get a free API key at [scavio.dev](https://scavio.dev/?utm_source=agent-skills&utm_medium=skill&utm_campaign=google-ads-transparency-api) (50 free credits to get started, no card required):
```bash
export SCAVIO_API_KEY=sk_live_your_key
```
### If you do not have a key yet
An agent running this skill without `SCAVIO_API_KEY` set will get `401` on every
call below. The whole path from nothing to a working key is self-serve:
1. Sign up at [dashboard.scavio.dev](https://dashboard.scavio.dev/sign-up?utm_source=agent-skills&utm_medium=skill&utm_campaign=google-ads-transparency-api) - email or Google, no card required.
2. A key is created for the account automatically at signup. It is on the dashboard under API Keys, ready to copy.
3. A new account starts with 50 credits. Endpoints in this skill cost 1 credit each unless the table below says otherwise.
When the balance runs out the API answers `402` with a JSON body carrying
`billing_url`. Topping up needs no code change - the same key keeps working.
The smallest purchase is 2,500 credits for $25, and monthly plans work out
cheaper per credit if the usage is steady rather than one-off.
Every request is a `POST` with a JSON body and:
```
Authorization: Bearer $SCAVIO_API_KEY
```
## Endpoints
Base URL: `https://api.scavio.dev`. All paths are under `/api/v1/googleads`. Every endpoint costs **1 credit**.
| Endpoint | Credits | What it returns |
|---|---|---|
| `POST /api/v1/googleads/advertisers` | 1 | **Start here.** Brand or domain to advertiser id. No pagination. |
| `POST /api/v1/googleads/search` | 1 | Every ad for one advertiser, 100 per cursor page |
| `POST /api/v1/googleads/creative` | 1 | One creative in full, with its region and impression history |
## Workflow
**Look up first.** `/search` and `/creative` are keyed by `advertiser_id`.
1. **Resolve:** call `/googleads/advertisers` with a brand name or a domain. A name query returns two kinds of row - `advertiser` rows with the id, verified name, verification country and total ad count, and `domain` rows carrying a website. A domain-shaped query returns domains only. A full URL is fine - Google reduces it to the registrable host itself. **Pass `region` for any non-US advertiser:** this endpoint defaults to the United States, so a brand that runs no US ads returns an empty list, which reads like "not found" rather than "wrong country".
2. **Pull the ads:** call `/googleads/search` with `advertiser_id` **or** `domain`, plus filters.
3. **Open one creative:** call `/googleads/creative` with the `advertiser_id` **and** `creative_id` **pair**.
### Query by domain when you need the domain back
`domain` is dropped entirely from every row when the query is by `advertiser_id`. Querying by `domain` is the **only** way to get that field back on each row. Choose the query shape based on what you need in the output.
### Pagination
- **`/search` paginates by cursor**: send `cursor` and read `next_cursor` back, 100 rows per page. **Re-send the same filters** alongside the cursor. `next_cursor` is `null` once the set is exhausted.
- **`limit` is capped at 100, and that is a hard upstream ceiling, not our policy.** Google answers a request for more than 100 with **zero rows** rather than an error, so an over-large limit looks like "this advertiser has no ads".
- **`/advertisers` does not paginate** - it is an autocomplete, roughly 20 rows per arm.
- **`/creative` does not paginate.**
## Parameters
### Advertisers (`/advertisers`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `query` | string | required | Brand name or domain (1-200 chars) |
| `region` | string | `US` | ISO alpha-2 (`US`, `GB`, `DE`) or a Google geo criteria id as a string (2-12 chars). **Defaults to the United States, not worldwide** - the lookup runs against one country index at a time, so an advertiser who runs no US ads comes back as an empty list rather than an error. Set it to a country the advertiser actually advertises in. |
| `limit` | integer | `10` | 1-20, **per arm** - advertisers and domains are capped separately, so a name query can return up to twice this many rows |
### Search (`/search`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `domain` | string | one of | Bare host, www host or full URL (1-253 chars), reduced to the registrable host. The only way to get `domain` back on each row. |
| `advertiser_id` | string | one of | e.g. `AR16735076323512287233` (3-40 chars). The shape is checked before any request, so a typo costs nothing. |
| `region` | string | -- | ISO alpha-2 or a Google geo criteria id. Default: no region filter (worldwide). |
| `format` | string | -- | `text`, `image`, `video`. Default: all formats. |
| `platform` | string | -- | `play`, `maps`, `search`, `shopping`, `youtube`. Default: all surfaces. |
| `topic` | string | `all` | `all` or `political` |
| `limit` | integer | `40` | 1-100. **100 is a hard upstream ceiling** - larger returns zero rows. |
| `cursor` | string | -- | `next_cursor` from the previous response. Re-send the same filters with it. |
`domain` or `advertiser_id` is required.
**The three format sets are disjoint.** An advertiser's text, image and video ads share no creatives, so a `format` filter partitions the library rather than ranking within it. To see everything, omit `format`.
**`region` scopes the deep links on every row**, and the same advertiser can share **zero** creatives between two countries. A region-filtered empty result does not mean the advertiser is inactive.
### Creative (`/creative`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `advertiser_id` | string | required | 3-40 chars |
| `creative_id` | string | required | 3-40 chars. Must belong to the `advertiser_id` sent with it - the lookup is keyed by the **pair**, and a mismatched pair is a `404`. |
## Impressions and reach are EEA-only
`impressions_min`, `impressions_max` and `first_shown` come back **`null` outside the EEA**. Google is compelled to publish reach data by EU law and publishes it **only where law requires**, so a US creative simply has no impression figures. This is not a bug, not a parsing gap, and not something a retry will fix.
If the user wants reach numbers, query an EEA region. If they are looking at a US advertiser, tell them the data does not exist rather than reporting zero.
## Everything Google publishes as a range
Google never publishes an exact ad count. The advertiser's headline total arrives as `total_ads_min` / `total_ads_max`, and impression buckets on `/creative` behave the same way - a row can carry a lower bound, an upper bound, or **one of the two alone**. Report ranges as ranges; never present a bound as a precise figure.
## Examples
```python
import requests
BASE = "https://api.scavio.dev"
# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
# 1. Resolve the brand to a verified advertiser id - always start here
who = requests.post(f"{BASE}/api/v1/googleads/advertisers", headers=HEADERS,
json={"query": "Notion", "region": "DE", "limit": 20}).json()
# 2. Every ad they run in Germany. EEA region, so impressions are populated.
ads = requests.post(f"{BASE}/api/v1/googleads/search", headers=HEADERS,
json={"advertiser_id": "AR16735076323512287233", "region": "DE",
"platform": "youtube", "limit": 100}).json()
# 2b. Query by domain instead when you need `domain` back on each row
by_domain = requests.post(f"{BASE}/api/v1/googleads/search", headers=HEADERS,
json={"domain": "notion.so", "region": "DE", "limit": 100}).json()
# 3. One creative in full - the advertiser_id + creative_id PAIR
creative = requests.post(f"{BASE}/api/v1/googleads/creative", headers=HEADERS,
json={"advertiser_id": "AR16735076323512287233", "creative_id": "CR1234567890"}).json()
```
Cursor paging. Re-send the same filters every time, and cap the walk:
```python
def all_ads(body, max_pages=5):
"""1 credit per page, 100 rows per page. Same filters on every call."""
cursor, pages = None, []
for _ in range(max_pages):
payload = {**body, **({"cursor": cursor} if cursor else {})}
data = requests.post(f"{BASE}/api/v1/googleads/search",
headers=HEADERS, json=payload).json()["data"]
pages.append(data)
cursor = data.get("next_cursor")
if not cursor:
break
return pages
pages = all_ads({"advertiser_id": "AR16735076323512287233", "region": "DE", "limit": 100})
```
## Response shapes
Every response uses the envelope `{ data, response_time, credits_used, credits_remaining }`.
- **advertisers** - two row kinds in one list. `advertiser` rows carry the id, verified name, verification country and total ad count **as a range**; `domain` rows carry a website.
- **search** - the creative (archived image, rich-media bundle, Google's renderer link, dimensions), advertiser id and name, format, first and last seen dates, how many days it actually ran, plus `total_ads_min` / `total_ads_max` and `next_cursor`. `domain` appears on each row **only** when the query was by domain.
- **creative** - every size variation of the asset, the impression bucket, the per-region breakdown with first and last shown dates and a per-surface impression split inside each region, the format, Google's category label, and the funder disclosure on political ads. This is the **only** endpoint carrying a creative's history.
## Guardrails
- Every call is 1 credit, including a 100-row page. Budget the walk before starting it.
- Never send `limit` above 100. Google returns **zero rows** for an over-large request, which reads as "no ads" and is the single easiest way to report a false negative here.
- Never report `null` impressions as zero impressions. Outside the EEA the figure is not published at all - say so.
- Never convert `total_ads_min` / `total_ads_max` into a single number. Google publishes a range on purpose.
- A `format` filter partitions a disjoint set. Do not describe a video-only pull as "all their ads".
- A region-filtered empty result means nothing about the advertiser globally - the same advertiser can share zero creatives between two countries.
- `/creative` is keyed by the advertiser + creative pair. Do not carry a creative id across advertisers.
- Never fabricate advertiser ids, creative ids, run dates, impression figures or funder names. Only return API data.
- This is public transparency data. When summarising political ads, quote the disclosure rather than characterising the funder.
## Failure handling
- `400` means an invalid or missing parameter - e.g. neither `domain` nor `advertiser_id`. The advertiser id shape is validated before any upstream request, so a typo there costs nothing. Fix and retry.
- `401` means the API key is invalid or missing. Check `SCAVIO_API_KEY`.
- `404` on `/creative` usually means the `advertiser_id` and `creative_id` do not belong together. Re-pull the creative id from `/search` for that advertiser.
- `429` means rate or usage limit exceeded. Wait before retrying. See [rate limits](https://scavio.dev/docs/rate-limits?utm_source=agent-skills&utm_medium=skill&utm_campaign=google-ads-transparency-api).
- `502` / `503` mean upstream is temporarily unavailable - wait a few seconds and retry.
- Zero rows from `/search` with a large `limit` is almost always the 100 ceiling, not an empty advertiser. Drop `limit` to 100 and retry before concluding anything.
- If `SCAVIO_API_KEY` is not set, prompt the user to export it before continuing.
## Python SDK
`langchain-scavio` has no Google Ads Transparency tool - use the Scavio SDK directly:
```bash
pip install scavio==0.15.0
```
```python
from scavio import ScavioClient
client = ScavioClient() # reads SCAVIO_API_KEY
who = client.google_ads.advertisers("Notion", region="DE", limit=20)
page1 = client.google_ads.search(advertiser_id="AR16735076323512287233",
region="DE", limit=100)
page2 = client.google_ads.search(advertiser_id="AR16735076323512287233",
region="DE", limit=100,
cursor=page1["data"]["next_cursor"])
creative = client.google_ads.creative("AR16735076323512287233", "CR1234567890")
```
JavaScript / TypeScript:
```bash
npm install scavio@0.15.0
```
```js
import { Scavio } from "scavio";
const scavio = new Scavio(); // reads SCAVIO_API_KEY
const ads = await scavio.googleAds.search({ domain: "notion.so", region: "DE", limit: 100 });
```
don't have the plugin yet? install it then click "run inline in claude" again.
extracted and formalized the original's implicit decision tree, added edge cases around rate limits and 100-row ceiling, made eea-only impression data and region scoping explicit in outputs and signals, clarified advertiser id lifecycle across all three steps, and added explicit credit budgeting and account setup guardrails in inputs.
pull every ad a competitor or brand is running right now across google search, youtube, shopping, maps and play by resolving their brand name or domain to a verified google advertiser id, then fetch ad creatives with regional impression history. use this skill when you need to see what ads a competitor is running live, break down one creative's reach by country and surface, research political ad funding, or build ad intelligence pipelines. all responses are structured json from google's ads transparency center, three endpoints at 1 credit each.
required environment variable:
SCAVIO_API_KEY: api key from scavio.dev. get it free at https://dashboard.scavio.dev/sign-up (50 free credits included, no card required). set via export SCAVIO_API_KEY=sk_live_your_key.external connection:
POST with json body and bearer token auth header.account setup:
402 with a billing_url in the json body. top up at https://dashboard.scavio.dev/billing (smallest purchase is 2,500 credits for $25; monthly plans available). the same key continues working after top-up with zero code changes.rate limits and throttling:
429 means you have exceeded quota or rate cap. wait before retrying. no automatic backoff - your caller needs to handle retry logic. see "failure handling" section for details.inputs:
query (string, required): brand name or domain, 1-200 chars. examples: "Notion", "notion.so", "https://www.notion.so/path". google reduces full urls to registrable host.region (string, optional, default US): iso alpha-2 code (US, GB, DE) or google geo criteria id as string (2-12 chars). critical: this endpoint indexes one country at a time, so an advertiser who runs zero us ads returns empty list, not an error. if user is researching a non-us brand, always pass the correct region or you get false negatives.limit (integer, optional, default 10): 1-20 per arm (advertiser and domain rows are capped separately, so name query can return up to 2x this many).call:
POST https://api.scavio.dev/api/v1/googleads/advertisers
Authorization: Bearer $SCAVIO_API_KEY
Content-Type: application/json
{
"query": "Notion",
"region": "DE",
"limit": 20
}
outputs:
data (array of objects): two kinds of rows mixed together. advertiser rows carry id (the advertiser_id you need for next steps), verified_name, verification_country, total_ads_min, total_ads_max. domain rows carry website url only.response_time (string): how long the request took.credits_used (integer): always 1.credits_remaining (integer): your balance after this call.what to do with the output:
id field. this is your advertiser_id for all downstream calls.domain rows in the response. note: domain only appears on rows when this query was by domain, not by advertiser id.inputs:
advertiser_id (string) or domain (string): one is required. advertiser_id example: AR16735076323512287233 (3-40 chars). domain example: notion.so or full url like https://www.notion.so. query by domain only if you need domain back on each row in the output. if you only need ads, query by advertiser_id (faster, cleaner output).region (string, optional): iso alpha-2 or geo criteria id. default is no region filter (worldwide). when set, scopes deep links and impression figures to that country. same advertiser can have zero ad overlap between two regions.format (string, optional): text, image, or video. default is all formats. the three format sets are completely disjoint (no creative appears in more than one format), so this is a partition filter, not a ranking filter.platform (string, optional): play, maps, search, shopping, or youtube. default is all platforms.topic (string, optional, default all): all or political. political filters to issue and political ads only.limit (integer, optional, default 40): 1-100. hard upstream ceiling is 100, no exceptions. google returns zero rows if you ask for more than 100, which looks like "no ads" not "too large". cap at 100 always.cursor (string, optional): for pages after the first, pass next_cursor from previous response. re-send all other filters unchanged.call (page 1):
POST https://api.scavio.dev/api/v1/googleads/search
Authorization: Bearer $SCAVIO_API_KEY
Content-Type: application/json
{
"advertiser_id": "AR16735076323512287233",
"region": "DE",
"platform": "youtube",
"limit": 100
}
call (page 2+):
{
"advertiser_id": "AR16735076323512287233",
"region": "DE",
"platform": "youtube",
"limit": 100,
"cursor": "next_cursor_value_from_page_1"
}
outputs:
data.creatives (array of objects): each row has id (creative_id you need for step 3), advertiser_id, advertiser_name, format, first_seen, last_seen, days_active, total_ads_min, total_ads_max, creative_preview (url or image), dimensions. if query was by domain, each row also includes domain field.data.next_cursor (string or null): if not null, pass this as cursor on next call with same filters. null means you have reached the end.response_time, credits_used, credits_remaining: as step 1.what to do with the output:
id (creative_id) and the advertiser_id.next_cursor is not null and user wants more ads, make another call with the cursor and same filters. do not send cursor on first call.next_cursor is present. if it is, there are more pages. if limit was already 100, do not increase it.inputs:
advertiser_id (string, required): must match the advertiser id you got from step 1 or 2.creative_id (string, required): from step 2 output. the pair (advertiser_id, creative_id) is the key. a creative id does not carry across advertisers. mismatched pair returns 404.call:
POST https://api.scavio.dev/api/v1/googleads/creative
Authorization: Bearer $SCAVIO_API_KEY
Content-Type: application/json
{
"advertiser_id": "AR16735076323512287233",
"creative_id": "CR1234567890"
}
outputs:
data.creative_id, data.advertiser_id, data.advertiser_name: identifiers.data.format: text, image, or video.data.google_category: google's own category label for the ad.data.first_seen, data.last_seen: date the creative first and last appeared across all regions.data.regions (array): per-country breakdown. each region object has country_code, first_shown, last_shown, and impressions_min / impressions_max (null outside eea). inside each region is a surfaces array (google search, youtube, maps, shopping, play) with per-surface impression ranges.data.creative_preview: url or image data.data.funder_disclosure: present only on political ads. contains funder name and verification status.response_time, credits_used, credits_remaining: as step 1.what to do with the output:
impressions_min, impressions_max, first_shown) is populated only in eea countries (eu law mandate). outside eea these fields are null. never report null as zero. if user wants reach data, query an eea region or tell them the data does not exist outside eea.impressions_min and impressions_max as a range, never as a single number.funder_disclosure exactly when summarizing. do not characterize the funder yourself.regions array shows how the same creative performed differently by country and surface. use this to understand geographic and channel skew.if SCAVIO_API_KEY is not set: prompt the user to export it before running any call. export SCAVIO_API_KEY=sk_live_your_key. if key is missing, every endpoint returns 401.
if response is 401 (invalid or missing key): check that SCAVIO_API_KEY env var is set and not empty. if set, the key may have expired or been revoked. prompt user to regenerate at https://dashboard.scavio.dev.
if response is 400 (bad request): parameter is invalid or missing (e.g., neither domain nor advertiser_id on /search). advertiser id shape is pre-validated, so typos there cost zero credits. fix the parameter and retry.
if response is 402 (payment required): account is out of credits. prompt user to top up at https://dashboard.scavio.dev/billing. the api response json body includes billing_url. same key continues working after payment.
if response is 404 on /creative: the advertiser_id and creative_id do not belong together. re-pull the creative_id from /search for that advertiser and retry. do not carry a creative id across advertisers.
if response is 429 (rate or usage limit exceeded): you have hit quota. wait several seconds before retrying. implement exponential backoff. do not retry immediately. see https://scavio.dev/docs/rate-limits for your current limits.
if response is 502 or 503 (upstream unavailable): google's ads transparency center is temporarily down. wait 3-5 seconds and retry. if it persists, escalate or wait longer.
if /search returns zero rows with limit already set to 100: this usually means the 100-row ceiling, not an empty advertiser. do not conclude the advertiser has no ads. try a different filter (region, platform, format) or query by domain instead of advertiser_id. if you suspect google's 100-row ceiling is the issue, that is correct and expected. do not retry the same call or increase limit above 100.
if region-filtered /search returns empty: the advertiser is not active in that region or has no creatives for that region. this does not mean the advertiser is inactive globally. same advertiser can share zero creatives between two countries. try a different region or omit region to see worldwide ads.
if domain is needed in /search output: query by domain parameter instead of advertiser_id. domain appears on each row only when the query was by domain. querying by advertiser_id strips domain from all rows.
if /search has format filter set: the result set is partitioned by format (text, image, video are disjoint). do not describe a video-only pull as "all their ads". if you need all formats, omit the format parameter entirely.
if impressions or reach are null: check the region. null values for impressions_min, impressions_max, and first_shown outside eea is correct and expected. google publishes reach data only where law requires (eu). if user wants reach data and queried a non-eea region, tell them the data does not exist. if they need it, query an eea region instead.
if response is successful but credits_remaining is very low: warn the user. if they plan to walk multiple pages, budget the walk first. each page costs 1 credit.
every successful call returns a json envelope:
{
"data": { /* endpoint-specific object or array */ },
"response_time": "123ms",
"credits_used": 1,
"credits_remaining": 49
}
/advertisers output:
data is an array of mixed row types.{ type: "advertiser", id, verified_name, verification_country, total_ads_min, total_ads_max }.{ type: "domain", website }./search output:
data.creatives is an array of creative objects. each has id (creative_id), advertiser_id, advertiser_name, format, first_seen, last_seen, days_active, total_ads_min, total_ads_max, creative_preview (url or base64 image), dimensions.domain, each creative row includes domain field. if query was by advertiser_id, no domain field.data.next_cursor is a string (continue pagination) or null (end of results)./creative output:
data is a single creative object with full history.creative_id, advertiser_id, advertiser_name, format, google_category, first_seen, last_seen, creative_preview, funder_disclosure (political ads only).data.regions is an array. each region has country_code, first_shown, last_shown, impressions_min, impressions_max (null outside eea), and surfaces (array of surface objects with platform and impression ranges).success means:
after step 1, you have extracted an advertiser_id from the response and confirmed it matches the brand user asked about. the verified_name in the response matches what user wanted.
after step 2, you have retrieved a list of active ads for that advertiser. each row has a creative_id, format, first_seen and last_seen dates, and impression counts (or null if outside eea). you can see at a glance what ads are live and how old they are.
after step 3, you have opened one creative and can report:
when reporting back to user: quote exact numbers and ranges from the api response. never fabricate advertiser ids, creative ids, dates, impressions, or funder names. for political ads, quote the funder disclosure verbatim. for impressions outside eea, state explicitly that the data is not published outside the eu. for ranges, always report min and max, never collapse to a single point estimate.