diff --git a/README.md b/README.md index c9014e4..ac66b87 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Currently, this plugin supports: ## Setup -- Configure, install and enable the "Android Custom Template" for your project, just follow the [official documentation](https://docs.godotengine.org/en/latest/getting_started/workflow/export/android_custom_build.html); +- Configure, install and enable the "Android Custom Template" for your project, just follow the [official documentation](https://docs.godotengine.org/en/stable/getting_started/workflow/export/android_custom_build.html); - go to the [release tab](https://github.com/Shin-NiL/Godot-Android-AdMob-Plugin/releases), choose a version and download the respective ```GodotAdMobPlugin-x.x.x.zip``` package; - extract the content of the ```admob-plugin``` directory (```GodotAdmob.gdap``` and ```GodotAdmob.release.aar``` from the zip package) inside the ```res://android/plugins``` directory on your Godot project. - extract the ```admob-lib``` directory (from the zip package) inside the ```res://``` directory on your Godot project. @@ -23,11 +23,16 @@ Currently, this plugin supports: android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-3940256099942544~3347511713"/> ``` -One good place to add this metadata is just below these lines: +One good place to add this metadata is just below these lines, inside of the **application** tag: ``` + +... + +Here + ``` **NOTE**: everytime you install a new version of the Android Build Template this step must be done again, as the ```AndroidManifest.xml``` file will be overriden. @@ -65,11 +70,7 @@ Was this project useful for you? Wanna make a donation? These are the options: My [Paypal donation link](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=3MJE3M4FMJYGN&lc=BR&item_name=Shin%2dNiL%27s%20Github&item_number=Github¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) ### Brave Browser - -Even without spending any money you can still help me installing [Brave browser](https://brave.com/) using my [referral link](https://brave.com/shi012 ). -If you do so and keep using the browser, I'll receive some reward. - -If you're already a Brave user, please consider donating some BATs ;) +If you're a Brave browser user, please consider donating some BATs ;) ## API Reference diff --git a/admob-lib/admob.gd b/admob-lib/admob.gd index 2a6273d..74249d8 100644 --- a/admob-lib/admob.gd +++ b/admob-lib/admob.gd @@ -23,10 +23,10 @@ export(String, "ADAPTIVE_BANNER", "SMART_BANNER", "BANNER", "LARGE_BANNER", "MED export var banner_id:String export var interstitial_id:String export var rewarded_id:String -export var child_directed:bool = false -export var is_personalized:bool = true -export(String, "G", "PG", "T", "MA") var max_ad_content_rate = "G" - +export var child_directed:bool = false setget child_directed_set +export var is_personalized:bool = true setget is_personalized_set +export(String, "G", "PG", "T", "MA") var max_ad_content_rate = "G" setget max_ad_content_rate_set + # "private" properties var _admob_singleton = null var _is_interstitial_loaded:bool = false @@ -59,6 +59,9 @@ func max_ad_content_rate_set(new_val) -> void: max_ad_content_rate = "G" print("Invalid max_ad_content_rate, using 'G'") + else: + max_ad_content_rate = new_val + init() # initialization diff --git a/showcase.md b/showcase.md index d7d3916..25c9a25 100644 --- a/showcase.md +++ b/showcase.md @@ -6,17 +6,34 @@ If you like to add your game in this list open an issue or send me a pull reques ## List of Published Games using this Plugin - [12345 Rotors - Puzzle Game](https://play.google.com/store/apps/details?id=com.ross.numbergame12345) +- [Ball Square](https://play.google.com/store/apps/details?id=com.mani.ballandsquare&hl=en_US) +- [Ball Toss](https://play.google.com/store/apps/details?id=com.EGFABT.Ball_Toss) +- [Bomber Pilot](https://play.google.com/store/apps/details?id=org.ohyaiamheregames.bomberpilot) +- [Bomber Pilot 2](https://play.google.com/store/apps/details?id=org.ohyaiamheregames.bomberpilottwo) - [Break Bacteria](https://play.google.com/store/apps/details?id=com.turkicgames.breakbacteria) +- [Cars On Tracks](https://play.google.com/store/apps/details?id=org.Introsflexion.CarsOnTracks) +- [DeathGuy](https://play.google.com/store/apps/details?id=org.amdotblacksheep.deathguy) +- [Domino Trail](https://play.google.com/store/apps/details?id=org.losyk.dominotrail) - [Future Funk Soccer Racing](https://play.google.com/store/apps/details?id=org.godotengine.cargame) - [Help Luigi!](https://play.google.com/store/apps/details?id=com.bananaonfire.helpluigi) - [HoverFlow - Endless Driver](https://play.google.com/store/apps/details?id=godot.pizzajuggler.hoverflow) - [iDrink – Drinking Game 🍻](https://play.google.com/store/apps/details?id=com.garfsapps.umgole) +- [Inline](https://play.google.com/store/apps/details?id=com.loustak.inline) - [Ionitron - ion magnet puzzle game](https://play.google.com/store/apps/details?id=godot.pizzajuggler.ionitron) +- [Landbox](https://play.google.com/store/apps/details?id=org.hideckies.landbox) +- [Mad Crab Grab](https://play.google.com/store/apps/details?id=org.godotengine.madcrabgrab) +- [No Rush - Puzzle/Platformer Game](https://play.google.com/store/apps/details?id=org.turkmenh.norush) +- [Office Kiss Game](https://play.google.com/store/apps/details?id=org.godotengine.secretkisses) - [Piranha Escape](https://play.google.com/store/apps/details?id=com.bitmagine.piranhaescape) +- [Plane in a Cavern](https://play.google.com/store/apps/details?id=org.kanataexe.tappytheplane) - [Reverse Babylon](https://play.google.com/store/apps/details?id=com.PlastilinLepim.babylon) +- [Rush: Endless Arcade](https://play.google.com/store/apps/details?id=org.haruntrkmn.rush) - [SLID - Letter Sliding Puzzle](https://play.google.com/store/apps/details?id=com.kamofa.slid) - [SpeedSnake](https://play.google.com/store/apps/details?id=com.mosscrow.speedsnake) +- [Spin Mania](https://play.google.com/store/apps/details?id=com.kalzcoat.spinmania) - [Turzzle](https://play.google.com/store/apps/details?id=com.bananaonfire.turzzle) - [Walls of Stone - Puzzle Game](https://play.google.com/store/apps/details?id=dev.mintstudios.wos) - [Warzone 2 - Top down shooter](https://play.google.com/store/apps/details?id=com.raptor.inc) +- [WoW Death Roll Simulator](https://play.google.com/store/apps/details?id=ch.jackfruit.deathrollsimulator) - [Zeptris](https://play.google.com/store/apps/details?id=net.wynoo.zeptris) +- [Zone Crush - A Match 3 Game 2020](https://play.google.com/store/apps/details?id=com.GamesForLife.ZoneCrush)