Facebook Ads (meltano
variant)
Table of Contents
The tap-facebook Meltano extractor pulls data from Facebook Ads that can then be sent to a destination using a loader.
Alternative variants #
Multiple
variants
of tap-facebook are available.
This document describes the meltano variant.
Alternative variants are:
-
georgiyolovski -
hbellala -
primedata-ai -
reachlocal -
singer-io(default)
Getting Started #
Prerequisites #
If you haven't already, follow the initial steps of the Getting Started guide:
Installation and configuration #
Using the Command Line Interface #
-
Add the
tap-facebookextractor to your project usingmeltano add:meltano add extractor tap-facebook --variant meltano -
Configure the settings below using
meltano config.
Next steps #
Follow the remaining steps of the Getting Started guide:
- Select entities and attributes to extract
- Add a loader to send data to a destination
- Run a data integration (EL) pipeline
If you run into any issues, learn how to get help.
Capabilities #
Settings #
tap-facebook requires the
configuration
of the following settings:
These and other supported settings are documented below. To quickly find the setting you're looking for, use the Table of Contents at the top of the page.
Account ID (account_id)
#
-
Environment variable:
TAP_FACEBOOK_ACCOUNT_ID
Your Facebook Ads Account ID
How to use #
Manage this setting using
meltano config or an
environment variable:
meltano config tap-facebook set account_id <account_id>
export TAP_FACEBOOK_ACCOUNT_ID=<account_id>
Access Token (access_token)
#
-
Environment variable:
TAP_FACEBOOK_ACCESS_TOKEN
User Token generated by Facebook OAuth handshake
How to use #
Manage this setting using
meltano config or an
environment variable:
meltano config tap-facebook set access_token <access_token>
export TAP_FACEBOOK_ACCESS_TOKEN=<access_token>
start_date
#
-
Environment variable:
TAP_FACEBOOK_START_DATE
Determines how much historical data will be extracted. Please be aware that the larger the time period and amount of data, the longer the initial extraction can be expected to take.
How to use #
Manage this setting using
meltano config or an
environment variable:
meltano config tap-facebook set start_date YYYY-MM-DDTHH:MM:SSZ
export TAP_FACEBOOK_START_DATE=YYYY-MM-DDTHH:MM:SSZ
end_date
#
-
Environment variable:
TAP_FACEBOOK_END_DATE
Date up to when historical data will be extracted.
How to use #
Manage this setting using
meltano config or an
environment variable:
meltano config tap-facebook set end_date YYYY-MM-DDTHH:MM:SSZ
export TAP_FACEBOOK_END_DATE=YYYY-MM-DDTHH:MM:SSZ
Ads Insights Buffer Days (insights_buffer_days)
#
-
Environment variable:
TAP_FACEBOOK_INSIGHTS_BUFFER_DAYS - Default:
0
How many Days before the Start Date to fetch Ads Insights for
How to use #
Manage this setting using
meltano config or an
environment variable:
meltano config tap-facebook set insights_buffer_days 0
export TAP_FACEBOOK_INSIGHTS_BUFFER_DAYS=0Looking for help? #
If you're having trouble getting the
tap-facebook extractor to work, look for an
existing issue in its repository, file a new issue,
or
join the Meltano Slack community
and ask for help in the #plugins-general channel.
Found an issue on this page? #
This page is generated from a YAML file that you can contribute changes to. Edit it on GitHub!