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

robinschaafsma

  • *
  • Posts: 714
what do we have to put in the block show interstitial with interval time.....?? what numbers should i put in that block??

That depends how our code look like.

-Interval time = time in seconds after you can call "Show Interstitial" again.
-Call before display = time in seconds to show interstitial after you call "Show Interstitial"

I use "Show Interstital" if the player is "game over", so you can put 0 seconds for bouth interval en call before display.

Hope this helps...

robinschaafsma

  • *
  • Posts: 714
Along with Chartboost there seems to be something causing memory leaks and crashes with this extension.

Anyone looking into this? I'm hoping to use both in my new game.

Not had the time yet. i will look in to it.

robinschaafsma

  • *
  • Posts: 714
Along with Chartboost there seems to be something causing memory leaks and crashes with this extension.

Anyone looking into this? I'm hoping to use both in my new game.

Can you please test version 3.3.2 for me..

NeoCHI

  • Posts: 524
Along with Chartboost there seems to be something causing memory leaks and crashes with this extension.

Anyone looking into this? I'm hoping to use both in my new game.


Can you please test version 3.3.2 for me..

Sure but Ive never used the extension before and don't know how to check for memory leaks. Max glocking was the one whom initially reported the issue.

Alixali

  • Posts: 4
Hi Robin,

The game building always fail when this extension is enabled. Once, I disable this extension the game builds successfully. I have attached the log.

May you please help. Thanks in advance.

Regards,
Ali Alwadi

pablolunardi

  • Posts: 1
If I enable the extension and try to run into android device I get this error:

[openfl.bat] C:\Users\Pablo\AppData\Roaming\Stencyl\stencylworks\android-sdk\android-sdk-windows\tools\ant\build.xml:574: libs/google-play-services_lib resolve to a path with no project.properties file for project C:\Users\Pablo\AppData\Roaming\Stencyl\stencylworks\games-generated\Pig Game\Export\android\bin\deps\google

Almakos

  • Posts: 632
Hey Robin,
I am total newbie to all this AdMob thing. But I would love to try with your extension.
I want to have interstitial Ads between levels and on demand.
The only thing I don't really understand how to use it (silly me)

As I understand I have to first initialise Ad before I can use it. (similar to 'Start Game Centre' block?)
But here comes first question...
There are two fields: BannerID and InterstitialID
What should I put in Banner ID if I am only going to use Interstitial Ads?

Second question:
I want to reward player only for watching video Ad completely. Which block should I use?
AdMob Ad did successfully load?

Thank you!
Fishing Fantasy Trailer


choppedupmonkey

  • *
  • Posts: 604
Wondering the same as him ^ i love the new blocks, they seem a lot more useful, but a couple questions that might be repeats.

1. i only want to use interestial ads, so do i leave banner balnk?

2. are there rewarded video ads supporeted witht his?

Thanks much to whoever may be able to answer this.
My name is Jason, I live in America, and I am 18 years old

"Focus more on the product than profit, for the profit will come after the product." -Me

robinschaafsma

  • *
  • Posts: 714
Hi Robin,

The game building always fail when this extension is enabled. Once, I disable this extension the game builds successfully. I have attached the log.

May you please help. Thanks in advance.

Regards,
Ali Alwadi

Please make sure your using Stencyl Build 8364 or higher, I had forgotten to mention this in the first post.. sorry
You can download latest private build
From Build 8364 Stencyl use the  google SDK which is required for this Extension.

Hope this helps.

robinschaafsma

  • *
  • Posts: 714
If I enable the extension and try to run into android device I get this error:

[openfl.bat] C:\Users\Pablo\AppData\Roaming\Stencyl\stencylworks\android-sdk\android-sdk-windows\tools\ant\build.xml:574: libs/google-play-services_lib resolve to a path with no project.properties file for project C:\Users\Pablo\AppData\Roaming\Stencyl\stencylworks\games-generated\Pig Game\Export\android\bin\deps\google
Please make sure your using Stencyl Build 8364 or higher, I had forgotten to mention this in the first post.. sorry
You can download latest private build
From Build 8364 Stencyl use the  google SDK which is required for this Extension.

