[iOS & Android] AdMob Extension [3.0]

Abliblablobla

  • *
  • Posts: 524
Disclaimer: This is a third party extension and is not officially maintained by the Stencyl Team. The AdMob support that is officially included in Stencyl only supports banner ads.


The new AdMob Extension for Stencyl 3.x!

Introduction
The AdMob Extension [2.1] has been downloaded more than 1,000 times and there are more than 10,000 views in the AdMob Extension [2.1] thread alone! To thank you for all your support today I'm very happy to announce the AdMob Extension 3.0 for Stencyl 3.x!

What is it?
This is an extension for Stencyl 3.x that lets you use the AdMob Ad Network without a single line of code!

Key Features
- Cross-platform extension! Works on iOS and Android!
- [Improved] Easily integrate AdMob Banner Ads!
- [Improved] Easily integrate AdMob Smart Banner Ads!
- [Improved] Easily integrate AdMob Interstitial Ads!
- [NEW!] Full control over your AdMob banners!
- [NEW!] Basic control over your interstitials/fullscreen ads!
- [NEW!] Google Play Services SDK to provide compatibility across all the Android devices!
- [Improved] Latest AdMob SDK for iOS (6.9.3)!
- Supports Android 2.3.x (Gingerbread), 4.0.x (Ice Cream Sandwich), 4.1.x ~ 4.3.x (Jelly Bean) and 4.4.x (KitKat)!
- Supports iOS 6.x and iOS 7.x!

AdMob Documentation
I have written a guide for this extension and I strongly encourage everyone who wants to use it to read this guide as it contains a lot of information about how to use this extension. You will find step-by-step instructions on how to configure your AdMob account, detailed descriptions of every block of this extension and useful tips and tricks you should learn to increase your revenue! Please note that this guide is not complete as it is a work in progress. Any feedback is much appreciated: if there are any errors, paragraphs that need improvements and suggestions, feel free to tell me about them!

How to download this extension
At the end of this post you will find:
- a .zip folder which contains the extension. Do not unzip it!
- a .pdf document which contains the AdMob Documentation.

How to install this extension
Here you will find clear instructions on how to install and update an extension:  How to install and update an extension

Important
If you were using a previous version of this extension, backup your games before installing this new version. This new version contains new blocks and existing blocks may require some changes in order to work.

Support me!
This is a completely free extension and it will always be free! If you wisely use AdMob and with a bit of luck, you will be able to monetize your free games and start to earn some money even with a simple game like Floppy Birds Seasons or My Critter or an app like Cheat Codes for GTA 5.
If you feel like you want to thank me with a cup of tea click on the button below to donate. I want to remind you that this is a completely free extension, so you can download and use it for commercial purposes without any donation!


(NOTE: Payments are processed through PayPal. You can use your PayPal account or your credit card to make a donation.)

Note: requires Stencyl 3.3
Download Admob Extension

Changelog
Feb 3rd:
          Added 64-bit support to iOS (thanks to robinschaafsma)
July 6th:
           AdMob Extension [3.0]: Missing "libmyadmob.so".
July 5th:
           AdMob Extension [3.0]: Initial Release.
           AdMob Documentation [3.0]: Initial Release.

« Last Edit: March 24, 2015, 01:21:41 pm by rob1221 »
.: BuruBuru :.

Abliblablobla

  • *
  • Posts: 524
.: BuruBuru :.

mat0pad

  • Posts: 364
Great work! I'm really looking forward to integrate these new check functions into my apps. May I ask what the reserved space is for? :o
   


                              

bonzero

  • Posts: 488
Thanks a lot ¡ !  For me this is the most essential extension for stencyl. Ive been using it myself and  it allowed me to monetize  some apps,  ive sent you a small  donation for all the great work

havana24

  • *
  • Posts: 508
Thanks abliblablobla for this great work! :)

Do you have any advice about the upgrade from the last version?
I mean, what we need to do exactly?
Uninstall the last version and install this one or what?
The old blocks will disappear?

Thanks in advance,
Alessandro
My Website: www.havana24.net

Abliblablobla

  • *
  • Posts: 524
Great work! I'm really looking forward to integrate these new check functions into my apps. May I ask what the reserved space is for? :o

I can't wait to see what you can do with this extension! The "reserved" space isn't anything special: it is just some space I am reserving for future additions (more info, special thanks, images, updates, notes, warnings, extended changelog, etc...).

Thanks a lot ¡ !  For me this is the most essential extension for stencyl. Ive been using it myself and  it allowed me to monetize  some apps,  ive sent you a small  donation for all the great work

Thanks bonzero! You are the first official supporter :) ! I am thinking about creating a "Special Thanks Page" for everyone who donates something (of course I won't disclose the amount of the donations) and/or helps me improve this extension.

Thanks abliblablobla for this great work! :)

Do you have any advice about the upgrade from the last version?
I mean, what we need to do exactly?
Uninstall the last version and install this one or what?
The old blocks will disappear?

