Giter Site home page Giter Site logo

godotappodeal's Introduction

GodotAppodeal

Appodeal Ads Module for Godot engine

How to Use

Simply clone this repository put inside of the modules folder inside of godot source code and compile the godot source for android.

Avaliable Functions:

appodeal.init(instanceId, key, type, testing)
- integer instanceId => use get_instance_ID()
- string key => your appodeal key
- string type => valid values: "banner", "video", "interstitial", "interstitial/video", "banner/video", "rewardedvideo", "banner/rewardedvideo", "banner/interstitial"
- boolean testing => indicates if you are testing your app or not

appodeal.showBannerAd(type)
- string type => This function requires a banner type of the following ("top", "center", "bottom")

appodeal.showVideoAd()

appodeal.showRewardedVideoAd()

appodeal.showInterstitialAd()

appodeal.showInterstitialAndVideoAds()

appodeal.loadNonSkipVideoAd()

appodeal.loadBannerAd()

appodeal.loadInterstitialVideoAd()

appodeal.loadRewardedVideoAd()

appodeal.loadVideoAd()

appodeal.hideBannerAd()

appodeal.hideVideoAd()

appodeal.hideInterstitalAd()

appodeal.isBannerLoaded() Boolean

appodeal.isVideoLoaded() Boolean

appodeal.isRewardedVideoLoaded() Boolean

appodeal.isInterstitalLoaded() Boolean

appodeal.isAnyAdLoaded() Boolean

appodeal.registerCallback()

appodeal.unRegisterCallback()

Callback Functions:

You should register your gdscript callbacks functions with registerCallback before use. Ex:

(...)
appodeal.registerCallback("onInterstitialLoaded", "_my_callback")
(...)

func _my_callback():
    print ("Interstitial was loaded")
appodeal.registerCallback(callback_type, callback_function)
- string callback_type => valid values: 

        "onInterstitialLoaded"
        "onInterstitialFailedToLoad"
        "onInterstitialShown"
        "onInterstitialClicked"
        "onInterstitialClosed"

        "onBannerLoaded"
        "onBannerFailedToLoad"
        "onBannerShown"
        "onBannerClicked"

        "onSkippableVideoLoaded"
        "onSkippableVideoFailedToLoad"
        "onSkippableVideoShown"
        "onSkippableVideoFinished"

        "onSkippableVideoClosed"
        "onNonSkippableVideoLoaded"
        "onNonSkippableVideoFailedToLoad"
        "onNonSkippableVideoShown"
        "onNonSkippableVideoFinished"
        "onNonSkippableVideoClosed"

        "onRewardedVideoLoaded"
        "onRewardedVideoFailedToLoad"
        "onRewardedVideoShown"
        "onRewardedVideoFinished"
        "onRewardedVideoClosed"

- string callback_function => the name of your callback function

appodeal.unregisterCallback(callback_type)
- string callback_type => valid values: same as in registerCallback

Good Luck and Enjoy

godotappodeal's People

Contributors

carlosmarti avatar cimpresovec avatar jmaargh avatar shin-nil avatar shinz6 avatar

Watchers

 avatar  avatar  avatar

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.