Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

version: 1.0.0

Category: Marketing Analytics

Tier: 3

Api version: v19

Type: Source

Authentication:

  • OAuth

  • Token (Manual entry of long lived access token)

Resources Supported:

Reference: https://developers.facebook.com/docs/marketing-api/insights

Resource Name

Sub Resource

Description

Parameter

Campaign

All Campaigns - Insights

Lists all Insights on a Campaign level

Ad Account

Ad

All Ads - Insights

Lists all Insights on an Ad level

Ad Account

Adset

All Adsets - Insights

Lists all Insights on a Adset level

Ad Account

Connection Properties

  1. Authentication Mode: OAuth

Name

Mandatory

Description

Connection Name

Yes

Name of the connection

Description

No

Description of connection

image-20240403-235753.png

  • Fill up required fields (name)

  • Click Authorize

  • You will be redirected to facebook for oauth

image-20240404-000203.png

  • Approve the request and you will be redirected to EazyDI

  • Test connection to confirm

image-20240404-000353.png

2. Authentication Mode: Token

Name

Mandatory

Description

Connection Name

Yes

Name of the connection

Description

No

Description of connection

Token

Yes

The long lived access token

Permission required for manual entry of token

  • read_insights

  • ads_read

image-20240403-234421.png

Retrieve my access token manually

image-20240403-235056.png

  • Choose other

image-20240403-235231.png

  • Choose type as business

image-20240403-235255.png

  • Name the app and click create

image-20240403-235348.png

  • Add products marketing api and facebook login for business

image-20240403-235440.png

  • Go to Settings → Basic and retrieve the appid and secret

image-20240403-235614.png

  • Go to Tools → Graph api explorer

image-20240404-000708.png

Creating a connection

  • Fill up required fields (name, token)

Click Test Connection to check if token is valid

image-20240403-234822.png

Configuring Object

  • Choose from the Resource Type, Sub Resource Type, and Advertiser Id that will be used as source

image-20240404-000945.png

Fields

The fields are based on schema defined in https://developers.facebook.com/docs/marketing-api/insights v19.0 but automatically flattened to be able to map easily

image-20240404-001230.png

Running a Pipeline with Facebook as Source

image-20240404-001312.png

Facebook data:

image-20240404-001830.png

Target (Snowflake):

image-20240404-001907.png

Reauthorize:

If token has been stale, invalid, uninstalled in your Facebook account, or you are receiving unauthorized error, You can reauthorize your connection by clicking the Reauthorize button for OAuth or manually regenerating a long lived access token as seen above

  • No labels