daroczig / fbRads

Analyze and manage Facebook ads from R using this client library to access their Marketing APIs
GNU Affero General Public License v3.0
153 stars 57 forks source link

Invalid R object passed as fbacc argument #77

Closed poplavok closed 6 years ago

poplavok commented 6 years ago

Apologies if this is a newb question but I am having trouble listing/reading specific ad sets I am able to get a listing of all campaigns active/inactive, listing active ad sets, but unable to read/list into the adsets themselves to potentially get info on who is contained within the set.

fbad_list_audience(fbacc=acc_id, audience1, simplify = T) Error in fbad_check_fbacc() : Invalid R object passed as fbacc argument. See ?fbad_init for more details.

session info

R version 3.4.3 (2017-11-30) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 14.04.5 LTS

Matrix products: default BLAS: /usr/lib/libblas/libblas.so.3.0 LAPACK: /usr/lib/lapack/liblapack.so.3.0

locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8
[6] LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] fbRads_2.10.0 Rfacebook_0.6.15 httpuv_1.3.5 rjson_0.2.15 httr_1.3.1

loaded via a namespace (and not attached): [1] Rcpp_0.12.14 digest_0.6.12 bitops_1.0-6 plyr_1.8.4 R6_2.2.2 jsonlite_1.5 futile.options_1.0.0 [8] curl_3.0 data.table_1.10.4-3 futile.logger_1.4.3 lambda.r_1.2 tools_3.4.3 bit64_0.9-7 RCurl_1.95-4.8
[15] bit_1.1-12 yaml_2.1.14 compiler_3.4.3

Thanks in advance for your attention.

daroczig commented 6 years ago

I think you want to pass acc_id as the id argument instead of fbacc