Learn R Programming

lares (version 4.7)

fb_ads: Facebook Ads API

Description

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

Usage

fb_ads(token, which, start = Sys.Date() - 31, end = Sys.Date(),
  api_version = "v3.3")

Arguments

token

Character. This must be a valid access token with sufficient privileges. Visit the Facebook API Graph Explorer to acquire one

which

Character. This is the ad account, campaign, adset, or ad ID to be queried

start

Character. The first full day to report, in the format "YYYY-MM-DD"

end

Character. The last full day to report, in the format "YYYY-MM-DD"

api_version

Character. Facebook API version

Details

This function was based on FBinsightsR.

See Also

Other Scrapper: fb_accounts, fb_insights, fb_posts, fb_post, geoStratum, holidays, ip_country, trendsRelated

Other API: bring_api, fb_accounts, fb_insights, fb_posts, fb_post

Other Facebook: fb_accounts, fb_insights, fb_posts, fb_post