Add Conversion

Sends conversion data to Adnium

PHP

Replace the following:
[ATRACK] with the generated conversion ID you got from Adnium
[AMOUNT] with the amount from the conversion
[YOUR_API_TOKEN] with your token

<?php
  $params = array(
    'atrack'=>'[ATRACK]',
    'amount'=>'[AMOUNT]',
  );
  $curl = curl_init('https://api.adnium.com/v1/advertiser/conversion/add/?token=[YOUR_API_TOKEN]');
  curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($this->curl, CURLOPT_POST, true);
  curl_setopt($this->curl, CURLOPT_POSTFIELDS, $params);
  $response = curl_exec($curl);
  curl_close($curl);
  var_dump($response);
?>
Language