Translations:On Response/9/ru: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
function(response) { | function(response) { | ||
if (response.block == 1) { | if (response.block == 1) { | ||
// | // показ заблокирован | ||
window.location = 'some.url'; | window.location = 'some.url'; | ||
} else if (response.fraud == 1) { | } else if (response.fraud == 1) { | ||
// | // бот | ||
// response.reason: Spoofing, Automated, Crawler, Bad reputation IP, Incorrect requests | |||
window.location = 'some.url'; | window.location = 'some.url'; | ||
} else { | } else { | ||
// | // не бот | ||
// response.reason: "" | |||
showAd(); | showAd(); | ||
} | } | ||
} | } | ||
</pre> | </pre> | ||
Latest revision as of 15:07, 3 November 2026
function(response) {
if (response.block == 1) {
// показ заблокирован
window.location = 'some.url';
} else if (response.fraud == 1) {
// бот
// response.reason: Spoofing, Automated, Crawler, Bad reputation IP, Incorrect requests
window.location = 'some.url';
} else {
// не бот
// response.reason: ""
showAd();
}
}