Learn R Programming

lares (version 5.1.0)

fb_accounts: Facebook Ad Accounts

Description

This returns all ad accounts for a FB Business Account FB. For more information on Ad Insights' API, go to the original documentaion

Usage

fb_accounts(
  token,
  business_id = "904189322962915",
  type = c("owned", "client"),
  limit = 1000,
  api_version = "v11.0"
)

Arguments

token

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

business_id

Character. Business ID.

type

Character vector. Values: owned, client.

limit

Integer. Query limit

api_version

Character. Facebook API version

Value

data.frame with un-nested processed results fetched with API.

See Also

Other API: bring_api(), fb_ads(), fb_creatives(), fb_insights(), fb_posts(), fb_post(), fb_process(), fb_rf(), fb_token(), li_auth(), li_profile(), queryGA(), slackSend()

Other Facebook: fb_ads(), fb_creatives(), fb_insights(), fb_posts(), fb_post(), fb_process(), fb_rf(), fb_token()

Examples

Run this code
# NOT RUN {
# Query all accounts (owned and with permissions) of a Business ID
accounts <- fb_accounts(YOURTOKEN, YOURBUSINESS)
# }

Run the code above in your browser using DataLab