[iOS & Android] AdMob Extension [2.1] [DEPRECATED]

skippertech

  • Posts: 256
Is anyone have success installing this extension with the latest stencyl version (3.0).. It says select the extension so I select the zip but then it does nothing after that... help:(

QkyGames

  • Posts: 125
Hello,

before displaying an interstitial, I need to use the block "Load AdMob fullscreen ad" and then use "show admob fullscreen ad"?

Abliblablobla

  • *
  • Posts: 524
Hi QkyGames!
Yes, you need to load an interstitial  every time you want to show it. Bear in mind that it may take a while for an interstitial to be loaded, so you have to take the loading time into account. For example if you want to show an interstitial at the end of a level, I suggest to start loading the interstitial at the beginning of the level.
.: BuruBuru :.

dhu77man

  • Posts: 14
Hello, I am trying to get ads on my Android app.  But they're not showing up.   When I run it through Apples iPhone simulator ads show up though.  I've entered in my AdMob publisher ID into Stencyl 3.0 and I have a mobile version of Stencyl.   Ads are just not displaying for Android.     Any suggestions?  Is AdMob working with Android?

Additional info;
I've downloaded the AdMob extention, but when I try to install it..    I select the admob.zip and press install, and it does nothing in stencyl.  It's like it wont install it.

« Last Edit: March 25, 2014, 02:34:59 pm by dhu77man »

QkyGames

  • Posts: 125
Quote
Hi QkyGames!
Yes, you need to load an interstitial  every time you want to show it. Bear in mind that it may take a while for an interstitial to be loaded, so you have to take the loading time into account. For example if you want to show an interstitial at the end of a level, I suggest to start loading the interstitial at the beginning of the level.

great, thanks :)

CaptainCannabis

  • Posts: 37
NOTE: Anyone having issues installing this, close Stencyl and run it as an administrator by right clicking the program then retry!

dhu77man

  • Posts: 14
I ran it in administrator, and no luck for me! 

CaptainCannabis

  • Posts: 37
I'm attempting to use an interstitial ad at a game over screen, but it keeps crashing. What order should my blocks be in? Right now this is the order: Load--Initialize--show

mat0pad

  • Posts: 364
#Abliblablobla

You should update the admob\template\android\androidmanifest.xml  the current state of this has to old variables and it removes the com.android.vending.BILLING permission from the builded apk....making all of the IAP's for android invaild (you cannot add IAP in google play). 

Edit: I had to manually update androidmanifest  sent you a PM with the fix guide

« Last Edit: April 07, 2014, 10:12:10 am by mat0pad »
   


                              

riki82

  • Posts: 325
