[Integrations](https://spiral.ai/integrations) › [Gemini](https://spiral.ai/integrations/gemini) › [Facebook Ad Library ads](https://spiral.ai/integrations/gemini/facebook-ad-library-ads)

# How to Use Facebook Ad Library ads in Gemini

Find Meta ads by keyword, with ad copy, images, videos, advertiser details, and active status. Use it to compare offers and creative approaches across advertisers.

|  |  |
| --- | --- |
| Model | Facebook Ad Library ads |
| Available through | ScrapeCreators |
| Category | Social Media |
| Price | $0.0013 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Facebook Ad Library ads in Gemini

- Use Facebook Ad Library ads to search running shoes among active ads in the United States. Group the returned examples by offer and call to action.
- Use Facebook Ad Library ads to search Patagonia in Canada and summarize the returned ad copy, creative formats, and platforms.
- Use Facebook Ad Library ads to search trail running among active English-language ads in the United Kingdom. Show five returned examples with advertiser names and ad IDs.
- Scrape https://example.com/pricing with Facebook Ad Library ads and turn it into a comparison table.
- Crawl the docs at https://docs.example.com with Facebook Ad Library ads and summarize each section.

## How to set up Facebook Ad Library ads in Gemini

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

### Use the Gemini connector

1. **Open Connected Apps**: On your computer, go to gemini.google.com. At the bottom, click Settings › Connected Apps. If you don't see Connected Apps, click Personal Intelligence first, then Connected Apps.

2. **Add Spiral as a custom app**: Under Custom apps, click Add a custom app and paste this MCP server URL:

```text
https://api.spiral.ai/mcp
```

3. **Sign in to Spiral and approve**: Follow the on-screen instructions. Spiral opens: sign in, pick the organization and click Authorize. No API key.

### Use the Spiral skill

1. **Send Gemini 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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Facebook Ad Library ads**: One request; the result comes back by polling or a webhook.

```bash
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/facebook-adlibrary-search-ads",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: Gemini finds Facebook Ad Library ads on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini

## Facebook Ad Library ads tools and prices

- [Facebook Ad Library · Search](https://spiral.ai/tools/scrapecreators/scrapecreators/facebook-adlibrary-search-ads) (ScrapeCreators): Up to $0.0013 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| trim |  | — | Set to true for a trimmed down version of the response |
| cursor |  | — | Cursor to paginate through results |
| status | ALL, ACTIVE, INACTIVE | — | Status of the ad. Defaults to ACTIVE. |
| ad_type | all, political_and_issue_ads | — | Search for all ads or only political and issue ads |
| country |  | — | This can only be one country. It has to be the 2 letter code for the country. It defaults to ALL. |
| sort_by | total_impressions, relevancy_monthly_grouped | — | Sort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions. |

## What can you do with Facebook Ad Library ads in Gemini?

Prepare a Meta advertiser research brief with named Pages and concrete creative examples. A chat app can compare returned advertiser identities and summarize ad messages, offers, and calls to action.

### Competitor research brief

Identify the Facebook Pages associated with Nike and Adidas, then compare keyword-matched ads by message, offer, format, and call to action.

### Advertiser identity review

Compare advertiser names and Page IDs found in ad results with name-search matches. Flag similarly named Pages for review before attributing a campaign to a brand.

### Agency research handoff

Prepare a client research sheet with advertiser Page IDs and Instagram identities, alongside examples of keyword-matched ad copy and creative formats.

### Brand portfolio review

Find candidate Pages for Nike and Nike Football, then organize matching ad results by returned Page ID so separate brand properties stay separate.

### Creative planning

Search ads mentioning running shoes and group the returned copy, images, videos, and calls to action into themes for a new creative brief.

## Overview

- [ScrapeCreators](https://spiral.ai/providers/scrapecreators)
- [All Gemini guides](https://spiral.ai/integrations/gemini)

## Facebook Ad Library ads in other agents

- [Amp](https://spiral.ai/integrations/amp/facebook-ad-library-ads)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/facebook-ad-library-ads)
- [Claude](https://spiral.ai/integrations/claude-desktop/facebook-ad-library-ads)
- [Claude Code](https://spiral.ai/integrations/claude-code/facebook-ad-library-ads)
- [Cline](https://spiral.ai/integrations/cline/facebook-ad-library-ads)
- [Codex](https://spiral.ai/integrations/codex/facebook-ad-library-ads)
- [Cursor](https://spiral.ai/integrations/cursor/facebook-ad-library-ads)
- [Devin](https://spiral.ai/integrations/devin/facebook-ad-library-ads)
- [dots](https://spiral.ai/integrations/dots/facebook-ad-library-ads)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/facebook-ad-library-ads)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/facebook-ad-library-ads)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/facebook-ad-library-ads)
- [goose](https://spiral.ai/integrations/goose/facebook-ad-library-ads)
- [Grok](https://spiral.ai/integrations/grok/facebook-ad-library-ads)
- [Grok Build](https://spiral.ai/integrations/grok-build/facebook-ad-library-ads)
- [Hermes](https://spiral.ai/integrations/hermes/facebook-ad-library-ads)
- [Instinct](https://spiral.ai/integrations/instinct/facebook-ad-library-ads)
- [Manus](https://spiral.ai/integrations/manus/facebook-ad-library-ads)
- [Muse](https://spiral.ai/integrations/muse/facebook-ad-library-ads)
- [Muse Code](https://spiral.ai/integrations/muse-code/facebook-ad-library-ads)
- [n8n](https://spiral.ai/integrations/n8n/facebook-ad-library-ads)
- [Notion](https://spiral.ai/integrations/notion/facebook-ad-library-ads)
- [OpenClaw](https://spiral.ai/integrations/openclaw/facebook-ad-library-ads)
- [opencode](https://spiral.ai/integrations/opencode/facebook-ad-library-ads)
- [Perplexity](https://spiral.ai/integrations/perplexity/facebook-ad-library-ads)
- [Raycast](https://spiral.ai/integrations/raycast/facebook-ad-library-ads)
- [VS Code](https://spiral.ai/integrations/vscode/facebook-ad-library-ads)
- [Windsurf](https://spiral.ai/integrations/windsurf/facebook-ad-library-ads)
- [Zapier](https://spiral.ai/integrations/zapier/facebook-ad-library-ads)

## More Gemini guides

- [Facebook Ad Library ad creative and status](https://spiral.ai/integrations/gemini/facebook-ad-library-ad-creative-and-status)
- [Facebook Ad Library advertisers](https://spiral.ai/integrations/gemini/facebook-ad-library-advertisers)
- [DEV Community article list](https://spiral.ai/integrations/gemini/dev-community-article-list)
- [Facebook Ad Library company ads](https://spiral.ai/integrations/gemini/facebook-ad-library-company-ads)
- [DEV Community article comments](https://spiral.ai/integrations/gemini/dev-community-article-comments)
- [Facebook Ad Library video transcript](https://spiral.ai/integrations/gemini/facebook-ad-library-video-transcript)

## Questions about Facebook Ad Library ads in Gemini

**Can Gemini use Facebook Ad Library ads?**

Yes. Add Spiral to Gemini as an MCP server, and Gemini can find and run Facebook Ad Library ads like any built-in tool.

**How much does Facebook Ad Library ads cost in Gemini?**

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

**Do I need a ScrapeCreators account to use Facebook Ad Library ads in Gemini?**

No. Spiral runs Facebook Ad Library ads on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Facebook Ad Library ads in Gemini?**

About two minutes: open Connected Apps, then add Spiral as a custom app, then sign in to Spiral and approve.

**Does Gemini wait while Facebook Ad Library ads runs?**

Facebook Ad Library ads runs in the background. Gemini starts the run, checks on it and gives you the json when it's ready.

**Which platforms does the Meta Ad Library cover?**

Meta describes the library as covering ads currently running across its technologies. Ad search results identify placements such as Facebook and Instagram.

**How quickly do new ads appear?**

Meta says an ad appears within 24 hours of its first impression. A campaign can therefore start delivering before it becomes visible in the library.

**Can I research older commercial ads?**

Meta retains ads of any type delivered to the UK or EU during the past year. That regional archive extends beyond the library's coverage of currently running ads.

**How long are political and social issue ads retained?**

Meta retains ads about social issues, elections, or politics in its public Ad Library for seven years.

**What advertiser information can I find?**

Advertiser search returns Facebook Page IDs. Its documented response also includes Page names, verification status, Facebook likes, Instagram usernames, and Instagram follower counts.

