fbins_summ: FB summary insights function.

View source: R/functions.R

fbins_summR Documentation

FB summary insights function.

Description

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

Usage

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

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")

Deducive/FBinsightsR documentation built on April 4, 2023, 3:57 a.m.