RCriteo: Loading Criteo Data into R

Description Author(s) Examples

Description

Aims at loading Criteo online display advertising campaign data into R. Criteo is an online advertising service that enables advertisers to display commercial ads to web users. The package provides an authentication process doCriteoAuth for R with the Criteo API. Moreover, the package features an interface to query campaign data from the Criteo API with scedCriteoReport. The data can be downloaded with criteoData. getCriteoDownloadURL generates a download link and getCriteoData will download the data and transform it into a R data frame. With getCriteoAccount and getCriteoCampaigns you can receive Account and Campaign Information.

Author(s)

Johannes Burkhardt <johannes.burkhardt@gmail.com>
https://github.com/jburkhardt/RCriteo

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Not run: 
Authentication:
authToken <- doCriteoAuth(user = "userName",
                            password = "**********",
                            company = "companyName",
                            app = "appName",
                            version = "3.6")
Retrieve Campaign IDs:
getCriteoCampaigns(authToken = authToken,
                      appToken = '*************')
Create Statement:
jobID <- scedCriteoReport(authToken = authToken,
                      appToken = '*************',
                      campaigns = c("12345", "23345", "98765", "45639"),
                      metrics = c("clicks", "impressions", "cost", "sales"),
                      start = "2015-09-01",
                      end = "2015-09-06")
Download Data:
data <- criteoData(authToken = authToken,
                    appToken = '*************',
                    jobID = jobID)

## End(Not run)

jburkhardt/RCriteo documentation built on May 18, 2019, 9:19 p.m.