Skip to content

Commit

Permalink
Add destroy_banner_ad
Browse files Browse the repository at this point in the history
  • Loading branch information
OverShifted committed Sep 15, 2022
1 parent ab16f22 commit c528f8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ public void onError(TapsellPlusErrorModel tapsellPlusErrorModel) {
});
}

@UsedByGodot
public void destroy_banner_ad(String p_id) {
TapsellPlus.destroyStandardBanner(m_activity, p_id, m_activity.findViewById(R.id.ad_banner));
}

@UsedByGodot
public void request_video_ad(String p_zone_id) {
TapsellPlus.requestRewardedVideoAd(m_activity, p_zone_id, new AdRequestCallback() {
Expand Down
Binary file modified ReleaseFiles/GodotTapsell-release.aar
Binary file not shown.
3 changes: 3 additions & 0 deletions ReleaseFiles/Tapsell.gd
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ func request_banner_ad(zone: String, banner_type: int):
func show_banner_ad(id: String):
if plugin: plugin.show_banner_ad(id)

func destroy_banner_ad(id: String):
if plugin: plugin.destroy_banner_ad(id)

func request_video_ad(zone: String):
if plugin: plugin.request_video_ad(zone)

Expand Down

0 comments on commit c528f8c

Please sign in to comment.