Skip to content

OverShifted/GodotTapsell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GodotTapsell

GodotTapsell Logo

Tapsell ads implementation for the Godot game-engine. Currently only supports rewarded video ads.

Tested on Godot 3.3.2 and Android Q

Installation

  1. Download the zip file provided here .

  2. Extract .arr and .gdap files in res://android/plugins of your Godot project

  3. Extract the .gd file in res://commons of your Godot project

  4. Install Godot's "Android Build Template" using the Project > Install Android Build Template... menu entry in the Godot editor

  5. Open Project > Project Settings...; head over to the Autoload tab and add the extracted script as an autoload with node name of Tapsell

  6. Open Project > Export.... In your Android preset; enable the "Use Custom Build" and "Godot Tapsell" options.

    Export Menu

Usage

Specify your appid in the Tapsell.gd file.

Video ad

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)

Standard banner ad

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)