Translations:On Response/9/en: Difference between revisions

From Wiki Kaminari Click
(Importing a new version from external source)
(No difference)

Revision as of 02:04, 19 September 2023

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (On Response)
<pre>
function(response) {
   if (response.block == 1) {
       // blocked click
       window.location = 'some.url';
   } else if (response.fraud == 1) {
       // bot
       window.location = 'some.url';
   } else {
       // not a bot
       showAd();
   }
}
</pre>
function(response) {
    if (response.fraud == 1) {
        // bot
        window.location = 'some.url';
    } else {
        // not a bot
        showAd();
    }
}