All Projects → MrZak-dev → GodotFAN

MrZak-dev / GodotFAN

Licence: other
Facebook Audience Network Ad module for godot

Programming Languages

java
68154 projects - #9 most used programming language
GDScript
375 projects

Projects that are alternatives of or similar to GodotFAN

godot-local-notification
Godot module for local notifications (android and iOS)
Stars: ✭ 111 (+344%)
Mutual labels:  godot, godot-engine, godot-module, godot-plugin
nativelib-cli
NativeLib is a plugin management system for Godot engine.
Stars: ✭ 19 (-24%)
Mutual labels:  godot, godot-engine, godot-module, godot-plugin
PostgreSQLClient
PostgreSQL connector for Godot Engine in GDScript.
Stars: ✭ 28 (+12%)
Mutual labels:  godot, godot-engine, godot-module, godot-plugin
godot-android-plugin-firebase
Godot 3.2.2 Android plugin for Firebase
Stars: ✭ 41 (+64%)
Mutual labels:  godot, godot-engine, godot-module, godot-plugin
Persistence
Plugin para almacenar datos de forma persistente en Godot Engine 3
Stars: ✭ 20 (-20%)
Mutual labels:  godot, godot-engine, godot-plugin
GodotTerrainEditorPainter
Heightmap based terrain editor plugin for GODOT with vertex color based terrain shader painting
Stars: ✭ 23 (-8%)
Mutual labels:  godot, godot-engine, godot-plugin
godot-rpgdb
An easy to use JSON database-manager for Godot.
Stars: ✭ 25 (+0%)
Mutual labels:  godot, godot-engine, godot-plugin
discord.gd
Discord Bot API wrapper for Godot. Make bots in GDScript.
Stars: ✭ 69 (+176%)
Mutual labels:  godot, godot-engine, godot-plugin
godot-uuid
Unique identifier generation v4 for Godot Engine
Stars: ✭ 96 (+284%)
Mutual labels:  godot, godot-engine, godot-plugin
Godot-DialogPlugin
🗨️ A Dialog Node for Godot Engine
Stars: ✭ 194 (+676%)
Mutual labels:  godot, godot-engine, godot-plugin
godot-skills
A generic, compositional skill system for Godot Engine that uses scenes to design abilities and their effects.
Stars: ✭ 25 (+0%)
Mutual labels:  godot, godot-engine, godot-plugin
viewport-spy
Godot editor UI to spy on what a Viewport is rendering. Useful for debugging.
Stars: ✭ 28 (+12%)
Mutual labels:  godot, godot-engine, godot-plugin
godot box2d
A C++ module that integrates the Box2D library with the Godot game engine by providing nodes for standard Box2D objects.
Stars: ✭ 32 (+28%)
Mutual labels:  godot, godot-engine, godot-module
Project-Map
No description or website provided.
Stars: ✭ 52 (+108%)
Mutual labels:  godot, godot-engine, godot-plugin
godot-plugin-refresher
Adds a dropdown and refresh button combo to the toolbar for instantly toggling off/on a plugin. Enables faster workflows for Godot plugin developers.
Stars: ✭ 104 (+316%)
Mutual labels:  godot, godot-engine, godot-plugin
MySQL Module
MySQL connector to Godot Engine.
Stars: ✭ 30 (+20%)
Mutual labels:  godot, godot-engine, godot-module
godot-logger
Simple in-game logger for Godot 4.0
Stars: ✭ 14 (-44%)
Mutual labels:  godot, godot-engine, godot-plugin
GDGotm
Official Godot plugin for gotm.io - the Godot Platform!
Stars: ✭ 43 (+72%)
Mutual labels:  godot, godot-engine
godot-practice-shaders
Some practice shaders in Godot
Stars: ✭ 79 (+216%)
Mutual labels:  godot, godot-engine
godot-ios-plugins
No description or website provided.
Stars: ✭ 53 (+112%)
Mutual labels:  godot, godot-plugin

Facebook Audience Network GODOT Plugin compatible with godot >= 3.2.1 new plugin system

Using the plugin

clone or download the repo to your and place GodotFAN folder to your_godot_project/android folder , after installing Android Build Template

the new Godot plugin system doesn't require compiling the source code

demo

Initialize the module

in your project.godot add

[android]
modules="org/godotengine/godot/GodotFAN"

or From Project Setting >> Compression > Android

API

var facebookAds
func _ready()-> void:
	facebookAds = Engine.get_singleton("GodotFAN")
	facebookAds.FacebookAdsInit(get_instance_id(),"YOUR_INTERSTITIAL_PLACEMENT_id","YOUR_REWARDED_VIDEO_PLACEMENT_id" , "YOUR_BANNER_PLACEMENT_id")

Calling the interstitial and rewarded video ads

facebookAds.showInterstitial() #Calls an interstitial ad

facebookAds.loadRewardedVideo() # Loads a rewardedVideo ad

facebookAds.showRewardedVideo() #Calls a rewarded video ad (remmember to call loadRewardedVideo() before showing a rewarded video)

facebookAds.loadBanner(isTop : bool) #Loads a banner AdView , it takes a bool parameter , true for banner in the TOP , false for a banner in the BOTTOM

facebookAds.showBanner() #show a banner ad if it is hidden , the banner ad is by visible by default

facebookAds.hideBanner() #hide a banner ad  , the banner ad is by visible by default 

CallBacks

#Interstitial Ad CallBacs

func onInterstitialReady() -> void:
	#Called When a interstitial Ad is loaded and Ready
	pass


func onInterstitialClosed() -> void:
	#Called When a interstitial Ad is closed
	pass

##Rewarded Video Ad CallBacs

func onRewardedReady() -> void:
	#Called When a Rewarded video Ad is loaded and ready
	pass

func onRewardedClosed() -> void:
	#Called When a Rewarded video Ad is closed (completed or not , this only detects the close action)
	pass

func onRewardedCompleted() -> void:
	#Called When An Rewarded video Ad is completed

	#Call Reward Function here
	pass

Debugging

adb -d logcat GodotFan:V FAN:V godot:V *:S

Tested with godot 3.2.2

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].