https://www.facebook.com/mongsergey
The following section helps you to get started straight away to get data from Criteo REST API.
Package available now only from GitHub:
require(devtools)
devtools::install_github("sergeymong/CriteoR")
The first one you should have Criteo REST API Client ID and Client Secret. You can get it in Criteo Dynamic Remarketing Account:
https://marketing.criteo.com/Home -> Management Center -> Account Settings -> Users -> Create API User (In REST API block)
You just need to log in once. Authorization data are saved to a file and then authorization will occur automatically.
library(CriteoR)
criteo_auth("mapi-41jf7549-fa1r-90af-pt54-o5jfhan91nty",
"D1s1by_X)Dgasd;g!*") # it's example data
The simplest way get stats:
# This command returns stats by all active campaigns and advertisers in your account for yesterday
criteo_stats_report()
If you want more data:
criteo_stats_report(start_date = "2017-01-01",
end_date = Sys.Date() - 1,
metrics = list("Audience", "Displays", "Clicks",
"ECpc", "ECpm", "AdvertiserCost",
"SalesPc", "RevenueGeneratedPc", "AverageCart"),
prettify = F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.