RSmartlyIO: Loading Facebook and Instagram Advertising Data from...

Description Author(s) Examples

Description

Aims at loading Facebook and Instagram advertising data from Smartly.io into R. Smartly.io is an online advertising service that enables advertisers to display commercial ads on social media networks. The package offers an interface to query the Smartly.io API and loads data directly into R for further data processing and data analysis.

Author(s)

Johannes Burkhardt <johannes.burkhardt@gmail.com> https://github.com/rstats-lab/RSmartlyIO

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
data <- getSmartlyData(start = "2016-03-01",
                       end = "2016-03-02",
                       date = "date",
                       accountID="*****************",
                       accountInfo = F,
                       campaignStructure = c("campaign_name", "campaign_fb_id"),
                       billing = c("bid.optimization_goal", "bid.billing_event"),
                       targeting = c("targeting.geo_locations.countries"),
                       creative = c("creative_meta.call_to_action"),
                       #facebook = "age",
                       apiToken="************************************",
                       metrics = c("impressions","clicks"))

## End(Not run)

RSmartlyIO documentation built on May 2, 2019, 9:37 a.m.