MCP tools

Search the Ad Library

Search Meta's Ad Library for other advertisers' ads, by keywords, a brand name, or one page's ads, and get each ad's page, copy, call to action, start date and image urls.

Tool name: search-ad-library.

Search Meta's Ad Library for other advertisers' ads, by keywords, a brand name, or one page's ads, and get each ad's page, copy, call to action, start date and image urls. Read-only. Use the image urls as references in generate-creatives, for layout and style only: never copy another brand's name, logo, product or claims.

When to use

Find reference ads before making images: what competitors or a niche are running, or a specific brand the user names. Offer it when the user has no references of their own. Searches can take up to a minute.

Access

PropertyValue
Required scoperead
PublishesNo
Read-onlyYes
DestructiveNo
IdempotentYes
Open worldYes

Input

FieldTypeRequiredDescription
querystringYesAn advertiser's website domain, such as "triplewhale.com", to get that advertiser's own ads; a name also brings other advertisers' ads. Or keywords for an offer. With pageId, * lists every ad of that page. At most 200 characters.
pageIdstringNoOne Facebook page id, from an earlier result, to see only that advertiser's ads.
countrystringNoTwo-letter country the ads ran in. Defaults to US.
activeOnlybooleanNoOnly ads running now. Defaults to true; an ad that has run for months is usually a winner.
limitintegerNoAds per page, 1-24. Defaults to 12. Minimum 1, maximum 24.
cursorstringNonextCursor from the previous page. At most 500 characters.
forRoundbooleanNotrue when you search for references for a round of ads you are making: the user does not see the results. Omit it when the user asked to see other advertisers' ads.

Output

FieldTypeRequiredDescription
adsobject[]Yes
withoutImagesintegerYesAds on this page that carried no image, and are left out.
nextCursorstring | nullYes

REST equivalent

GET /v1/brands/{brandId}/ad-library/ads, Search the Ad Library. CLI: koast search-ad-library.

On this page