Skip to main content
All CollectionsAdex ENG
Callback settings
Callback settings
Alan K. avatar
Written by Alan K.
Updated over 2 years ago

In case you are using JavaScript integration method, you can set callbacks. Using callbacks you can set a certain action on your page, depending on the status.

Callback is a function which will be called after determining the value. The value will be passed to the function as a number. Below you can see a status match table:

status = -1   // time out
status = 0 // good
status = 1 // warning
status = 2 // alert

For example, if a user is determined by ADEX as alert, using callback, you can block all the content on the page for such user, etc.

Below you can see an example of the easiest callback, which outputs the status in console:

Did this answer your question?