Spiral gives your agent every tool with one account. Browse the tools →

Claude Code · Social Media

How to Use Google ad details in Claude Code

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 Claude Code

Copy an example into Claude Code, 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.

Google ad detailsClaude Code
Try asking
  • 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 Claude Code

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server

    This adds Spiral to the current project. Add --scope user to use it in every project.

    claude mcp add --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

Use the Spiral skill

  1. Send Claude Code this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. 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: Claude Code 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.

ScrapeCreatorsSocial Media
Google Ad Library · Ad Details
scrapecreators/google-ad

Settings you can ask for

Ask Claude Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Cache max age1d, 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 Claude Code?

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.

Questions about Google ad details in Claude Code

Can Claude Code use Google ad details?

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Google ad details like any built-in tool.

How much does Google ad details cost in Claude Code?

$0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

Do I need a ScrapeCreators account to use Google ad details in Claude Code?

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 Claude Code?

About two minutes: add the hosted server, then sign in.

Does Claude Code wait while Google ad details runs?

Google ad details runs in the background. Claude Code 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.

Get started

Start using Google ad details in Claude Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Claude Code:

Set up Claude Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options