fbRads | manage Facebook ads from R
kandi X-RAY | fbRads Summary
kandi X-RAY | fbRads Summary
This R package includes wrapper functions around the Facebook Marketing API to create, read, update and delete custom audiences, images, campaigns, adsets, ads and related content. For more details, see the slides presented at useR! 2015, EARL 2015, the Los Angeles R Users Group and at a Domino Webinar.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fbRads
fbRads Key Features
fbRads Examples and Code Snippets
Community Discussions
Trending Discussions on fbRads
QUESTION
I'm using the fb_insights
from the package fbRads like this: (I use more metrics 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 I'm doing something wrong, but can't 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 the data frame with all the data I need (Campaign, action_type, value), but... the columns with the "action_types" and their numbers came out of order. The action data don't seem to be from the campaigns in the rows.
How can I merge the action types with the campaigns?
After I the data in the correct rows, I will use reshape to make the action_types columns with the values.
The data I get from fb Rads and I want to transform are like this:
The data I get using my code are like this (the format is OK, but not the order of the values, they are not the values for the campaigns)
...ANSWER
Answered 2017-Nov-01 at 17:21daroczig give me the solution bellow, and seems to work fine!
QUESTION
I have pulled data from facebook api fbRads
. Here is the sample of data frame I have:
ANSWER
Answered 2017-Sep-04 at 09:13Here is a start:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fbRads
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page