Meta Ad Library API does not return any ad for some page and also not return same data as it shows on ads library

Open
#50 5 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
api

Research direction

Start by inspecting the repository's Python scripts for the Ad Library API request and reproduce the Hunger Games page query described in the issue. Compare its {"data":[]} response with the ads shown at the linked Facebook Ad Library URL; done requires identifying and resolving the discrepancy, or documenting why the API cannot return those ads.

Written by the indexing model from the issue text.

Description

I have connected my application into Facebook Ad Library API using https calls.
It is working fine on some pages. but in some other pages it does not return all pages ads or in some it does not return any! but when you take a look at the page itself in the Facebook Ad Library Website. It is showing the page ads.
An example of this would be Hunger Games page which is at url https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=ALL&view_all_page_id=159746560708670&search_type=page&media_type=all and you can see that it is displaying more than 20 ads in the page but when you try to get its ads from the Ads Library API. it returns {"data":[]}

Dominant language
Python
Stars
338
Forks
131
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from facebookresearch/Ad-Library-API-Script-Repository

All issues in facebookresearch/Ad-Library-API-Script-Repository

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.