fbad_read_ad {fbRads} | R Documentation |
Read ad details
Description
Read ad details
Usage
fbad_read_ad(fbacc, id, fields = "id", simplify = TRUE)
Arguments
fbacc |
(optional) |
id |
ad id(s) |
fields |
character vector of fields to get from the API, defaults to |
simplify |
return |
Value
data.frame
Note
Will do a batched request to the Facebook API if multiple ids are provided.
References
https://developers.facebook.com/docs/marketing-api/reference/adgroup#Reading
Examples
## 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)
[Package fbRads version 17.0.0 Index]