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

Neotron

  • Posts: 475
I think I got an Admob extension related error. Could you check the log please? Somehow the game failed to build....

« Last Edit: August 18, 2015, 07:42:23 am by Neotron »

robinschaafsma

  • *
  • Posts: 714
I think I got an Admob extension related error. Could you check the log please? Somehow the game failed to build....

I have answer you in PM.

ChristianEs

  • Posts: 230
hello i have a problem,
i was testing an app update on my app where i have admob, and on my  ipod touch5  when i closed an interstitial ad the app closed , not when the ad was shown but when i closed the ad pressing "x".
the problem is that on iOS admob there are no test ads, so i don't want to generate false impressions when testing and i can't reproduce the error on simulator .

admob version is 3.0 (with 64bit support)
stencyl build 8274

robinschaafsma

  • *
  • Posts: 714
hello i have a problem,
i was testing an app update on my app where i have admob, and on my  ipod touch5  when i closed an interstitial ad the app closed , not when the ad was shown but when i closed the ad pressing "x".
the problem is that on iOS admob there are no test ads, so i don't want to generate false impressions when testing and i can't reproduce the error on simulator .

admob version is 3.0 (with 64bit support)
stencyl build 8274

1- Delete all blocks of Admob extension 3.0 in your game.
2- Uninstall Admob extension 3.0
3- Download Admob extension 3.3.5 (see first post)
4- Install Admob extension 3.3.5 (see first post)
5- Setup the new blocks on the place you delete the old blocks
6- Select from dropdown if you game is in test or release mode.
7- Build your game

ChristianEs

  • Posts: 230
ok im going to try that robin, thanks

Almakos

  • Posts: 632
Cannot build to iPhone with admob extension enabled. Without extension works fine.
Build 8671
Logs attached:
Fishing Fantasy Trailer


ChristianEs

  • Posts: 230
i just discovered that i have the same problem than Almakos on iOS

vvitek

  • Posts: 118
Same here but Stencyl 8627. Android runs fine (compiling and showing ads) but iOS not compiling and not giving specific error clue, just saying "Encountered errors while building your game"

robinschaafsma

  • *
  • Posts: 714
@Almakos @ChristianEs and @vvitek

i assume you have the same error that shows in the logs Almakos posted.
This is the Error:
Code: [Select]
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_GADBannerView", referenced from:
      objc-class-ref in libadmobex.a(7f1c4f12_AdMobEx.o)
  "_OBJC_CLASS_$_GADInterstitial", referenced from:
      objc-class-ref in libadmobex.a(7f1c4f12_AdMobEx.o)
  "_OBJC_CLASS_$_GADRequest", referenced from:
      objc-class-ref in libadmobex.a(7f1c4f12_AdMobEx.o)
  "_kGADAdSizeSmartBannerPortrait", referenced from:
      -[AdmobController initWithBannerID:withGravity:] in libadmobex.a(7f1c4f12_AdMobEx.o)
  "_kGADAdSizeSmartBannerLandscape", referenced from:
      -[AdmobController initWithBannerID:withGravity:] in libadmobex.a(7f1c4f12_AdMobEx.o)
  "_kGADSimulatorID", referenced from:
      -[AdmobController initWithID:] in libadmobex.a(7f1c4f12_AdMobEx.o)
      -[AdmobController initWithBannerID:withGravity:] in libadmobex.a(7f1c4f12_AdMobEx.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/Awe\ Fishing.build/Release-iphoneos/Awe\ Fishing.build/Objects-normal/arm64/Awe\ Fishing normal arm64

Please follow this instruction to resolve this error: https://github.com/byrobingames/admob/wiki/4.-Error-on-Compiling
(See also first post)


    1) Go to "YOURDOCUMENTFOLDER"/stencylworks/engine-extensions/admob-master/frameworks
    2) Delete GoogleMobileAds.framework
    3) Download the googlemobileadssdkios.zip Framework from https://developers.google.com/admob/ios/download
    4) Unzip googlemobileadssdkios.zip
    5) Open the folder you unzipt, and copy GoogleMobileAds.framework
    6) Go to "YOURDOCUMENTFOLDER"/stencylworks/engine-extensions/admob-master/frameworks again
    and paste the GoogleMobileAds.framework you just copied.
    7) Run clean project and try to compile

Good luck...

vvitek

  • Posts: 118
Thanks! Perfect tutorial, it helped.

Almakos

  • Posts: 632
Thank you Robin,
I've been close to the solution, but didn't clean the project, thus failed )
Thanks again, everything works now
Fishing Fantasy Trailer


