fb_report_check: Facebook API Report Status Check

View source: R/facebook.R

fb_report_checkR Documentation

Facebook API Report Status Check

Description

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.

Usage

fb_report_check(
  token,
  report_run_id,
  api_version = NULL,
  live = FALSE,
  sleep = 10,
  quiet = FALSE
)

Arguments

token

Character. Valid access token with sufficient privileges. Visit the Facebook API Graph Explorer to acquire one.

report_run_id

Integer. Report ID to check status.

api_version

Character. Facebook API version.

live

Boolean. Run until status report is finished?

sleep

Boolean. If live=TRUE, then how many seconds should we wait until next check?

quiet

Boolean. Keep quiet? If not, informative messages will be shown.

Value

List with API status results.

See Also

Other API: bring_api(), fb_accounts(), fb_ads(), fb_creatives(), fb_insights(), fb_process(), fb_rf(), fb_token(), gemini_ask(), gpt_ask(), queryGA(), slackSend()

Other Meta: fb_accounts(), fb_ads(), fb_creatives(), fb_insights(), fb_process(), fb_rf(), fb_token()

Examples

## Not run: 
token <- "YOURTOKEN"
report_run_id <- "123456789"
fb_report_check(token, report_run_id, live = TRUE, quiet = FALSE)

## End(Not run)

laresbernardo/lares documentation built on July 4, 2025, 12:23 p.m.