fb_accounts | R Documentation |
This returns all ad accounts for a FB Business Account FB. For more information on Ad Insights' API, go to the original documentaion
fb_accounts(
token,
business_id = "904189322962915",
type = c("owned", "client"),
limit = 100,
api_version = NULL,
...
)
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 by pagination. |
api_version |
Character. Facebook API version. |
... |
Additional parameters. |
data.frame with un-nested processed results fetched with API.
Other API:
bring_api()
,
fb_ads()
,
fb_creatives()
,
fb_insights()
,
fb_process()
,
fb_report_check()
,
fb_rf()
,
fb_token()
,
gemini_ask()
,
gpt_ask()
,
li_auth()
,
li_profile()
,
queryGA()
,
slackSend()
Other Meta:
fb_ads()
,
fb_creatives()
,
fb_insights()
,
fb_process()
,
fb_report_check()
,
fb_rf()
,
fb_token()
## Not run:
# Query all accounts (owned and with permissions) of a Business ID
accounts <- fb_accounts(YOURTOKEN, YOURBUSINESS)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.