Description Usage Arguments Author(s) See Also Examples
Get activities on an ad account.
1 2 | getActivity(token, account.id, fields = "default", since = NULL,
until = NULL, n = 100, limit = 100)
|
token |
A valid token as returned by |
account.id |
The id of the account you want to retrieve (Required), see how to find yours. |
fields |
There are numerous valid fields defaults to
( |
since |
date |
until |
date |
n |
Number of results to retrieve, defaults to |
limit |
Number of results requested at each API call, defaults to |
John Coene jcoenep@gmail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
# run authentication with your app details
fbOAuth <- fbAuthenticate(app.id = "1234567890123456",
app.secret = "76xx79121xx0130x2x10a08x3e2x80xx",
scope = "ads_management")
# get account ids
acc <- listAccounts(id = "me", token = "XXXXXXXXXXX")
# get activity
act <- getActivity(token = fbOAuth, account.id = sample(act, 1), n = 200)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.