Further extract or download ad creative such as images and text for an individual ad

Open
#48 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reviewing the individual-ad API query and the temporary ad_snapshot_url described in the issue, then reproduce the reported code 10 OAuthException with the listed permissions. Done means identifying the root cause of the failed request and documenting whether the requested ad creative can be retrieved reliably.

Written by the indexing model from the issue text.

Description

The result of the API query is somewhat very abstract, and it seems the ad_snapshot_url is temporary link.
I tries to make a query of an individual ad but I have got the error below. Anyone who might have an idea about the root cause?
I have both pages_read_engagement permission and pages_read_user_content permission added before making the call.

Error :
{
    "error": {
        "message": "(#10) This endpoint requires the 'pages_read_engagement' permission or the 'Page Public Content Access' feature or the 'Page Public Metadata Access' feature. Refer to https://developers.facebook.com/docs/apps/review/login-permissions#manage-pages, https://developers.facebook.com/docs/apps/review/feature#reference-PAGES_ACCESS and https://developers.facebook.com/docs/apps/review/feature#page-public-metadata-access for details.",
        "type": "OAuthException",
        "code": 10,
        "fbtrace_id": "Ay1JovtZ_DRs3e1SX3rksWA"
    }
}

troubleshoot ad content

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.