Your competitors already paid to learn which ads work. Google publishes those ads in the Google Ads Transparency Center, and with about 20 lines of Python you can pull them into a spreadsheet.
In this tutorial you will get, for any brand or domain:
- The ad text (headlines, descriptions, call to action)
- YouTube links for video ads and image URLs for display ads
- Landing pages, countries and the first and last date each ad ran
- Who paid for the ad (often the agency behind it)
Full disclosure: I built the scraper used here. The code works the same with any Apify Actor that has a similar input.
The problem
The Transparency Center is built for people, not for code. You search one advertiser, scroll, and open each ad one by one to read its text.
That is fine for one brand. It breaks when you need 10 competitors, several countries, or a weekly check for new ads. There is no simple REST endpoint for it, and many text ads are stored as images, so a plain HTML request gets you almost nothing.
Setup (2 minutes)
- Create a free account at apify.com. The free plan includes monthly credits, enough to test this.
- Copy your API token from Settings → API & Integrations in the Apify Console.
- Install the client and save the token as an environment variable, so it never ends up in your code:
pip install "apify-client>=3" export APIFY_TOKEN="your_token_here" The code
This script gets the latest ads for two domains in the US, with full ad details, and stops at 50 ads so the cost stays tiny. It prints only the ads that come with readable text (more on that below).
import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "queries": ["nike.com", "adidas.com"], # domains, brand names or advertiser IDs "region": "US", # or "anywhere", "GB", "DE", "MX"... "adFormat": "all", # all / text / image / video "maxAdsPerQuery": 25, "includeAdDetails": True, # ad text, videos, landing pages, countries "maxTotalItems": 50, # hard cap on spend } run = client.actor("neronbaez/google-ads-transparency-scraper").call(run_input=run_input) for ad in client.dataset(run.default_dataset_id).iterate_items(): text = " / ".join(ad.get("adTexts", [])[:4]) if not text: continue # archived as a screenshot: see "Two things to know" below print(ad["advertiserName"], "|", ad["format"], "|", ad.get("daysShown"), "days") print(" ", text) Real output from a run on November 25, 2026 (two of the ads):
Nike Retail BV | TEXT | 432 days Sponsored / nike.com / Nike Black Friday Days Are On / <Rating (Reviews)> · <Distance> · Cannock Adidas America, Inc | TEXT | 1810 days Sponsored / adidas.com / adidas Official Site / <Rating (Reviews)> · <Distance> · Pottstown Search by domain (nike.com) when you want everything: big brands run one advertiser account per country, and the domain search finds all of them.
What you get back
Each ad comes back as one JSON object. A real one from Nike, trimmed:
{ "advertiserName": "Nike Retail BV", "format": "TEXT", "firstShown": "2021-10-25T07:00:00+00:00", "lastShown": "2026-10-16T07:56:41+00:00", "daysShown": 1777, "domain": "nike.com", "paidBy": "Nike Retail BV", "adTexts": ["Nike - Online Store", "Any Place. Any Time. Any Condition. Be Your Best Every Time With Nike Shoes And Clothing."], "regions": [{"country": "DK", "lastShownDate": "2026-10-14"}], "adUrl": "https://adstransparency.google.com/advertiser/AR18378488041124659201/creative/CR02364365752552652801" } The field that matters most is daysShown. Advertisers stop paying for ads that lose money, so an ad that has run for months is almost always a winner. Sort by it and you have your competitor's best-performing copy.
Two things to know
Many text ads are screenshots. Google archives a large share of text ads as images. In my test, 34 of 50 ads came with adTexts empty. For those, the ad is in imageUrls: open the image to read it, or run your own OCR on it.
"US" means "shown in the US", not "from a US account". With "region": "US" you also get global campaigns that ran in the US, so accounts like Nike Japan can appear. To keep only ads shown exclusively in one country, add "onlyAdsForThisCountry": True (fewer results, slower runs).
Going further
Save the winners to CSV. Add this after the run to get a sheet sorted by longest-running ad:
import csv ads = list(client.dataset(run.default_dataset_id).iterate_items()) ads.sort(key=lambda a: a.get("daysShown") or 0, reverse=True) with open("competitor_ads.csv", "w", newline="", encoding="utf-8") as f: w = csv.writer(f) w.writerow(["advertiser", "format", "days_shown", "text", "image", "link"]) for a in ads: w.writerow([a["advertiserName"], a["format"], a.get("daysShown"), " / ".join(a.get("adTexts", [])), (a.get("imageUrls") or [""])[0], a["adUrl"]]) Monitor new ads every week. Create a schedule for the Actor in the Apify Console and compare each run's creativeId values with the previous run. New IDs are new ads.
Cost. You pay per ad: $0.003 for an ad with full details, so 1,000 competitor ads cost about $3. Use maxTotalItems to cap every run.
Wrap-up
In a few minutes you went from clicking through the Transparency Center to a CSV of every ad your competitors run, sorted by what works.
You can try the Google Ads Transparency Scraper on Apify without writing any code, or call it from Python as shown above. If you need a field or filter it doesn't have yet, open an issue on the Actor page and I'll add it.
What would you build with this data? Tell me in the comments.
