GithubHelp home page GithubHelp logo

godotheyzap's Introduction

donate

GodotHeyzap

Heyzap Module for Godot Game Engine (Android only by while)

Screenshot

Compiling

  1. 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
  2. compile the godot source for android;

Avaliable Functions:

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()

Callback Functions:

_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()

Sample Code

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.

Known Issues

Due to some technical difficulties the following networks wasn't linked in this module:

  • Adcolony;
  • Tapjoy;
  • Vungle.

godotheyzap's People

Contributors

shin-nil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

godotheyzap's Issues

Port to GDNative

Hello, I would very much like to use this module, I would of port it to GDNative but I know nothing of C++ ... Do you think you could port it anytime soon?

iOS module

Hello, are you planning to make an ios module?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.