# Meta Ad Library page ID resolver for competitor brands

**Use case:** 

Resolve competitor brands to Meta Ad Library page IDs, Facebook Page URLs, and advertiser ad library links.

## Input

```json
{
  "queries": [
    "nike",
    "adidas",
    "patagonia"
  ],
  "pageUrls": [],
  "adsLibraryUrls": [],
  "country": "US",
  "activeStatus": "all",
  "mediaType": "all",
  "maxMatchesPerQuery": 2,
  "maxAdsToInspect": 20,
  "includeActiveAdCount": true
}
```

## Output

```json
{
  "query": {
    "label": "Query"
  },
  "inputType": {
    "label": "Input type"
  },
  "rank": {
    "label": "Rank"
  },
  "pageName": {
    "label": "Page name"
  },
  "pageId": {
    "label": "Page ID"
  },
  "facebookPageUrl": {
    "label": "Facebook Page URL",
    "format": "link"
  },
  "metaAdLibraryUrl": {
    "label": "Meta Ad Library URL",
    "format": "link"
  },
  "matchScore": {
    "label": "Match score"
  },
  "country": {
    "label": "Country"
  },
  "sourceUrl": {
    "label": "Source URL",
    "format": "link"
  },
  "activeAdCount": {
    "label": "Active ad count estimate"
  },
  "inspectedAds": {
    "label": "Inspected ads"
  },
  "pageCategories": {
    "label": "Page categories"
  },
  "pageLikeCount": {
    "label": "Page likes"
  },
  "pageProfilePictureUrl": {
    "label": "Profile image",
    "format": "link"
  },
  "matchedFromAdArchiveIds": {
    "label": "Matched ad IDs"
  },
  "resolvedAt": {
    "label": "Resolved at"
  }
}
```

## About this Actor

This example demonstrates how to use [Meta Ad Library Page Resolver](https://apify.com/automation-lab/meta-ad-library-page-resolver) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/meta-ad-library-page-resolver) to learn more, explore other use cases, and run it yourself.