frapierri / Ad-Library-API-Script-Repository

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 would count the number of all polictical ads 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

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.

About

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

License:Other


Languages

Language:Python 100.0%