
Read ad details
fbad_read_ad(fbacc, id, fields = "id", simplify = TRUE)
data.frame
(optional) FB_Ad_account
object, which defaults to the last returned object of fbad_init
.
ad id(s)
character vector of fields to get from the API, defaults to id
. Please refer to the Facebook documentation for a list of possible values.
return data.frame
or list
https://developers.facebook.com/docs/marketing-api/reference/adgroup#Reading
if (FALSE) {
## 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'))
}
Run the code above in your browser using DataLab