This returns all available FB ads for any account, campaign, or ad set id. For more information on Ad' API, go to the original documentaion
fb_ads(
token,
which,
start = Sys.Date() - 31,
end = Sys.Date(),
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. Facebook API version
This function was based on FBinsightsR.
Other API:
bring_api()
,
fb_accounts()
,
fb_creatives()
,
fb_insights()
,
fb_posts()
,
fb_post()
,
li_auth()
,
li_profile()
,
queryGA()
,
slackSend()
Other Facebook:
fb_accounts()
,
fb_creatives()
,
fb_insights()
,
fb_posts()
,
fb_post()