banboo-data / RCriteo

Loading Criteo Campaign Data into R
http://jburkhardt.github.io/RCriteo/
Other
6 stars 3 forks source link

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

Closed connelldan closed 9 years ago

connelldan commented 9 years ago

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?

connelldan commented 9 years ago

I figured it out. I need to use campaign id instead of campaign name. maybe consider changing the parameter to 'campaignID' and showing how to obtain ID's with getCriteoCampaigns() earlier in README to make following steps easier. Thanks again for making this API!