I use fb_insights
fbRads from the package as follows: (I use more indicators in my real problem)
fb_campaigns <- rbindlist(lapply(l, function(l) cbind(Campaign = l$campaign_name, rbindlist(l$actions))))
Oh, and I get some warnings (I know that I am doing something wrong, but I cannot solve it):
Warning messages:
1: In data.table::data.table(...) :
Item 1 is of size 11 but maximum size is 104 (recycled leaving remainder of 5 items)
The result is a data frame with all the data I need (Campaign, action_type, value), but ... the columns with "action_types" and their numbers are out of order. The action data does not seem to be from campaigns in rows.
How can I combine action types with campaigns?
After entering the data in the correct rows, I will use reshape to make action_types columns with values.
The data I get from fb Rads and I want to convert:

, , ( , , )