cabinfever

  • Posts: 159
Hi,

I'm having issues with testing a (mobile) game on Flash-player now that I have this AdMob extension (v. 3.3.5 by Robin) installed.
I have an Init scene, where I initialize the AdMob-extension. Then on other Scenes I, just use the 'show/hide AdMob banner'.
When testing on mobile phone, it works just fine (build succeeds and app runs).

But when trying develop and test the app with Flash-player (on Windows), the Flash compilation now fails.
It complains about 'Show AdMob banner' in main and game Scenes. See attached screen capture.

--log file shows this--
2015-09-27 11:01:39,962 INFO  [Thread-12] stencyl.sw.util.StreamGobbler: [neko] Running command: BUILD
2015-09-27 11:01:39,962 DEBUG [Thread-12] stencyl.sw.util.StreamGobbler: [neko]  - Running command: haxe -main ApplicationMain -cp "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/openfl/openfl" -D openfl=3.3.2 -cp "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/lime/lime" -D lime=2.6.1 -cp "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/actuate/1,6,5" -D actuate=1.6.5 -cp "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/console/1,00" -D console=0.0.0 -cp "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/polygonal-ds/1,4,1" -D polygonal-ds=1.4.1 -cp "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/polygonal-printf/1,0,0-beta" -D polygonal-printf=1.0.0-beta -cp "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/box2d/1,11" -D box2d=0.0.0 -cp "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00" -D stencyl=0.0.0 -cp Source -cp "C:\Program Files (x86)\Stencyl\plaf\haxe\extensions/gestures" -cp "C:\Users\Aikuiset\AppData\Roaming\Stencyl\stencylworks\engine-extensions/Online ScoreBoard" -D native-trace -D openfl-next -D tools=2.6.1 -D flash-use-stage -D no-compilation -D openfl-flash -D verbose=1 -D web --remap nme:openfl -D network-sandbox -D as3_native -D swf-directblit -swf-lib newgrounds.swf -swf-lib cpmstar.swf -resource Assets/graphics/preloader-bg.png@preloader-bg -resource Assets/graphics/preloader-badge.png@preloader-badge -swf-lib Export/flash/obj/assets.swf -swf-version 11 -swf "Export/flash/bin/Halo Balls.swf" -cp Export/flash/haxe -debug
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.io.write.resource.HXWriter: Compilation error in behavior: Events for 'sceneLevel1': Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.util.StreamGobbler: [neko] Source/scripts/SceneEvents_0.hx:131: characters 3-8 : Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.io.write.resource.HXWriter: Compilation error in behavior: Events for 'sceneStart': Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.util.StreamGobbler: [neko] Source/scripts/SceneEvents_2.hx:110: characters 4-9 : Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.io.write.resource.HXWriter: Compilation error in behavior: Events for 'sceneHighScores': Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.util.StreamGobbler: [neko] Source/scripts/SceneEvents_4.hx:271: characters 4-9 : Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.io.write.resource.HXWriter: Compilation error in behavior: Events for 'sceneInit': Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.util.StreamGobbler: [neko] Source/scripts/SceneEvents_5.hx:92: characters 5-10 : Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.io.write.resource.HXWriter: Compilation error in behavior: Events for 'sceneInit': Unknown identifier : AdMob
2015-09-27 11:01:42,817 ERROR [Thread-12] stencyl.sw.util.StreamGobbler: [neko] Source/scripts/SceneEvents_5.hx:96: characters 5-10 : Unknown identifier : AdMob
2015-09-27 11:01:42,817 DEBUG [pool-1-thread-2] stencyl.sw.util.Util: Process 'neko' exited with code: 1
2015-09-27 11:01:42,817 ERROR [pool-1-thread-2] stencyl.sw.io.write.resource.HXWriter: Failed: Building for Flash. (Return code: 1)
2015-09-27 11:01:42,817 ERROR [pool-1-thread-2] stencyl.sw.util.dg.MessageDialog: Encountered errors while building your game. - Check your logs and post them to the forums.
---clip ends--

robinschaafsma

  • *
  • Posts: 714
@cabinfever

Just replace the blocks "Running on IOS/Anadroid/Flash" to the blocks  "Do only on IOS/Android/Flash"
http://community.stencyl.com/index.php/index.php?topic=41376.msg241494#msg241494

Then it will build.

« Last Edit: September 27, 2015, 01:44:03 am by robinschaafsma »

cabinfever

  • Posts: 159
Beautiful!
Working nicely now. Thanx!

CanadianHobo

  • Posts: 24
Awesome!!!  The newest version does not need a Device ID to test now. 

Thanks!