How to Use Google ad details in Codex
Google ad details returns one public creative’s format, reported dates, available ad text, images, regions, and impression ranges. Use it to inspect a known ad or compare its reported details over time.
Prompts to try with Google ad details in Codex
Copy an example into Codex, or ask in your own words.
Use Google ad details for https://adstransparency.google.com/advertiser/AR01614014350098432001/creative/CR12592137366413508609 and add its available text, format, and image links to our project's creative review table.
Use Google ad details for https://adstransparency.google.com/advertiser/AR01614014350098432001/creative/CR05939968563828752385 and create a JSON fixture containing the returned advertiser ID, creative ID, and reported dates.
Use Google ad details for https://adstransparency.google.com/advertiser/AR01614014350098432001/creative/CR17970554950748471297 and display any returned impression bounds as an interval in our report component.
Use Google ad details for https://adstransparency.google.com/advertiser/AR01614014350098432001/creative/CR18446650898689032193 and add its returned regional statistics to our project's country comparison table.
Use Google ad details for https://adstransparency.google.com/advertiser/AR01614014350098432001/creative/CR12592137366413508609 and update our review screen to show the available OCR text beside its image.
How to set up Google ad details in Codex
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
codex mcp add spiral --url https://api.spiral.ai/mcp
- Sign in
Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.
codex mcp login spiral
Use the Spiral skill
- Send Codex this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Google ad details
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "scrapecreators", "model": "scrapecreators/google-ad", "input": { "url": "https://adstransparency.google.com/advertiser/AR07541154843046445057/creative/CR17778900238552006657" } }'
Then paste one of the prompts above: Codex finds Google ad details on Spiral, shows the price and runs it.
Google ad details providers and prices
Spiral runs Google ad details through ScrapeCreators. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Codex for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Cache max age | 1d, 3d, 7d, 14d, or 30d | If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "cached_at" timestamp). Otherwise, scrape a live result (1 credit). See the Caching page for details. |
Every API field of Google Ad Library · Ad Details is on its tool page: open its card above.
What can you do with Google ad details in Codex?
Build a creative review table from known Google ads, with available text, images, dates, and regional details. A coding agent can add these records to your project and preserve impression bounds as separate values.
Prepare a creative review
Turn a known public ad's available text, format, and images into a brief for a marketing review.
Compare reported ad dates
Arrange selected creatives by their available first-shown and last-shown dates to examine observed timing.
Review regional disclosures
Compare the regions and regional statistics returned for selected ads to understand their disclosed geographic distribution.
Report impression ranges
Present available lower and upper impression bounds for selected creatives in a competitor research report.
Inspect creative destinations
Review the destination URLs returned with creative variations and group selected ads by the displayed destination.
Monitor known creatives
Recheck selected public ads and compare their reported dates, regions, and impression bounds with earlier responses.
More on Google ad details and Codex
Overview
Google ad details in other agents
Questions about Google ad details in Codex
Can Codex use Google ad details?
Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Google ad details like any built-in tool.
How much does Google ad details cost in Codex?
$0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.
Do I need a ScrapeCreators account to use Google ad details in Codex?
No. Spiral runs Google ad details on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.
How long does it take to set up Google ad details in Codex?
About two minutes: add the hosted server, then sign in.
Does Codex wait while Google ad details runs?
Google ad details runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.
Which Google services does the source cover?
Google describes the Ads Transparency Center as a repository covering Search, Display, Gmail, and YouTube. ScrapeCreators retrieves public ads and excludes ads that require signing in.
How fresh are the ad details?
ScrapeCreators says live requests fetch the latest information available from Google Ad Library. First-shown and last-shown dates describe reported observations; they do not prove uninterrupted delivery between those dates.
Can I trust the returned ad copy word for word?
ScrapeCreators uses OCR to extract Google ad text and explicitly warns that it can contain errors. Check wording against the returned image before quoting an ad.
Why is the first-shown date missing?
The detail response can return a null first-shown date even when Google's company listing has one for the same creative. ScrapeCreators recommends keeping the company-list date when that happens.
Are impressions exact, and is targeting available everywhere?
The documented impression response uses minimum and maximum bounds. Google limits additional targeting and recipient disclosures to certain countries or regions, so those details are not equally available across markets.
Start using Google ad details in Codex
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Codex:
set up https://spiral.ai/SKILL.md