Hi guys, i have a problem whit AdMob extension...
It's working fine on my all iOS games, but not in my last game.
When I arrive at the scene where the banner appears the game closes and I get this error:
Code: [Select]
[LOG] 2014-03-31 17:41:35.003 En1gm4 iOS 150 Admob Test[5041:a0b] -[GADSlot state]: unrecognized selector sent to instance 0x1ae78c60
[LOG] 2014-03-31 17:41:35.009 En1gm4 iOS 150 Admob Test[5041:a0b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GADSlot state]: unrecognized selector sent to instance 0x1ae78c60'
[LOG] *** First throw call stack:
[LOG] (
[LOG] 0   CoreFoundation                      0x0480e5e4 __exceptionPreprocess + 180
[LOG] 1   libobjc.A.dylib                     0x0339f8b6 objc_exception_throw + 44
[LOG] 2   CoreFoundation                      0x048ab903 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
[LOG] 3   CoreFoundation                      0x047fe90b ___forwarding___ + 1019
[LOG] 4   CoreFoundation                      0x047fe4ee _CF_forwarding_prep_0 + 14
[LOG] 5   En1gm4 iOS 150 Admob Test           0x0029dcc8 -[GADSlot isMakingRequest] + 36
[LOG] 6   En1gm4 iOS 150 Admob Test           0x0029d944 -[GADSlot setAdType:andReloadRequest:] + 334
[LOG] 7   En1gm4 iOS 150 Admob Test           0x0029c714 -[GADBannerView setAdSize:andReload:] + 512
[LOG] 8   En1gm4 iOS 150 Admob Test           0x0029cd12 -[GADBannerView setAdSize:] + 62
[LOG] 9   En1gm4 iOS 150 Admob Test           0x0029d041 -[GADBannerView initWithAdSize:] + 171
[LOG] 10  En1gm4 iOS 150 Admob Test           0x00284357 -[AdmobController initAdmob:withPosition:withSmartBanner:] + 279
[LOG] 11  En1gm4 iOS 150 Admob Test           0x00285134 _ZN7myadmob9showAdmobEPKcii + 228
[LOG] 12  En1gm4 iOS 150 Admob Test           0x002852bd _Z10show_admobP6_valueS0_S0_ + 61
[LOG] 13  En1gm4 iOS 150 Admob Test           0x008a4b27 _ZN17ExternalPrimitive5__runERK7DynamicS2_S2_ + 55
[LOG] 14  En1gm4 iOS 150 Admob Test           0x008441a9 _ZN11MyAdmob_obj10showBannerE6StringN2hx4NullIiEES3_ + 185
[LOG] 15  En1gm4 iOS 150 Admob Test           0x0041e622 _ZN7scripts26Design_18_18_EnableiAd_obj4initEv + 162
[LOG] 16  En1gm4 iOS 150 Admob Test           0x0070ff84 _ZN3com7stencyl8behavior12Behavior_obj10initScriptEN2hx4NullIbEE + 1092
[LOG] 17  En1gm4 iOS 150 Admob Test           0x0070cddd _ZN3com7stencyl8behavior19BehaviorManager_obj11initScriptsEv + 109
[LOG] 18  En1gm4 iOS 150 Admob Test           0x00766770 _ZN3com7stencyl10Engine_obj13initBehaviorsEN2hx9ObjectPtrINS0_8behavior19BehaviorManager_objEEENS3_IN4haxe2ds13StringMap_objEEE7DynamicNS3_IS1_EEb + 2384
[LOG] 19  En1gm4 iOS 150 Admob Test           0x00765b31 _ZN3com7stencyl10Engine_obj9loadSceneEi + 3969
[LOG] 20  En1gm4 iOS 150 Admob Test           0x0075f1fa _ZN3com7stencyl10Engine_obj10enterSceneEv + 122
[LOG] 21  En1gm4 iOS 150 Admob Test           0x00753802 _ZN3com7stencyl10Engine_obj8onUpdateEN2hx9ObjectPtrIN5flash6events9Event_objEEE + 146
[LOG] 22  En1gm4 iOS 150 Admob Test           0x00753901 _ZN3com7stencyl20__Engine_objonUpdateEPN2hx6ObjectERK7Dynamic + 145
[LOG] 23  En1gm4 iOS 150 Admob Test           0x008b4360 _ZN2hx16CMemberFunction15__runERK7Dynamic + 32
[LOG] 24  En1gm4 iOS 150 Admob Test           0x005cf891 _ZN5flash6events12Listener_obj13dispatchEventEN2hx9ObjectPtrINS0_9Event_objEEE + 81
[LOG] 25  En1gm4 iOS 150 Admob Test           0x00885378 _ZN5flash6events19EventDispatcher_obj13dispatchEventEN2hx9ObjectPtrINS0_9Event_objEEE + 408
[LOG] 26  En1gm4 iOS 150 Admob Test           0x0087cf15 _ZN5flash7display17DisplayObject_obj15__dispatchEventEN2hx9ObjectPtrINS_6events9Event_objEEE + 133
[LOG] 27  En1gm4 iOS 150 Admob Test           0x0087d115 _ZN5flash7display17DisplayObject_obj11__broadcastEN2hx9ObjectPtrINS_6events9Event_objEEE + 37
[LOG] 28  En1gm4 iOS 150 Admob Test           0x00872c96 _ZN5flash7display26DisplayObjectContainer_obj11__broadcastEN2hx9ObjectPtrINS_6events9Event_objEEE + 246
[LOG] 29  En1gm4 iOS 150 Admob Test           0x008590a7 _ZN5flash7display9Stage_obj8__renderEb + 119
[LOG] 30  En1gm4 iOS 150 Admob Test           0x0085ddf0 _ZN5flash7display9Stage_obj13__checkRenderEv + 144
[LOG] 31  En1gm4 iOS 150 Admob Test           0x0085d1a1 _ZN5flash7display9Stage_obj21__doProcessStageEventE7Dynamic + 1313
[LOG] 32  En1gm4 iOS 150 Admob Test           0x0085cc25 _ZN5flash7display9Stage_obj19__processStageEventE7Dynamic + 37
[LOG] 33  En1gm4 iOS 150 Admob Test           0x0085cc6c _ZN5flash7display30__Stage_obj__processStageEventEPN2hx6ObjectERK7Dynamic + 44
[LOG] 34  En1gm4 iOS 150 Admob Test           0x008b4360 _ZN2hx16CMemberFunction15__runERK7Dynamic + 32
[LOG] 35  En1gm4 iOS 150 Admob Test           0x00898414 val_call1 + 52
[LOG] 36  En1gm4 iOS 150 Admob Test           0x0018315f _Z16external_handlerRN3nme5EventEPv + 495
[LOG] 37  En1gm4 iOS 150 Admob Test           0x001712d7 _ZN3nme5Stage11HandleEventERNS_5EventE + 967
[LOG] 38  En1gm4 iOS 150 Admob Test           0x00278f19 _ZN8IOSStage6OnPollEv + 393
[LOG] 39  En1gm4 iOS 150 Admob Test           0x002778f0 -[UIStageView onPoll:] + 32
[LOG] 40  En1gm4 iOS 150 Admob Test           0x00276b14 -[UIStageView mainLoop:] + 52
[LOG] 41  QuartzCore                          0x02125b8a _ZN2CA7Display15DisplayLinkItem8dispatchEv + 48
[LOG] 42  QuartzCore                          0x02125a46 _ZN2CA7Display11DisplayLink14dispatch_itemsEyyy + 310
[LOG] 43  QuartzCore                          0x02125f6b _ZN2CA7Display16TimerDisplayLink8callbackEP16__CFRunLoopTimerPv + 123
[LOG] 44  CoreFoundation                      0x047ccbd6 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
[LOG] 45  CoreFoundation                      0x047cc5bd __CFRunLoopDoTimer + 1181
[LOG] 46  CoreFoundation                      0x047b4628 __CFRunLoopRun + 1816
[LOG] 47  CoreFoundation                      0x047b3ac3 CFRunLoopRunSpecific + 467
[LOG] 48  CoreFoundation                      0x047b38db CFRunLoopRunInMode + 123
[LOG] 49  GraphicsServices                    0x0476a9e2 GSEventRunModal + 192
[ERR] java.lang.NullPointerException
[ERR] java.lang.NullPointerException
[LOG] 50  GraphicsServices                    0x0476a809 GSEventRun + 104
[LOG] Unexpected problem on thread AWT-EventQueue-0: null
[LOG] 51  UIKit                               0x0111fd3b UIApplicationMain + 1225
[LOG] 52  En1gm4 iOS 150 Admob Test           0x002787f1 _ZN3nme15CreateMainFrameEPFvPNS_5FrameEEiijPKcPNS_7SurfaceE + 225
[LOG] 53  En1gm4 iOS 150 Admob Test           0x00182dba _Z21nme_create_main_framePP6_valuei + 298
[LOG] 54  En1gm4 iOS 150 Admob Test           0x008a4869 _ZN17ExternalPrimitive5__RunERK5ArrayI7DynamicE + 57
[LOG] 55  En1gm4 iOS 150 Admob Test           0x008b0620 _ZN7DynamicclERKS_S1_S1_S1_S1_S1_ + 352
[LOG] 56  En1gm4 iOS 150 Admob Test           0x0088a4a6 _ZN5flash7Lib_obj6createE7DynamiciiN2hx4NullIdEENS3_IiEES5_6StringNS2_9ObjectPtrINS_7display14BitmapData_objEEENS7_I9Class_objEE + 1302
[LOG] 57  En1gm4 iOS 150 Admob Test           0x00886ce6 _ZN19ApplicationMain_obj4mainEv + 358
[LOG] 58  En1gm4 iOS 150 Admob Test           0x0089694f __hxcpp_lib_main + 47
[LOG] 59  En1gm4 iOS 150 Admob Test           0x008a7ed5 hxRunLibrary + 37
[LOG] 60  En1gm4 iOS 150 Admob Test           0x00045355 main + 103
[LOG] 61  libdyld.dylib                       0x03939725 start + 0
[LOG] )
[LOG] libc++abi.dylib:
[LOG] terminating with unexpected exception of type NSException
[LOG] Finished building for iOS (or errored out): 0

If disable AdMob Extension game works fine...

mat0pad

  • Posts: 364
#Riki

Are you using different ad Unit id for iOS and Android?  This is required and has to be setup in admob portal.
   


                              

riki82

  • Posts: 325
#Riki

Are you using different ad Unit id for iOS and Android?  This is required and has to be setup in admob portal.

Thanks for reply...
Nope, i use only one "Unit Id" , it's just for iOS...
If i disable Facebook Extension, AdMob works fine!  :'(

riki82

  • Posts: 325
After 3 days finally SOLVED
- the problem is the file "game.xlm" in stencylworks/game folder.



RulezTeam

  • *
  • Posts: 319
Hi,
why if I use this extension, after it show few ads, they disappear ?
while if I use standard block from Stencyl, they are always show in all my scenes.

Thanks

P.s.: for use this extension, I have remove admob publish key from setting-mobile-monetization

Abliblablobla

  • *
  • Posts: 524
Is anyone have success installing this extension with the latest stencyl version (3.0).. It says select the extension so I select the zip but then it does nothing after that... help:(

Hi skippertech!
Did you find a solution? You can find a solution to a similar (if not the same) issue here: http://community.stencyl.com/index.php/topic,30388.msg174073.html#msg174073
.: BuruBuru :.