Method signature
To get advertisement placement reward a contract is required:
This method not only searches for an ad to show but shows it immediately after ad is found. You do not need to use other SDK methods to show ad.
Example usage
Callback example
В результате выполнения функции в параметре data указывается информация о процессе показа рекламы
Callback if an ad is not found
method: “showAd”
result: “error”
data: “no_ads”
Callback if an ad is ready to be shown
method: “showAd”
result: “ok”
data: “ad_prepared”
Callback if an ad is shown to user
method: “showAd”
result: “ok”
data: “ad_shown”
A callback for a case when a request was blocked by an ad blocker
method: “showAd”
result: “error”
data: “initialization_error”