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

numbers of columns of arguments do not match #84

Closed simran66 closed 6 years ago

simran66 commented 6 years ago

fb_listAdset <<- fbad_list_adset(fields = c('id','account_id', 'campaign_id', 'configured_status', 'budget_remaining', 'created_time', 'start_time', 'daily_budget', 'effective_status', 'is_autobid', 'updated_time', 'lifetime_budget', 'lifetime_frequency_cap', 'lifetime_imps', 'optimization_goal', 'name')) On trying to execute above LOC, I get

Error in rbind(deparse.level, ...) : numbers of columns of arguments do not match`

Suddenly I have been getting this error. Used to work fine so far. What's the issue?

daroczig commented 6 years ago

When you are quering complex fields returning lists instead of scalar values, you'll have to use simplify = FALSE and do the post-processing on your own