Heyzap Module for Godot Game Engine (Android only by while)
- Copy the 'heyzap' folder from the root of this repository and its contents and put it inside of the modules folder inside of godot source code directory
- compile the godot source for android;
init(instance_id, publisher_id)
- integer instanceId => use get_instance_ID()
- String publisher_id => your Heyzap publisher id
startTestActivity()
setGdprConsent(isGdprConsentGiven)
- Boolean isGdprConsentGiven => It is true if you have the user's consent. If you do not have the user's consent, it is false
loadBanner(onTop)
- Boolean onTop => if it's true, load the banner on top of screen, else load on the bottom
showBanner()
hideBanner()
displayInterstitial()
fetchVideoAd()
isVideoAdAvailable() Boolean
displayVideoAd()
fetchIncentivizedAd()
isIncentivizedAdAvailable() Boolean
displayIncentivizedAd()
_on_network_callback(network, event)
- String network => Network name, eg: "heyzap", "facebook", "unityads", "applovin", "vungle", "chartboost", "adcolony", "admob", "hyprmx"
- String event => Event name, eg: "initialized", "show", "available", "hide", "fetch_failed", "click", "dismiss", "incentivized_result_complete", "incentivized_result_incomplete", "audio_starting", "audio_finished", "banner-loaded", "banner-click", "banner-hide", "banner-dismiss", "banner-fetch_failed", "leave_application", "display_failed"
_on_banner_loaded()
_on_banner_error()
_on_interstitial_hide()
_on_interstitial_available()
_on_insterstitial_failed_to_fetch()
_on_video_hide()
_on_video_available()
_on_video_failed_to_fetch()
_on_incentivized_hide()
_on_incentivized_available()
_on_incentivized_failed_to_fetch()
_on_incentivized_show()
_on_incentivized_complete()
_on_incentivized_incomplete()
Please don't forget to check the demo project to see how the things works on the GDScript side. You can find a quick tutorial here.
Due to some technical difficulties the following networks wasn't linked in this module:
- Adcolony;
- Tapjoy;
- Vungle.