Does anyone have admob for Android successfully running?

You must Login before you can answer or comment on any questions.

I have tried every hack in the forums(set tool api level to 14, mod the timodule.xml ) and am still unable to get admob working. Depending on the recommended fix from the forums i get these errors:

String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize').
-or-
Uncaught Error: Requested module not found: ti.admob
I am willing to pay someone to help me get this running for my app... I am trying to use Admob 2.0.1 on 2.1.0 GA.

— asked 11 months ago by Andrew Royce
5 Comments
  • I've got admob working on android. I didn't have to hack the timodule.xml file. I'm pretty sure that the first error you're showing is probably related to corruption in that file. The other suggests that Studio can't see the module to include it in the build, so when your code tries to require the module, it's not there.

    Open tiapp.xml in Studio, and look at the Overview tab. There's a box that shows all the modules you've included in your project. What do you see there? Do you see ti.admob? Is there a version number in the Android column?

    — commented 11 months ago by Jason Priebe

  • Thanks for the reply, yes I do see a ti.admob in the module box but no version number in the android column. When I click on the pencil icon 2.0.1 is selected. my tiapp looks like this:

    <module platform="Android" version="2.0.1">ti.admob</module>
    I even tried creating a blank project with just a window and ad and still no luck. Would it be too much to ask if you could try that and see if you can successfully build a simple project with admob showing ads? If its successful then I could get the zip from you and try to build it on my machine. I feel like it may be an issue with my SDK possibly but not sure. Or if not that I can send you my clean built project that should work and you can see if it works when you build it. Thanks for the help!

    — commented 11 months ago by Andrew Royce

  • I don't have time to write you a sample app at this time, sorry.

    If you're not seeing a version number under Android in the module box, I don't think your code is going to work. I have found that the best thing to do is to let the Studio GUI find the module and install it for you. Just putting it into tiapp.xml isn't going to make it work.

    With that said, the way I've found that works best for me is to unzip the module file in my project directory (modules subdir is at the same level as Resources). You should then be able to add the module to the project via the GUI.

    — commented 11 months ago by Jason Priebe

  • Show 2 more comments

1 Answer

Did you get this fixed?? It looks like you are editing the timodule.xml (incorrect)and not the tiapp.xml(correct), as you should be.

Your Answer

Think you can help? Login to answer this question!