banboo-data / rcriteo Goto Github PK
View Code? Open in Web Editor NEWLoading Criteo Campaign Data into R
Home Page: http://jburkhardt.github.io/RCriteo/
License: Other
Loading Criteo Campaign Data into R
Home Page: http://jburkhardt.github.io/RCriteo/
License: Other
Where can I find the info of parameters from this request in Criteo?
I would assume "userName" as email address I use to register as the an API user, "companyName" as the account name, but dont know where to get "appName"
authToken <- doCriteoAuth(user = "userName", password = "**********", company = "companyName", app = "appName", version = "3.6"
User Feedback:
"maybe consider changing the parameter to 'campaignID' and showing how to obtain ID's with getCriteoCampaigns() earlier in README to make following steps easier."
I can run the code without any problem except for the criteoData command which return the following error"Error in xmlChildren(x)[[...]] : subscript out of bounds". Please see below for the full result.
> library(RCriteo)
Warning message:
package ‘RCriteo’ was built under R version 3.2.5
> options(RCurlOptions = list(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl")))
> authToken <- doCriteoAuth(user = "*****", password = "*****" , company = "company", app = "appName", version = "3.6")
> getCriteoCampaigns(authToken = authToken, appToken = '****')
> jobID <- scedCriteoReport(authToken = authToken, appToken = '****', campaigns = c("7742"), metrics = c("clicks", "impressions", "cost", "sales"), start = "2016-07-05", end = "2016-07-06")
jobID
[1] "1010694470"
attr(,"metrics")
[1] "clicks" "impressions" "cost" "sales"
> data <- criteoData(authToken = authToken, appToken = '****', jobID = jobID)
Error in xmlChildren(x)[[...]] : subscript out of bounds
Not sure why I cant get this to work. I do have username and password
authToken <- doCriteoAuth(user = "*****", password = "*****", company = "company", app = "appName", version = "3.6")
Im also using
options(RCurlOptions = list(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl")))
This helps me avoid this error message:
Error in function (type, msg, asError = TRUE) :
SSL certificate problem: unable to get local issuer certificate
I was looking at the function and noticed the API url is v2010 but my acct manager shows documentation with v201305
Could that be part of the issue?
Integrate getCriteoJobStatus
, getCriteoDownloadURL
and getCriteoData
into one function.
The actual SOAP API is going to be deprecated, do you have plans to update the package to support the new REST API?
If not, may I can contribute for this.
Article: https://support.criteo.com/hc/en-us/articles/360001226125-Testing-Criteo-Marketing-API
To Do:
Transform list to dataframe.
My credentials are now working and I am able to obtain an authToken.
However for scedCriteoReport() I am seeing the following error:
Error in attr(data, "metrics") <- metrics :
attempt to set an attribute on NULL
When breaking down the function, I find the initial error is at this point:
XML::xmlParse(h$value())
And it returns this error:
XML::xmlParse(h$value())
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Server was unable to read request. ---> There is an error in XML document (19, 52). ---> Input string was not in a correct format.</faultstring>
<detail/>
</soap:Fault>
</soap:Body>
</soap:Envelope>
Am I missing a step here?
Hello!
I am looking to pull criteo data into R using your library. One snag I seem to have run into is the "AppName" section of the AuthToken call. Is the "AppName" the long string API Key? Is it a dedicated app like how Twitter uses their API?
Thank you for your library, your work and your time!
Chad
Could you more clearly define appName for the app variable? And where can I find it? Also, is this still functioning? I see there hasnt been any contributions for a while.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.