fbad_list_ad {fbRads} | R Documentation |
List all Ads for current account, list of Ad Sets or Campaigns
Description
List all Ads for current account, list of Ad Sets or Campaigns
Usage
fbad_list_ad(fbacc, id, statuses, fields = "id", simplify = TRUE)
Arguments
fbacc |
(optional) |
id |
will do the look-up for all Ads based on this ID. Defaults to current FB account. Can be a (vector of) Ad Set or 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 |
simplify |
boolean whether response is simplified to data.frame or else returned as raw list |
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#read-adaccount