[iOS & Android] AdMob Extension [3.0]

bonzero

  • Posts: 488
I'm too having problems, in particular every time a block wants to initialize the admob extension the app crashes, this is happening with android apps, am I the only one?

Max Finch

  • *
  • Posts: 2174
Yes, I just said I was having this problem :P

SolDiez

  • Posts: 33
Do you have the same error in your logs as the one posted by me?

Max Finch

  • *
  • Posts: 2174
Idk but I did what you did and it crashed when I started admob

Neotron

  • Posts: 475
Well, I can confirm this kind of crash at Admob initialize on Android. Need urgent fix or help how to fix it. Thank you!


Max Finch

  • *
  • Posts: 2174
Yeah same crash on my iPhone

DiddeJansson

  • Posts: 49
I have tried everything. Did a clean install of stencyl and cleaned the project but its still broken.
When the "Initialize Admob" block becomes active the game crashes immediately.
Is there anything else i can try to do?

SolDiez

  • Posts: 33
If you're compiling for android try my suggestion and edit AndroidManifest.xml from \Stencyl\stencylworks\engine-extensions\admob\dependencies\myadmob and change value to this "android:value="6111000".

I don't know how to do that for ios, and I don't know if you even have the same issue as I did.

Ok, I manually fixed this by changing the version directly in the extension's manifest in: \Stencyl\stencylworks\engine-extensions\admob\dependencies\myadmob


Neotron

  • Posts: 475
I don't like to change files manually. I hope this bug will fix soon. I also wrote to the support waiting reply!

DiddeJansson

  • Posts: 49
Thanks alot man! Now it works and now i can finish my game!
Kisses and hugs to you <3

SolDiez

  • Posts: 33
No problem, glad I helped!

Max Finch

  • *
  • Posts: 2174
Fixed the issue with iOS.


Changed


Code: [Select]
#if ios
        if(initializeBanner)
        {
            initAdmobBanner(adUnitID, position, smartBanner);
            initializeBanner = false;
        }


to


Code: [Select]
#if ios
        if(initializeBanner)
        {
            initAdmobBanner(adUnitID, position, smartBanner, deviceID);
            initializeBanner = false;
        }


Game now builds and no longer crashes.


Also changed android:value="6111000"

Max Finch

  • *
  • Posts: 2174
If anyone is having problems with the current version of Admob feel free to use the one attached.

Neotron

  • Posts: 475
Thank you Max, now working fine! :)