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

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
Dominant language
Python
Stars
337
Forks
130
PR merge metrics
No merged PRs in 30d

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](https://github.com/facebookresearch/Ad-Library-API-Script-Repository/assets/29916204/52eabbf0-ddec-4d58-87dd-699e0171dbd3)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.