All Projects → singer-io → Tap Facebook

singer-io / Tap Facebook

Licence: agpl-3.0
Singer.io tap for Facebook Marketing API

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Tap Facebook

Tap Spec
Formatted TAP output like Mocha's spec reporter
Stars: ✭ 268 (+277.46%)
Mutual labels:  tap
Ybattributetexttapaction
一行代码添加文本点击事件/a fast way to implement click event text
Stars: ✭ 430 (+505.63%)
Mutual labels:  tap
Pgtap
PostgreSQL Unit Testing Suite
Stars: ✭ 631 (+788.73%)
Mutual labels:  tap
Fishtape
100% pure-Fish test runner.
Stars: ✭ 283 (+298.59%)
Mutual labels:  tap
Homebrew Bundle
📦 Bundler for non-Ruby dependencies from Homebrew, Homebrew Cask and the Mac App Store.
Stars: ✭ 3,940 (+5449.3%)
Mutual labels:  tap
Goss
Quick and Easy server testing/validation
Stars: ✭ 4,550 (+6308.45%)
Mutual labels:  tap
node-bogota
🚀 Run tape tests concurrently with tap-spec output
Stars: ✭ 15 (-78.87%)
Mutual labels:  tap
Tap Hubspot
Stars: ✭ 34 (-52.11%)
Mutual labels:  tap
Ava
Node.js test runner that lets you develop with confidence 🚀
Stars: ✭ 19,458 (+27305.63%)
Mutual labels:  tap
Any Touch
👋 手势库, 按需2kb~5kb, 兼容PC / 移动端
Stars: ✭ 567 (+698.59%)
Mutual labels:  tap
Zora
Lightest, yet Fastest Javascript test runner for nodejs and browsers
Stars: ✭ 356 (+401.41%)
Mutual labels:  tap
Baretest
An extremely fast and simple JavaScript test runner.
Stars: ✭ 364 (+412.68%)
Mutual labels:  tap
Tap
1Kb library for easy unified handling of user interactions such as mouse, touch and pointer events.
Stars: ✭ 541 (+661.97%)
Mutual labels:  tap
Showtime
The easiest way to show off your iOS taps and gestures for demos and videos.
Stars: ✭ 281 (+295.77%)
Mutual labels:  tap
Istanbuljs
monorepo containing the various nuts and bolts that facilitate istanbul.js test instrumentation
Stars: ✭ 656 (+823.94%)
Mutual labels:  tap
Hover On Touch
A pure Javascript Plugin for an alternative hover function that works on mobile and desktop devices. It triggers a hover css class on »Taphold« and goes to a possible link on »Tap«. It works with all html elements.
Stars: ✭ 256 (+260.56%)
Mutual labels:  tap
Exodus
network proxy and tunnel (VPN)
Stars: ✭ 432 (+508.45%)
Mutual labels:  tap
Jtap
Tap Event for jQuery
Stars: ✭ 65 (-8.45%)
Mutual labels:  tap
Mini Test.c
Minimalistic portable test runner for C projects
Stars: ✭ 12 (-83.1%)
Mutual labels:  tap
Awesome Tap
Useful resources for the Test Anything Protocol
Stars: ✭ 543 (+664.79%)
Mutual labels:  tap

tap-facebook

This is a Singer tap that produces JSON-formatted data following the Singer spec.

This tap:

  • Pulls raw data from the Facebook Marketing API
  • Extracts the following resources from Facebook for a one Ad account:
    • Ad Creatives
    • Ads
    • Ad Sets
    • Campaigns
    • Ads Insights
      • Breakdown by age and gender
      • Breakdown by country
      • Breakdown by placement and device
  • Outputs the schema for each resource
  • Incrementally pulls data based on the input state

Quick start

Install

We recommend using a virtualenv:

> virtualenv -p python3 venv
> source venv/bin/activate
> pip install tap-facebook

Create a Facebook Ads App

To use the Facebook Marketing API, you must create a Facebook Ads app. By creating a Facebook Ads app you will be able to use the Marketing API. Create an app

Facebook has three access levels for the Marketing API. You can use this Tap with all three levels. Learn more about these levels in Facebook documentation. https://developers.facebook.com/docs/marketing-api/access

Get an access token

The Tap will need to use an access token to make authenticated requests to the Marketing API.

Create the config file

The Facebook Tap will use an access token generated by the OAuth process. Additionally you will need:

start_date - an initial date for the Tap to extract data
account_id - The Facebook Ad account id use when extracting data access_token - Token generated by Facebook OAuth handshake

The following is an example of the required configuration

{"start_date":"",
"account_id":"",
"access_token":""}

Create a properties file

The properties file will indicate what streams and fields to replicate from the Facebook Marketing API. The Tap takes advantage of the Singer best practices for schema discovery and property selection.

[Optional] Create the initial state file

You can provide JSON file that contains a date for the streams to force the application to only fetch data newer than those dates. If you omit the file it will fetch all data for the selected streams.

{"ads":"2017-01-01T00:00:00Z",
 "adcreative":"2017-01-01T00:00:00Z",
 "ads_insights":"2017-01-01T00:00:00Z"}

Run the Tap

tap-facebook -c config.json -p properties.json -s state.json


Copyright © 2018 Stitch

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].