Description Usage Arguments Examples
This function will import the statistics for the chosen parameters.
1 2 | fb_stats(account_id, fromDate, toDate, dimensions, metrics,
breakdowns = "", level = "campaign", custom = "")
|
account_id |
The account id for which you want to import data fram (needs to start with "act_"). |
fromDate |
The starting date for the time range you want. |
toDate |
The ending date for the time range you want. |
dimensions |
The dimensions to use in the API request. |
metrics |
The metrics to use in the API request. |
breakdowns |
What breakdowns should be used, e.g. age, gender etc. |
level |
The level in which you want the data returned c("account","campaign","adset","ad") |
1 | fb_stats(account_id, fromDate, toDate, dimensions, metrics, breakdowns = "", level="campaign")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.