Thanks in advance,
Alessandro

You are welcome!
If you install this extension through using the "Install extension" command in Stencyl, it will replace the existing one and all its blocks in your behaviors. Keep in mind that this extension isn't just a simple update since it works in a different way! For example with this version there is a new "Initialize AdMob banner ad" block while previously you could directly use the "Show AdMob banner ad" block. This may seem like a step backwards, but in the long term it will greatly simplify your workflow because you will need to insert your Ad Unit ID only once in your "initialize" block instead of copying and pasting it in a "show" block every time you want to show a banner. This is just one of the differences between the old version and the new one. The safest way to install this new extension is to uninstall your previous AdMob extension (you can find it in your Stencyl workspace under engine-extensions), open and save your game (so that every block used for AdMob will be deleted), clean your project, install the new extension and act like you never had the AdMob extension in your game.
.: BuruBuru :.

ErLuiSS

  • Posts: 125
thanks for the update! :)

xdan73

  • *
  • Posts: 5
Hello,

I tried to implement new extension (in recommended way - removed old extension, opened and saved game thus deleting old AdMob blocks). When I installed and enabled new extension and tried to build for android (without even adding new AdMob blocks to projects) I could not publish for android. This is the last line from log viewer:

[LOG] Error: Source path "C:\Users\dev\AppData\Roaming\Stencyl\stencylworks\engine-extensions/admob/ndll/Android/libmyadmob.so" does not exist

When I disable the extension project builds normally. Same applies if I remove new extension, install old one and enable it. Am I doing something wrong?

Thank you.


 

luismp

  • Posts: 219
I have the same issue with this new version. I uninstalled the previous version and installed this new one and it gives that error when compiling for android

Abliblablobla

  • *
  • Posts: 524
My bad. Try to download it again and let me know!
.: BuruBuru :.

luismp

  • Posts: 219
Hi, im still having an issue with this new version. I dont know why but it gives me this error:

[LOG] -compile:
[LOG]     [javac] Compiling 18 source files to C:\Users\Luis\AppData\Roaming\Stencyl\stencylworks\games-generated\penguin\Export\android\bin\bin\classes
[LOG]     [javac] C:\Users\Luis\AppData\Roaming\Stencyl\stencylworks\games-generated\penguin\Export\android\bin\src\AdWhirl.java:77: AdRequest() has private access in com.google.ads.AdRequest
[LOG]     [javac]              AdRequest adRequest = new AdRequest();
[LOG]     [javac]                                    ^
[LOG]     [javac] C:\Users\Luis\AppData\Roaming\Stencyl\stencylworks\games-generated\penguin\Export\android\bin\src\AdWhirl.java:136: AdRequest() has private access in com.google.ads.AdRequest
[LOG]     [javac]             AdRequest adRequest = new AdRequest();
[LOG]     [javac]                                   ^
[LOG]     [javac] Note: Some input files use or override a deprecated API.
[LOG]     [javac] Note: Recompile with -Xlint:deprecation for details.
[LOG]     [javac] 2 errors
[LOG] BUILD FAILED
[LOG] C:\Users\Luis\AppData\Roaming\Stencyl\stencylworks\android-sdk\android-sdk-windows\tools\ant\build.xml:713: The following error occurred while executing this line:
[LOG] C:\Users\Luis\AppData\Roaming\Stencyl\stencylworks\android-sdk\android-sdk-windows\tools\ant\build.xml:727: Compile failed; see the compiler error output for details.

I tried to reinstall the android sdk---> still gives error
clean project--->also gives error
remove the extension and reinstall-->also gives error
remove 2 lines of code of the include file mentioned in another post.-->still gives error

anyone is having the same problem??

GeorgeN

  • Posts: 856
Thanks for the new Admob extension. The booleans are super useful. Now I can use Chartboost interstitials when Admob interstitials fails to load ;)

riki82

  • Posts: 325

LIBERADO

  • *
  • Posts: 2718
Does this new release really works well, or it still needs some fixes?

What about the problem that @luismp has commented?

« Last Edit: July 07, 2014, 04:12:32 am by LIBERADO »
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

luismp

  • Posts: 219
Just fixed it right now... i repeated several times the steps mentioned above and now it compiled well.

if anyone have the same issue just try this steps:

-disable the extension
-save game and close stencyl
-delete the admob file from your stencyl workspace - engine extensions and also the one in your installation path
-reinstall the extension
-delete this two lines of the include.nmml file in plaf-haxe-extensions- ads (the one in the workspace and the other one like before):
         <java path="project/android" />
         <template path="template/android/libs/GoogleAdMobAdsSdk-4.0.3.jar" rename="libs/GoogleAdMobAdsSdk-4.0.3.jar" if="android"/>
-reopen your game, enable the extension like always (closing and saving) and it sould work now.

i must add that i didnt test if the ads or the blocks work correctly, i just tested that my game compiles succesfully when the extension is enabled.