...
- No valid conversion datasets given in request. All n datasets are invalid! => Alle Datensätze, die zur Änderung angegeben worden sind, sind ungültig, bitte überprüfen.
Too many conversion datasets in request! Maximum datasets per request: n => Es sollen zu viele Conversions auf einmal geändert werden. Die maximal zulässige Anzahl an gleixhzeitigen Änderungen steht am Ende der Fehlermeldung.
Beispiel
Code Block | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
$client = new SoapClient($wsdlUrl); date_default_timezone_set('Europe/Berlin'); $editConversion = new StdClass(); $editConversion->mandatorId = 0; $conversion = new StdClass(); $conversion->emailAddress = "user@example.com"; $conversion->trackingId = "Gux34SI6pm"; $conversion->currency = "EUR"; $conversion->amount = "1000"; $conversion->estimatedLogtime = mktime(9, 40, 0, 7, 4, 2013); $conversion->maxMinutesDifference = 10; $conversion->newAmount = 50.56; $editConversion->conversions = array(); array_push($editConversion->conversions, $conversion); try { $result = $client->editConversions($editConversion); var_dump($result); } catch (Exception $e) { echo "Error: " . $e->getMessage() . "\n"; } |
Code Block | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
object(stdClass)#4 (2) { ["summaryResult"]=> bool(false) ["conversions"]=> object(stdClass)#5 (1) { ["item"]=> object(stdClass)#6 (12) { ["emailAddress"]=> string(16) "user@example.com" ["trackingId"]=> string(10) "Gux34SI6pm" ["currency"]=> string(3) "EUR" ["amount"]=> float(1000) ["newCurrency"]=> string(3) "EUR" ["newAmount"]=> float(50.56) ["deleteAction"]=> bool(false) ["uniqueMatch"]=> bool(false) ["estimatedLogtime"]=> string(29) "2013-07-04T09:40:00.000+02:00" ["maxMinutesDifference"]=> int(10) ["numAffected"]=> int(0) ["resultCode"]=> int(0) } } } |
...
Beispiel für das Editieren einer Conversion