Giter VIP home page Giter VIP logo

rcriteo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rcriteo's Issues

Authentication Parameter

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"

Error in xmlChildren(x)[[...]] : subscript out of bounds

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

getCriteoCampaign does not return value

I notice there's a problem with getCriteoCampaign command for some account. For example, nothing is returned as shown below when using this command for one of the account.

image

However, rerunning the same command 5 minutes later show the result.

image

Not sure if anyone experiene this problem before ?

doCriteoAuth returns NULL (empty)

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?

Simplify Data Download

Integrate getCriteoJobStatus, getCriteoDownloadURLand getCriteoData into one function.

Error in attr(data, "metrics") <- metrics : attempt to set an attribute on NULL

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. ---&gt; There is an error in XML document (19, 52). ---&gt; Input string was not in a correct format.</faultstring>
  <detail/>
</soap:Fault>

</soap:Body>

</soap:Envelope>

Am I missing a step here?

AppName in AuthToken call

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

appName

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.