This returns all available FB insights per day including any given breakdown to the specified report level, and place into a data frame. For more information on Ad Insights' API, go to the original documentaion
fb_insights(token, which, start = Sys.Date() - 7, end = Sys.Date(),
time_increment = "1", report_level = "ad", breakdowns = NA,
api_version = "v3.3")
Character. This must be a valid access token with sufficient privileges. Visit the Facebook API Graph Explorer to acquire one
Character. This is the ad account, campaign, adset, or ad ID to be queried
Character. The first full day to report, in the format "YYYY-MM-DD"
Character. The last full day to report, in the format "YYYY-MM-DD"
Character. Agrupaci<U+00F3>n por meses (monthly), para todo junto (all_days) o un entero para cantidad de d<U+00ED>as [1-90]. Por defecto, traer<U+00E1> cada d<U+00ED>a por separado (i.e.=1)
Character. One of ad, adset, campaign, or account
Character Vector. One or more of breakdowns for segmentation results. Set to NA for no breakdowns
Character. Facebook API version
This function was based on FBinsightsR.
Other Scrapper: fb_accounts
,
fb_ads
, fb_posts
,
fb_post
, geoStratum
,
holidays
, ip_country
,
trendsRelated
Other API: bring_api
,
fb_accounts
, fb_ads
,
fb_posts
, fb_post
Other Facebook: fb_accounts
,
fb_ads
, fb_posts
,
fb_post