[IOS/Android] Google AdMob Extension [3.3.7][DEPRECATED]

Neotron

  • Posts: 475
So, Robin, you say this Admob 3.3.3 extension fully working on iPhone, iPad (both smart banners and interstitials) with the latest Stencyl build?
Atm, I cannot test because I don't have these kind of devices...

robinschaafsma

  • *
  • Posts: 714
So, Robin, you say this Admob 3.3.3 extension fully working on iPhone, iPad (both smart banners and interstitials) with the latest Stencyl build?
Atm, I cannot test because I don't have these kind of devices...
Yes, with the latest SDK

robinschaafsma

  • *
  • Posts: 714
UPDATE 3.3.4
- Updated iOS SDK to 7.4
- Download from GitHub.

See the first post, you have to download it from GitHub now.

If you already install a previous version 3.3.3 and below,  follow the instruction on this page how to update the extension. https://github.com/byrobingames/admob/blob/master/README.md#how-to-install

Error on Compiling
If you get a error on compiling follow the instruction on this page. https://github.com/byrobingames/admob/wiki/4.-Error-on-Compiling

« Last Edit: July 31, 2015, 01:23:48 pm by robinschaafsma »

Neotron

  • Posts: 475
I am testing this new Admob extension and I got an error(Unknown identifier : AdMob) if I want to test my game on the browser. Btw, If I add all extension blocks in Do only on Mobile block everything is perfect.
Is it working only this way? In the previous Admob extension I shouldn't have, I could test in browser without errors.

« Last Edit: August 04, 2015, 03:11:29 am by Neotron »

Neotron

  • Posts: 475
Can you tell me one more thing, Robin? How you exit from your game? I ask because if we not overwrite the mobile Back button and press, game will "exit" (but still in the memory) and if we reactivate the game Admob banner ads will not show anymore.
I don't know this "bug" related to Stencyl or Admob extension but not good for revenue.
Btw, I overwrite Back button az use nme.Lib.exit(); code to exit the game, but in the last days I tried Chartboost extension which ignore Back button overwrite(if we want to close interstitial) and Admob banner is not shown  if we return the game.

robinschaafsma

  • *
  • Posts: 714
I am testing this new Admob extension and I got an error(Unknown identifier : AdMob) if I want to test my game on the browser. Btw, If I add all extension blocks in Do only on Mobile block everything is perfect.
Is it working only this way? In the previous Admob extension I shouldn't have, I could test in browser without errors.

No you cannot test it in browser, it's build for mobile. if you test on browser put the blocks between Do only on mobile

« Last Edit: August 04, 2015, 03:12:17 pm by robinschaafsma »

Hairball

  • Posts: 121

The problem is that the games won't compile at all if you have admob blocks.  Even if they're inside an "if running on mobile" block.  We used to be able to run to Flash and since "if running on mobile" wasn't true, nothing happened.   

Now the compiler won't compile for Flash at all unless we go find ALL the admob blocks in the whole game and disable them.  I like to test new features in Flash because it's fast.  Then when I have everything working reasonably well, I send to android and test there as well.  You can't go between platforms like that anymore. 

If someone wants to release a web game on Kongregate or something plus make it available for Android/IOS they have to go make these changes in between compiling for the web and for mobile.


robinschaafsma

  • *
  • Posts: 714
Can you tell me one more thing, Robin? How you exit from your game? I ask because if we not overwrite the mobile Back button and press, game will "exit" (but still in the memory) and if we reactivate the game Admob banner ads will not show anymore.
I don't know this "bug" related to Stencyl or Admob extension but not good for revenue.
Btw, I overwrite Back button az use nme.Lib.exit(); code to exit the game, but in the last days I tried Chartboost extension which ignore Back button overwrite(if we want to close interstitial) and Admob banner is not shown  if we return the game.

I override the back button in Stencyl, en exit the game with the home button. If you dont't want to override the back button, use the "Reinitialize Banner" block on each scene when created.

« Last Edit: August 04, 2015, 03:12:48 pm by robinschaafsma »

robinschaafsma

  • *
  • Posts: 714

The problem is that the games won't compile at all if you have admob blocks.  Even if they're inside an "if running on mobile" block.  We used to be able to run to Flash and since "if running on mobile" wasn't true, nothing happened.   

Now the compiler won't compile for Flash at all unless we go find ALL the admob blocks in the whole game and disable them.  I like to test new features in Flash because it's fast.  Then when I have everything working reasonably well, I send to android and test there as well.  You can't go between platforms like that anymore. 

If someone wants to release a web game on Kongregate or something plus make it available for Android/IOS they have to go make these changes in between compiling for the web and for mobile.

I think there is somting in your code, if i put al admob  blocks between the " do only on mobile" block and not between the if running on mobile" block i can compile in browser.

If you have still problems, you can change info.txt file in de extension folder

From
Code: [Select]
compatibility=mobileTo
Code: [Select]
compatibility=allDon'f forget to restart Stencyl

Because its a mobile extension, the compatibility is mobile only and you must use the the blocks between the "do only on mobile" block when compiling on web.

Hairball

  • Posts: 121

I definitely get an error, and it takes me to my scene with the Admob blocks in red if I try to compile to Flash. 

However, the info.txt thing worked like a charm -- that will save me a lot of hassle. :)   

Blaziken8x

  • Posts: 192
Try using this block instead of the "if" block.
   

Neotron

  • Posts: 475
I override the back button in Stencyl, en exit the game with the home button. If you dont't want to override the back button, use the "Reinitialize Banner" block on each scene when created.

This reinitalization was a grat idea. Btw, I also overwrite the back button always, the problem is somehow Chartboost extension ads ignore the overwrite and always exit from the game if pressed.
But now I added the "Reinitialize Banner" block so if player return in the game they will see Admob banners again. Thank you!

Neotron

  • Posts: 475
As far as I see the smart banner ads not appear on Android if the game has landscape orientation. Can you comfirm this bug someone?

robinschaafsma

  • *
  • Posts: 714
As far as I see the smart banner ads not appear on Android if the game has landscape orientation. Can you comfirm this bug someone?

Nope, its working on my side, i only programmed the smart banner, so there could not be shown another banner.

Neotron

  • Posts: 475
You're right, everything is ok, working fine!