Description Usage Arguments Details Value Author(s) See Also Examples
Retrieves the targeting description of a specific ad or adset.
1 | checkTarget(id, token, limit = 100, n = 100)
|
id |
ID of object to retrieve. |
token |
A valid token as returned by |
limit |
Number of results requested at each API call, defaults to 100.
Sometimes useful to bring it down if many results ( |
n |
Number of results to retrieve, defaults to |
Corresponds to this API call; https://developers.facebook.com/docs/marketing-api/targeting-description/v2.7
Returns a data.frame
containing targeting sentences as columns.
John Coene jcoenep@gmail.com
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# get information on account
ads <- grabAds(account.id = "act_123456789012345", token = "XXXXXXXXXXX")
# pick random ad.id
rand_id <- sample(ads$id, 1)
# fetch targeting description of random ad
checkTarget(id = rand_id, n = 100, token = "XXXXXXXXXXX")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.