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 = "campaign",
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 vector. This is the accounts, campaigns, adsets, or ads IDs 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 API:
bring_api()
,
fb_accounts()
,
fb_ads()
,
fb_creatives()
,
fb_posts()
,
fb_post()
,
li_auth()
,
li_profile()
,
queryGA()
,
slackSend()
Other Facebook:
fb_accounts()
,
fb_ads()
,
fb_creatives()
,
fb_posts()
,
fb_post()