All Projects → facebookresearch → Ad Library Api Script Repository

facebookresearch / Ad Library Api Script Repository

Licence: other
GitHub repository of commonly used python scripts that allows everyone to pull data via the Ad Library API

Programming Languages

python
139335 projects - #7 most used programming language

Ads-Library-API-Script-Repository

Ads-Library-API-Script-Repository is a set of code examples to help user/researchers understand how the Facebook Ads Library API works. It also provides a simple command-line interface(CLI) for users to easily use the Facebook Ads Library API.

Examples

Here's an example on how to use the CLI:

$ python fb_ads_library_api_cli.py -t {access_token} -f 'page_id,ad_snapshot_url,funding_entity,ad_delivery_start_time' -c 'CA' -s '.' -v count

It count the number of active polictical ads that are running in CA(Canada);

Note: please replace the '{access_token}' with your Facebook Developer access token.

Requirements

Ads-Library-API-Script-Repository requires or works with

  • Mac OS X or Linux or Window
  • Python 3.0+

How Ads-Library-API-Script-Repository works

The script will query the Facebook Ads library API to get all the Ads Library information on the Facebook platform;

Full documentation

You can find the full documentation here: (--to-be-added--)

More about Facebook Ads Library

See the CONTRIBUTING file for how to help out.

License

Ads-Library-API-Script-Repository is licensed under the Facebook Platform License, as found in the LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].