Tapsell ads implementation for the Godot game-engine. Currently only supports rewarded video ads.
Tested on Godot 3.3.2 and Android Q
-
Download the zip file provided here .
-
Extract
.arr
and.gdap
files inres://android/plugins
of your Godot project -
Extract the
.gd
file inres://commons
of your Godot project -
Install Godot's "Android Build Template" using the
Project > Install Android Build Template...
menu entry in the Godot editor -
Open
Project > Project Settings...
; head over to the Autoload tab and add the extracted script as an autoload with node name ofTapsell
-
Open
Project > Export...
. In your Android preset; enable the "Use Custom Build" and "Godot Tapsell" options.
Specify your appid in the Tapsell.gd
file.
Anywhere in your code:
Tapsell.request_video_ad("<zone id>")
Finally, in a video_ad_request_response
signal handler you can:
func on_video_ad_request_response(zone: String, id: String):
Tapsell.show_video_ad(id)
Anywhere in your code:
Tapsell.create_banner_frame(width, height, gravity)
Tapsell.request_banner_ad("<zone id>", banner_type)
# Example:
Tapsell.create_banner_frame(320, 150, Tapsell.GRAVITY_TOP)
Tapsell.request_banner_ad("<zone id>", Tapsell.BANNER_TYPE_320x50)
Then, in a banner_ad_request_response
signal handler:
func on_banner_ad_request_response(zone: String, id: String):
Tapsell.show_banner_ad(id)
Finally, to close the banner do this anywhere in your code:
Tapsell.destroy_banner_ad(id)