# Monitor Facebook Ads for Brand Safety Violations

**Use case:** 

Search the Ad Library for your brand name or trademark and see who else is advertising with it. Catches counterfeit sellers, unauthorised resellers and affiliates running ads you did not approve. Each result carries the advertiser page, the ad copy and the destination URL, so you can see exactly who is running what and where the traffic goes.

## Input

```json
{
  "searchMode": "search_ads",
  "searchTerms": [
    "Rolex watches",
    "Ray-Ban sunglasses"
  ],
  "countries": [
    "ALL"
  ],
  "status": "ACTIVE",
  "mediaType": "ALL",
  "searchType": "keyword_exact_phrase",
  "sortBy": "total_impressions",
  "languages": [],
  "adType": "all",
  "maxItems": 30,
  "maxItemsPerTerm": 0,
  "maxPagesPerQuery": 0,
  "enrichment": false,
  "longRunningDays": 30,
  "advertiserProfiles": false,
  "landingPageReport": false,
  "separateTables": false,
  "getTranscript": false,
  "trim": false,
  "llmAnalysis": false,
  "strategySummary": false,
  "llmModel": "claude-opus-5"
}
```

## Output

```json
{
  "_meta": {
    "label": "Mode / input",
    "format": "object"
  },
  "ad_archive_id": {
    "label": "Ad ID",
    "format": "string"
  },
  "adArchiveID": {
    "label": "Ad ID",
    "format": "string"
  },
  "page_name": {
    "label": "Page",
    "format": "string"
  },
  "pageName": {
    "label": "Page",
    "format": "string"
  },
  "name": {
    "label": "Company",
    "format": "string"
  },
  "is_active": {
    "label": "Active",
    "format": "boolean"
  },
  "isActive": {
    "label": "Active",
    "format": "boolean"
  },
  "publisher_platform": {
    "label": "Platforms",
    "format": "array"
  },
  "publisherPlatform": {
    "label": "Platforms",
    "format": "array"
  },
  "snapshot": {
    "label": "Creative",
    "format": "object"
  },
  "start_date_string": {
    "label": "Start",
    "format": "string"
  },
  "end_date_string": {
    "label": "End",
    "format": "string"
  },
  "startDateString": {
    "label": "Start",
    "format": "string"
  },
  "endDateString": {
    "label": "End",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Meta Ad Library Scraper - Facebook & Instagram [NO COOKIES] ✅](https://apify.com/unseenuser/meta-ads.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/unseenuser/meta-ads.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/unseenuser/meta-ads.md

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`).
