IronClick's JavaScript allows you to send and receive reports of the actions in your campaigns.

Here are the actions that can be performed using the interface:
Click - report of a click on an ad in your campaign.
Conversion - report on a conversion in your campaign.

Note:
The JavaScript is optional but recommended as the preferred form of interfacing.
You can interface also in a simpler way by embedding API code on the website.
See more details on the matter (and the possibility to perform tests) in your campaign settings.

Find below the explanation how to create a click:
Path to the external JavaScript library:
https://www.ironclick.net/js/advertiser/click.js
JavaScript function to be activated to report click:
click.Init(OnSuccessClick, OnErrorClick);

OnSuccessClick
Pointer to a function for receiving a success report
OnErrorClick
Pointer to a function for receiving a failure report
Callback function into which a success report will be received:
function OnSuccessClick(clickid) { }

clickid
The unique click identifier that has been referred to you
Callback function into which a failure report will be received:
function OnErrorClick(error) { }

error
Contains details of the error. Possible errors:
The authorization not exist!
The authorization is empty!
The authorization is invalid (Ad)!
The authorization is invalid (ApiKey)!
General error!
Find below the explanation how to create a conversion:
Path to the external JavaScript library:
https://www.ironclick.net/js/advertiser/conversion.js
JavaScript function to be executed to report a conversion:
conversion.Init(sum, currency, customerid, custom, OnSuccessConversion, OnErrorConversion);

sum
The payment amount of transaction, required when a dynamic reward type
currency
Currency of a transaction amount (ILS, USD, EUR), required when the currency of the transaction amount is different from a campaign currency
customerid
Customer identifier, maximum 100 characters, not mandatory
custom
Any custom data maximum 1000 characters, not mandatory
OnSuccessConversion
Pointer to a function for receiving a success report
OnErrorConversion
Pointer to a function for receiving a failure report
Callback function into which a success report will be received:
function OnSuccessClick(conversionid) { }

conversionid
The unique conversion identifier that has been referred to you
Callback function into which a failure report will be received:
function OnErrorConversion(error) { }

error
Contains details of the error. Possible errors:
The authorization not exist!
The authorization is empty!
The authorization is invalid (Click)!
The authorization is invalid (ApiKey)!
The authorization is invalid (AffiliatorToCampaign)!
The Sum is required field!
General error!
The authorization not exist!
In the header of the received request there is no key called Authorization.
The authorization is empty!
The received Authorization key does not contain any value.
The authorization is invalid (ApiKey)!
The Authorization key received is incorrect.
The authorization is invalid (Ad)!
There is no ad that matches the data received in the request.
The authorization is invalid (Click)!
There is no click that matches the data received in the request.
The authorization is invalid (AffiliatorToCampaign)!
According to data received in the request, the affiliate is not identified with the campaign.
The Sum is required field!
The amount of the transaction must be transferred in case the commission type of the campaign is percentage.
General error!
General error.