List all Ad Sets for current account or Ad Campaign(s)
fbad_list_adset(fbacc, id, statuses, fields = "id", simplify = TRUE)
fbacc
: (optional) FB_Ad_account
object, which defaults to the last returned object of fbad_init
.id
: will do the look-up for all Ads based on this ID. Defaults to current FB account. Can be a (vector of) Ad Campaign id(s).statuses
: character vector of statuses to use as a filter. Defaults to none. Please refer to the Facebook documentation for a list of possible values.fields
: character vector of fields to get from the API, defaults to id
. Please refer to the Facebook documentation for a list of possible values.simplify
: boolean whether response is simplified to data.frame or else returned as raw listhttps://developers.facebook.com/docs/marketing-api/reference/ad-campaign#Reading