Hope this helps.

robinschaafsma

  • *
  • Posts: 714
What should I put in Banner ID if I am only going to use Interstitial Ads?
Leave it empty if you don't use Banner.

Second question:
I want to reward player only for watching video Ad completely. Which block should I use?
AdMob Ad did successfully load?
No block for this, Admob has no video ads, only plays a video ad in a Interstitial Ad.  Maybe you cam reward players if they click the ad, then you can use "AdMob Interstitial Ad is Clicked"  block

robinschaafsma

  • *
  • Posts: 714

1. i only want to use interestial ads, so do i leave banner balnk?
Yes, leave blank...

2. are there rewarded video ads supporeted witht his?
No..

choppedupmonkey

  • *
  • Posts: 604
Ok, thanks so much for the answers!

Maybe someone could redo the admob documentation to support the new extension.? i would if i was a good typist.haha
My name is Jason, I live in America, and I am 18 years old

"Focus more on the product than profit, for the profit will come after the product." -Me

Almakos

  • Posts: 632
Hey Robin,
I cannot build to device (iPhone)
Getting series of errors:
Code: [Select]
stencyl.sw.util.StreamGobbler [openfl] The following build commands failed:
stencyl.sw.util.StreamGobbler [openfl] ** BUILD FAILED **
stencyl.sw.util.StreamGobbler [openfl] clang: error: linker command failed with exit code 1 (use -v to see invocation)
stencyl.sw.util.StreamGobbler [openfl] ld: symbol(s) not found for architecture arm64
stencyl.sw.util.StreamGobbler [openfl]       -[AdmobController initWithBannerID:withGravity:] in libadmobex.a(7f1c4f12_AdMobEx.o)
stencyl.sw.util.StreamGobbler [openfl]       -[AdmobController initWithID:] in libadmobex.a(7f1c4f12_AdMobEx.o)
stencyl.sw.util.StreamGobbler [openfl]   "_kGADSimulatorID", referenced from:
stencyl.sw.util.StreamGobbler [openfl]       -[AdmobController initWithBannerID:withGravity:] in libadmobex.a(7f1c4f12_AdMobEx.o)
stencyl.sw.util.StreamGobbler [openfl]   "_kGADAdSizeSmartBannerLandscape", referenced from:
stencyl.sw.util.StreamGobbler [openfl]       -[AdmobController initWithBannerID:withGravity:] in libadmobex.a(7f1c4f12_AdMobEx.o)
stencyl.sw.util.StreamGobbler [openfl]   "_kGADAdSizeSmartBannerPortrait", referenced from:
stencyl.sw.util.StreamGobbler [openfl]       objc-class-ref in libadmobex.a(7f1c4f12_AdMobEx.o)
stencyl.sw.util.StreamGobbler [openfl]   "_OBJC_CLASS_$_GADRequest", referenced from:
stencyl.sw.util.StreamGobbler [openfl]       objc-class-ref in libadmobex.a(7f1c4f12_AdMobEx.o)
stencyl.sw.util.StreamGobbler [openfl]   "_OBJC_CLASS_$_GADInterstitial", referenced from:
stencyl.sw.util.StreamGobbler [openfl]       objc-class-ref in libadmobex.a(7f1c4f12_AdMobEx.o)
stencyl.sw.util.StreamGobbler [openfl]   "_OBJC_CLASS_$_GADBannerView", referenced from:

Logs attached.
Any idea how to fix this?
I am on Mac OS X with 8385 build and 3.3.2 extension version

Thank you
Fishing Fantasy Trailer


robinschaafsma

  • *
  • Posts: 714
Hey Robin,
I cannot build to device (iPhone)

Logs attached.
Any idea how to fix this?
I am on Mac OS X with 8385 build and 3.3.2 extension version

Thank you
It seems like it is ignoring the google SDK files in the frameworks folder.

Try to download  the SDK from here http://dl.google.com/googleadmobadssdk/googlemobileadssdkios.zip.

Unzip it and copy "GoogleMobileAds.framework" to "/stencylworks/engine-extensions/admob/frameworks/"  (delete the old one first).

Run clean project and try to build.

Hope this helps....