FB Search API Querying
fbad_get_search(fbacc, q, type = c("adeducationschool", "adeducationmajor", "adgeolocation", "adcountry", "adzipcode", "adgeolocationmeta", "adradiussuggestion", "adinterest", "adinterestsuggestion", "adinterestvalid", "adlocale", "adTargetingCategory", "adworkemployer"), ...)
data.frame containing results
data.frame
(optional) FB_Ad_account object, which defaults to the last returned object of fbad_init.
FB_Ad_account
fbad_init
string that is being searched for
describes the type of search eg: adinterest, adeducationmajor etc
other optional parameters accepted by the endpoint as key = value pairs eg: limit = 5000.
limit = 5000
https://developers.facebook.com/docs/marketing-api/targeting-search/v2.5
if (FALSE) { fbad_get_search(q = 'r programming language', type = 'adinterest') fbad_get_search(q = c('dog', 'cat'), type = 'adinterestvalid') }
Run the code above in your browser using DataCamp Workspace