Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Admob Place (Android) — Gideros Forum

Admob Place (Android)

mertocanmertocan Member
edited October 2012 in General questions
I want to add admob to the specific place. For example in the landscape app i want to add it to the bottom-right. What should i use for gravity?

FrameLayout.LayoutParams adParams = new FrameLayout.LayoutParams(

FrameLayout.LayoutParams.WRAP_CONTENT ,
FrameLayout.LayoutParams.WRAP_CONTENT ,
Gravity.BOTTOM); ??

Comments

  • talistalis Guru
    edited October 2012
    @ar2rsawseen you were dealing with this plugin any news? from your posts i know that you are so much busy but let me try my chance by asking :D
  • @Scouser i am getting Vm aborting on emulator. Also, it is not working on my real device. I dont know why. I just want to use Admob.

    require "myAdMob"
    myAdMob.loadAd("ID")
    myAdMob.changeAdPos(340, 430)
    myAdMob.showAd()

    I am using that codes in gideros. I did everything which writes there.
  • ar2rsawseenar2rsawseen Maintainer
    edited October 2012
    As I understand the plugin mentioned by @Scouser does not work on older Android, on newer Androids it works just fine.

    Still haven't find anything to resolve that issue, but we might try to do it together.

    @talis @mertocan
    Could you please try this project:
    http://appcodingeasy.com/AdMob.zip

    If @Scouser mentioned plugin does not work on your device
    And this project launches without errors
    And displays AdMob ad in the middle of the screen
    And if you put filter tag:blah for LogCat and see:
    10-24 12:59:01.969: D/blah(7118): initialize
    10-24 12:59:06.549: D/blah(7118): modifyString method called
    10-24 12:59:06.549: D/blah(7118): <!>com.giderosmobile.android.AdMob 67<!> blah blahsomestring
    10-24 12:59:06.549: D/blah(7118): <!>com.giderosmobile.android.AdMob 81<!> blah blah - 1
    10-24 12:59:06.549: D/blah(7118): <!>com.giderosmobile.android.AdMob$1 74<!> blah blah - 2
    10-24 12:59:06.559: D/blah(7118): <!>com.giderosmobile.android.AdMob 92<!> blah blah - 3
    Then we might have a light in the end of the tunnel ;)

    P.S. To be completely sure, try restarting the app couple of times, to see if it works all the time :)

  • @ar2rsawseen i exported your project to eclipse. (My working one which i am using for my own projects, sdk everything working normally)

    Have any idea?

    But when i try to run it is giving this error in your project :
    Errors occurred during the build.
    Errors running builder 'Integrated External Tool Builder' on project 'com.giderosmobile.android.AdMobActivity'.
    The file does not exist for the external tool named AdmobBuilder.
    The file does not exist for the external tool named AdmobBuilder.
  • talistalis Guru
    edited October 2012
    @ar2rsawseen Ok i got it worked in the project properties under Builders tab i disabled Admobbuilder. I think it is something you are using because i dont have that one in my other projects:D

    Ok here is my test result.(HTC DEsire Hd android 2.2)

    Ad in the middle------Working like a charm after 10 times no error.:D
    Log cat log:
    10-25 00:08:54.038: D/blah(3523): modifyString method called
    10-25 00:08:54.038: D/blah(3523): blah blahsomestring
    10-25 00:08:54.038: D/blah(3523): blah blah - 1
    10-25 00:08:54.038: D/blah(3523): blah blah - 2
    10-25 00:08:54.048: D/blah(3523): blah blah - 3

Sign In or Register to comment.