Register an account in Tapdaq https://www.tapdaq.com before using this module.
Use NativeLib Addon or NativeLib-CLI for installation.
The core module has only SDK for Tapdaq mediation. For using any ad networks you should install specific adapters. For example install tapdaq-fan
for Facebook Audience Network.
Wrapper on gd-script will be in your autoloading list. Use global name tapdaq
anywhere in your code to use API.
Load banner with specific zone ID. callback_id
is instance_id from callback object.
Load interstitial with specific zone ID. callback_id
is instance_id from callback object.
Load rewarded ad with specific zone ID. callback_id
is instance_id from callback object.
Returns current banner width. Returns 0 if there are no active banners.
Returns current banner height. Returns 0 if there are no active banners.
Show banner with specific zone ID. The banner must be loaded before this call.
Hide banner with specific zone ID.
Completely remove banner view from the screen.
Show interstitial with specific zone ID. The interstitial must be loaded before call.
Show rewarded video ad with specific zone ID. The rewarded ad must be loaded before call.
Init SDK with GPDR status. If using Ogury plugin it can be done automatically.
Update GPDR status after initializing SDK
Update age restriction after initializing SDK
Update CCPA status after initializing SDK
Update content rating for AdMob (possible values: G, PG, T, MA )
Set custom user ID
When load ad you specified instance_id of callback object. This object can have methods to get callbacks from the SDK.
_on_rewarded_video_ad_loaded(id: String)
_on_rewarded_video_ad_failed_to_load(id: String, error: String)
_on_rewarded_video_ad_opened(id: String)
_on_rewarded_video_ad_left_application(id: String)
_on_rewarded_video_ad_closed(id: String)
_on_rewarded_video_started(id: String)
_on_rewarded_video_completed(id: String)
_on_rewarded(id: String, reward: String, amount: int)
_on_banner_loaded(id: String)
_on_banner_failed_to_load(id: String)
_on_banner_failed_to_load(id: String, error: String)
_on_banner_shown(id: String)
_on_interstitial_loaded(id: String)
_on_interstitial_failed_to_load(id: String, error: String)
_on_interstitial_close(id: String)