fbins_summ: FB summary insights function.

Description Usage Arguments Examples

View source: R/functions.R View source: R/functions_dam.R

Description

This returns, in a data frame, a summary of FB insights with no breakdown

Usage

1
2
fbins_summ(start_date, until_date, report_level, time_increment,
  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" .

time_increment

An integer representing the reporting increment. If blank, defaults to the entire reporting period.

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

1
2
3
fbins_summ("start_date", "until_date", "report_level", "time_increment", "fb_access_token", "account")
fbins_summ("2017-01-20", "2017-01-22", "ad", "1", "ABCDEFG1234567890ABCDEFG", "act_12345678")
fbins_summ("2017-01-20", "2017-01-22", "ad", "", "ABCDEFG1234567890ABCDEFG", "act_12345678")

DamienCaillet/fbd documentation built on Nov. 14, 2019, 11:18 a.m.