# AI Ad Strategy Report from Meta Ad Library Ads (`datatools-ai/ad-library-ai-strategy-report`) Actor

Analyze Meta (Facebook and Instagram) Ad Library ads you already have. AI strategy report: hooks, angles, offers, likely winners, landing pages and 5 test ideas. English or Spanish. $0.49 per report; free demo if you provide no ads.

- **URL**: https://apify.com/datatools-ai/ad-library-ai-strategy-report.md
- **Developed by:** [DataTools AI](https://apify.com/datatools-ai) (community)
- **Categories:** AI, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 50.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $490.00 / 1,000 strategy report generateds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## AI Ad Strategy Report from Meta Ad Library Ads

| You give | You get | Cost |
|---|---|---|
| A dataset or JSON of **public Meta Ad Library ads you already have** (plus an optional description of your brand) | An HTML + JSON **ad strategy report**: angles, hooks, offers, likely winning ads, landing pages, gaps and **5 ready-to-test ad concepts** | **$0.49 per competitor report** + $0.001 start. No ads provided → **free demo** on fictional sample ads (report event not charged). |

👉 Press **Start** with the empty prefill to see the free demo report.

**Get the strategy behind competitors' Facebook & Instagram ads.** Provide their public **Meta Ad Library** ads (a dataset or JSON you already collected) and get an AI-written **ad strategy report**: the hooks and angles they use, their offers and CTAs, formats, the **longest-running ads (likely winners)**, landing pages, audience, gaps you can exploit, and **5 ready-to-test ad concepts** for your own brand. Reports in **English or Spanish**, as a beautiful HTML page, Markdown and structured JSON.

This Actor **analyzes ads you provide**. It does not scrape the Meta Ad Library or Facebook pages for you, and it does not run other Store scrapers.

Built for **performance marketers, media buyers, agencies, e-commerce and DTC brands** who do competitor research and ad creative strategy.

### Use cases

- **Facebook Ad Library analysis** (and Instagram) on public Meta ads you already collected — this Actor does not scrape the Library for you.
- See **hooks, offers, CTAs and formats**, plus the longest-running ads (likely winners) and landing pages.
- Brief a creative team with **5 ready-to-test ad concepts** (optionally tailored with `yourBrand`).
- Run a monthly check on how a competitor's messaging changed.
- Get the report in **English or Spanish**, as HTML, Markdown and JSON. Press **Start** on the empty prefill for a **free demo**.

### What you get (per competitor)

- 📊 **At a glance** – ads analyzed, active ads, new ads in the last 30 days, median days running, format / CTA / platform mix.
- 🎯 **Key angles** with share of ads (discounts, social proof, problem-solution, urgency, sustainability…) and example ad IDs.
- 🪝 **Hook patterns** with real examples.
- 💸 **Offers** (first-order discounts, bundles, free shipping, trials…).
- 🏆 **Likely winners** – the longest-running ads and why they probably work (links to the Ad Library when present in your data).
- 🔗 **Landing pages** the ads send traffic to.
- 👥 **Audience & themes**.
- 🕳️ **Gaps & opportunities** – what they are *not* doing.
- ✍️ **5 recommended ads to test** – hook, primary text, headline, CTA, format and rationale. Add your own brand description to tailor them to you.

### How it works

1. You provide public ads as a **dataset ID** or **ads JSON** (fields such as page name, body/text, title, CTA, link, start date, format, platform). A brand name in `competitors` is only a label – it does not fetch ads.
2. Every ad is tagged by AI (hook, angle, offer, audience, theme).
3. Ad statistics are computed (run time, formats, CTAs, landing pages).
4. An AI strategist writes the report grounded in that evidence, citing ad IDs.
5. If you provide no ads, you get a **free demo report** on fictional sample ads (the $0.49 report event is not charged).

### Input example

Real report from ads you already have:

```json
{
  "ads": [
    {
      "page_name": "Allbirds",
      "text": "Light as the cloud. Made to be worn every day.",
      "title": "New Tree Runner",
      "cta_text": "Shop now",
      "link_url": "https://www.allbirds.com/",
      "start_date": "2026-09-01",
      "is_active": true
    }
  ],
  "language": "en",
  "yourBrand": "Sustainable running shoes brand, $90 price point, sells online in the US"
}
```

Or pass `"datasetId": "YOUR_AD_LIBRARY_DATASET_ID"` instead of `ads`.

Optional: you can add a page name or Facebook page URL as a label, e.g. `"competitors": ["https://www.facebook.com/allbirds"]`, together with `ads` or `datasetId`. The URL is only a label; this Actor never visits Facebook. On its own (no ads), it returns the free demo.

Free demo (this is also the Store example input):

```json
{ "country": "US", "maxAdsPerCompetitor": 50, "activeStatus": "active", "language": "en" }
```

### Output example (real demo run)

The default prefill (no ads provided) returns a free demo on fictional "Northpeak Coffee" sample ads. A real paid run uses the same shape. Dataset item (trimmed):

```json
{
  "demo": true,
  "competitor": "Northpeak Coffee",
  "adsAnalyzed": 24,
  "executiveSummary": "Northpeak Coffee has developed a strong presence on Meta platforms, particularly Instagram and Facebook, with a total of 24 ads, of which 20 are currently active. Their strategy emphasizes emotional appeal, social proof, and sustainability, with a notable focus on discounts for new customers. The median ad run time is 38 days, indicating that several ads are likely performing well.",
  "stats": {
    "totalAds": 24,
    "activeAds": 20,
    "newLast30Days": 9,
    "medianDaysRunning": 38,
    "formats": [{"format": "IMAGE", "ads": 11, "pct": 46}, {"format": "CAROUSEL", "ads": 5, "pct": 21}]
  },
  "report": {
    "key_angles": [
      {"angle": "social proof/testimonial", "share_pct": 17, "insight": "4 of 24 ads leverage customer quotes to build trust."},
      {"angle": "price/discount", "share_pct": 13, "insight": "3 ads promote savings for first-time customers."}
    ],
    "recommended_ads_to_test": [
      {
        "hook": "Never run out of your favorite coffee again!",
        "headline": "Convenience Meets Quality!",
        "cta": "Subscribe",
        "format": "IMAGE",
        "rationale": "Builds on the problem-solution angle identified in existing ads."
      }
    ]
  }
}
```

Also in the output: **Report (HTML)** from the Output tab, Markdown in the key-value store (`report-<competitor>.md`), and the tagged `ads` array.

Works great with Make, Zapier, n8n, Google Sheets and AI agents via the Apify MCP server.

### Pricing

| What you run | You pay |
|---|---|
| Actor start (once per run) | $0.001 |
| **1 strategy report** from ads you provide | **$0.49** |
| Demo report (no ads / fictional sample ads) | **$0** for the report event (a $0.001 start fee may still apply on paid plans) |

No report, no $0.49 charge. Set a maximum cost per run in run options.

### For AI agents (Apify MCP)

**Purpose:** Turn a set of public Meta Ad Library ads the user already has into one AI strategy report (hooks, offers, likely winners, 5 test ideas).

**Call when:** The user can pass `ads` (JSON array) or `datasetId` of ads they already collected. If they only have a Facebook page URL and no ads, do not promise a live scrape — run without ads only to fetch the free demo, or ask them for an ads dataset first.

**Inputs:** `ads` or `datasetId` (required for a paid real report). Optional: `yourBrand`, `language` (`en` or `es`), `competitors` (labels only), `maxAdsPerCompetitor`.

**Output fields:** One dataset item per report: `competitor`, `adsAnalyzed`, `executiveSummary`, `stats`, `report` (angles, hooks, offers, winners, gaps, `recommended_ads_to_test`), `ads`, plus HTML/Markdown report URLs.

**Cost:** $0.49 per real report + $0.001 start. Demo reports do not charge the report event.

### Tips

- 30–100 ads per competitor gives the best balance of depth and speed.
- Use **Active ads only** when your data includes status, to see the current strategy; **all** to include history.
- Run it monthly on a schedule to track how competitors' messaging changes.

### Is it legal? Data & privacy

The Actor only analyzes **public Meta Ad Library ads that you provide**. It doesn't log in, doesn't access private data and doesn't collect personal data about individuals – only advertisers' public ads that you already have the right to process. Recommended ad concepts are original; don't copy competitors' creative or trademarks. Ad text is sent to the **OpenAI API** for analysis; OpenAI does not train on API data by default.

**Limitations:** Meta does not publish spend or performance for commercial ads outside the EU, so "likely winners" are inferred from how long ads have run when that field is present in your data. AI analysis can be wrong – verify before acting.

### More AI tools from DataTools AI

- [AI Table Enricher](https://apify.com/datatools-ai/ai-table-enricher) – add AI columns (classify, extract, summarize, translate) to a CSV, Sheet or dataset you already have.
- [Review Insights AI](https://apify.com/datatools-ai/review-insights-ai) – AI analysis of reviews you already have: sentiment, complaints, praise and reply templates.
- [App Store Official Feeds](https://apify.com/datatools-ai/app-store-official-feeds) – iOS app details, recent reviews and top charts from Apple's official feeds, with no HTML scraping.
- [Career Site Jobs API + AI Hiring Signals](https://apify.com/datatools-ai/career-site-jobs-hiring-signals) – official ATS APIs (Greenhouse, Lever, Ashby and more) plus AI hiring-signals summaries.
- [Company Profile from Domain](https://apify.com/datatools-ai/company-profile-from-domain) – structured firmographics from a company's own public website (industry, products, HQ, socials and tech stack).
- [AI Web Data Extractor](https://apify.com/datatools-ai/ai-web-data-extractor) – extract structured JSON from public web pages you provide, with fields described in plain language.

***

### 🇪🇸 En español

**Reporte de estrategia de anuncios con IA a partir de anuncios públicos de la Biblioteca de Anuncios de Meta que tú proporcionas** (dataset o JSON). Obtén un reporte (en español o inglés) con ganchos, ángulos, ofertas, CTAs, formatos, anuncios con más tiempo activos (probables ganadores), páginas de destino, huecos que puedes aprovechar y **5 anuncios recomendados para probar**. **$0.49 por reporte**; si no envías anuncios, ves una **demo gratis** con anuncios de ejemplo de una marca ficticia. Este Actor no raspa Facebook ni la Biblioteca de Anuncios por ti. Ideal para agencias, e-commerce y marcas en México y Latinoamérica.

# Actor input Schema

## `competitors` (type: `array`):

Optional brand or page names used only as labels, e.g. \["Allbirds"] or a Facebook page URL. This Actor never fetches ads from Facebook by itself. For a real paid report also pass ads or datasetId. If both ads sources are empty, you get a free demo report on fictional sample ads.

## `country` (type: `string`):

Optional 2-letter country code stored on the report (e.g. US, MX, ES, GB) or ALL. This is metadata; it does not fetch ads.

## `maxAdsPerCompetitor` (type: `integer`):

When you provide a dataset or ads JSON, how many ads to analyze per competitor/page (sorted by impressions or order given). 30–100 is usually enough. The report price is $0.49 regardless of ad count. Unused if you run the free demo.

## `activeStatus` (type: `string`):

When your ads include a status field: 'active' keeps currently running ads; 'all' includes history.

## `language` (type: `string`):

Language of the written report: en or es.

## `yourBrand` (type: `string`):

Describe your brand and offer so gaps and the 5 recommended ads are tailored to you. Example: 'Sustainable running shoes, $90, sold online in the US'.

## `datasetId` (type: `string`):

Preferred input for a real report. Dataset ID of public Meta Ad Library ads you already have (one report per page/advertiser). This Actor does not run other Store scrapers for you.

## `ads` (type: `array`):

Preferred input for a real report if you have no dataset. Array of public ad objects. Accepted fields (flexible naming): page_name or pageName, body or text, title, cta_text or cta, link_url or linkUrl, start_date or startDate, platform, format, is_active, ad_library_url, id. Example: \[{"page_name":"Allbirds","text":"Light as the cloud.","cta_text":"Shop now","start_date":"2026-09-01"}].

## `model` (type: `string`):

OpenAI model used to write the report (ads are tagged with GPT-4o-mini). The $0.49 report price is the same.

## `maxCompetitors` (type: `integer`):

Safety cap on paid reports per run (each real report is $0.49).

## Actor input object example

```json
{
  "country": "US",
  "maxAdsPerCompetitor": 50,
  "activeStatus": "active",
  "language": "en",
  "model": "gpt-4.1-mini",
  "maxCompetitors": 5
}
```

# Actor output Schema

## `reportIndex` (type: `string`):

Index page linking each competitor's HTML report.

## `reports` (type: `string`):

Dataset with one structured report per competitor.

## `files` (type: `string`):

All HTML and Markdown report files.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "country": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("datatools-ai/ad-library-ai-strategy-report").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "country": "US" }

# Run the Actor and wait for it to finish
run = client.actor("datatools-ai/ad-library-ai-strategy-report").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "country": "US"
}' |
apify call datatools-ai/ad-library-ai-strategy-report --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datatools-ai/ad-library-ai-strategy-report"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/GfqgQDXrapVmw859A/builds/yrNWhxdvf7CHHvgAC/openapi.json
