Skip to content

Advertisement

Fullscreen Advertisement

Calling full-screen advertisement:

Platform Supported
Crazy Games ✔️
Yandex Games ✔️
Poki ✔️
VK ✔️
WebBus.show_ad()

Rewarded Advertisement

Calling rewarded advertisement:

Platform Supported
Crazy Games ✔️
Yandex Games ✔️
Poki ✔️
VK ✔️
WebBus.show_rewarded_ad()

For full-screen and rewarded advertisements, there are 4 callback signals:

Platform Supported
Crazy Games ✔️
Yandex Games ✔️
Poki ✔️
VK ✔️
WebBus.reward_added 
WebBus.ad_closed
WebBus.ad_error
WebBus.ad_started

Full example

extends Node

func _ready():
    WebBus.ad_closed.connect(ad_closed)
    WebBus.ad_error.connect(ad_error)
    WebBus.ad_started.connect(ad_started)
    WebBus.reward_added.connect(reward_added)

    WebBus.show_rewarded_ad()


func ad_started():
    AudioServer.set_bus_mute(0, true)


func ad_closed():
    AudioServer.set_bus_mute(0, false)


func ad_error():
    push_warning("ad_error")


func reward_added():
    $Player.add_gold(10)
Platform Supported
Crazy Games ✔️
Yandex Games ✔️
Poki ❌
VK ✔️

Calling banner advertisement:

WebBus.show_banner()

Close banner advertisement:

WebBus.hide_banner()

Note

For Crazy Games banner you can set the size and position in the Main Screen Menu