fbins_pxa: Facebook Ads Pixel Insights. This returns, in a data frame,...

View source: R/functions.R

fbins_pxaR Documentation

Facebook Ads Pixel Insights. This returns, in a data frame, pixel actions such as conversions or adds-to-cart together with a complement of ads stats such as impressions and clicks. This is applies pagination through the API - so it may take a time to return the results.

Description

Facebook Ads Pixel Insights. This returns, in a data frame, pixel actions such as conversions or adds-to-cart together with a complement of ads stats such as impressions and clicks. This is applies pagination through the API - so it may take a time to return the results.

Usage

fbins_pxa(start_date, until_date, report_level, fb_access_token, account)

Arguments

start_date

The first full day to report, in the format "YYYY-MM-DD" .

until_date

The last full day to report, in the format "YYYY-MM-DD" .

report_level

One of "ad", "adset", "campaign" or "account" .

fb_access_token

This must be a valid access token with sufficient privileges. Visit the Facebook API Graph Explorer to acquire one.

account

This is the ad account, campaign, adset or ad ID to be queried.

Examples

fbins_pxa("start_date", "until_date", "report_level", "time_increment", "fb_access_token", "account")
fbins_pxa("2017-01-20", "2017-01-22", "ad", "ABCDEFG1234567890ABCDEFG", "act_12345678")
fbins_pxa("2017-01-20", "2017-01-22", "ad", "ABCDEFG1234567890ABCDEFG", "act_12345678")

Deducive/FBinsightsR documentation built on Aug. 15, 2024, 11:29 p.m.