fbad_read_ad | R Documentation |
Read ad details
fbad_read_ad(fbacc, id, fields = "id", simplify = TRUE)
fbacc |
(optional) |
id |
ad id(s) |
fields |
character vector of fields to get from the API, defaults to |
simplify |
return |
data.frame
Will do a batched request to the Facebook API if multiple ids are provided.
https://developers.facebook.com/docs/marketing-api/reference/adgroup#Reading
## Not run:
## get and Ad ID from yesterday
adid <- fb_insights(date_preset = 'yesterday', level = 'ad')[[1]]$ad_id[1]
## look for current status of the Ad
fbad_read_ad(id = adid, fields = c('effective_status'))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.