[iOS & Android] AdMob Extension [3.0]

mvmsaikrishna

  • Posts: 83
Hi, the admob has noticed to update the new sdk before august 1. Is this extension is complaint with that?


Jon

  • *
  • Posts: 17524
Both the built in support and this separate extension are compliant with the August 1st change.

CaptainCannabis

  • Posts: 37
Great work updating the extension in time for August guys! I take it that the newest build paired with the new extension no longer throws errors or are we waiting for another update?

Jon

  • *
  • Posts: 17524
It actually worked the whole time.

You just have to cleanly uninstall Stencyl and reinstall it. Said issues came about if you installed over the existing install (which usually is OK - just not in this case), which would cause the old and new code to mash together.

wvcoalminer

  • Posts: 6
Much thanks for this.

ahmadoweda

  • Posts: 310
do I have to export all my games and re import it if I uninstalled stencyl and then re-installed? and do I have to install all the extensions again??

Neotron

  • Posts: 475
No, you dont have to. Stencyl uninstall doesnt delete /stencylworks directory which is in /users directory. There are stored games, compiled games and extensions as well.
Btw, you should make a backup of this /stencylworks ditectory, there is everything you ever made.

Hairball

  • Posts: 121
I have Stencyl 3.1 and the Admob extension version 3.  For some reason when I test my game I don't get an ad.  I also do not get an ad with the sample "test extension" game in the OP. 

I have an Admob account and put my Ad Unit ID into the Init block (I do not have my device ID yet so that is blank for now) and I am trying to use a smart banner, at the bottom. 

Nothing happens.  At first I was getting the compile error but I don't get that anymore (I followed the instructions in this thread to resolve that).  I tried to uninstall and reinstall Stencyl and that didn't help.

I have the Initialize block and then the "Show AdMob banner ad" block but nothing happens.  No error message (nothing in the log viewer either), I just never see the ad when I test on my phone. 

Abliblablobla

  • *
  • Posts: 524
Hi Hairball, welcome to the Stencyl forums!

The test extension game you are referring to was created for the AdMob Extension 2.1 and I don't think it  works with the new AdMob Extension 3.0.

The first time you request an ad from the AdMob Network with a new Ad Unit ID, it can take a few minutes to load a simple banner ad.

If you don't see your smart banner, try to use Debug > Launch Device Monitor  and see what the logcat writes (you can also post the logcat logs here so that I can take a look at them).
.: BuruBuru :.

Vectrex71

  • Posts: 534
iOS and Android or just Android ?

Abliblablobla

  • *
  • Posts: 524
iOS and Android or just Android ?

This extension supports both iOS and Android. Take a look at the documentation for more details.
.: BuruBuru :.

luciasp

  • Posts: 21
hi! i have a problem exporting the game with the extension to android, it gives error, i've read in one post that the extension that works its only available for subscriber, its that truth? so, how do you become a subscriber? or how do you fixed this problem. Thanks!

Abliblablobla

  • *
  • Posts: 524
Welcome to the Stencyl forums luciasp,
I am sure this extension works with the latest private release of Stencyl. This private release is a beta version of the next version of Stencyl and is already available to every subscriber. It will come very soon to all the user as Stencyl 3.2.
I want to remind you that while you will be able to use this extension with Stencyl 3.2 without being a subscriber, you have to be a "Studio" subscriber in order to publish to Android or iOS. More info on subscriptions here.

If you are having issues when you build your android game, please post the errors here on the forums, so that I can try to help you.
.: BuruBuru :.

luciasp

  • Posts: 21
thanks! this is what happens when I export to android:
[LOG] [buildconfig] Generating BuildConfig class.
[LOG] -pre-compile:
[LOG] -compile:
[LOG]     [javac] Compiling 18 source files to /Users/luciasanchez/stencylworks/games-generated/Crazy block/Export/android/bin/bin/classes
[LOG]     [javac] /Users/luciasanchez/stencylworks/games-generated/Crazy block/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] /Users/luciasanchez/stencylworks/games-generated/Crazy block/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] /Users/luciasanchez/stencylworks/android-sdk/android-sdk-macosx/tools/ant/build.xml:713: The following error occurred while executing this line:
[LOG] Finished building for Android (or errored out): 1
[LOG] /Users/luciasanchez/stencylworks/android-sdk/android-sdk-macosx/tools/ant/build.xml:727: Compile failed; see the compiler error output for details.
[LOG] Total time: 3 seconds


Abliblablobla

  • *
  • Posts: 524
Unfortunately that is a conflict issue between this extension and the old Stencyl built in support for AdMob. In particular, Stencyl 3.1 is using an old AdMob SDK while this extension requires the new Google Play Services SDK. Stencyl 3.2 comes with the new Google Play Services SDK for AdMob, so you won't have this issue when the new version is available to all the users.
.: BuruBuru :.