This screencast will teach you how to add admob to jQuery mobile with multi page support. Before jQuery mobile ajax feature caused an issue preventing this from working. Now have all of your pages support ads!
Thanks to @pclaar for the jQuery fix code.
Related posts:











I get the error “_admob is not defined” in firebug when I use this code. Using phonegap with jquerymob on android, testing on a PC with firefox. I think it occurs if admob does return an advert when I link to a page using an ajax request. Anyone else had this issue?
I suspect your not including the javascript file. Can you check that?
This demo is not working the you wrote at the end is not closed. It is written an extra instead of
Although I have changed this, I am getting the same “_admob is not defined” error. I have included the js file. what could be the problem?
The site is located in http://home.ku.edu.tr/~sdane/deneme/oss
Your code is not working: I copied and tried your files, and just like in my own site, the Javascript runs, but does not produce a visible ad.
I assume jQueryMobile or AdMob changed something in their inner workings. But I’d really like to know a solution.
Google made some changes on allowing admob into web apps. You might want to check out those new policies. I’ll take a look this week and create another tut for you.
I am really interested too, are you still going to doing it ?
mee too!
I’ll see what I can do.
Thanks a lot can’t wait!
Source code has been updated you can click on the download link.
you are my hero
Ha, thanks
I’m sorry, but how to download the source code?
Click on the “Download Source” at the top of the post.
many, many thanks! (did I say Many thanks?)
Anytime
I see. Thanks james.. I didn’t see it because it is invisible, only after I highlighted that area, the download link will appear.
Interesting, Maybe a bug on my end. What browser are you running?
IE9, Just now I test with firefox 7, it can display the download link.
does anyone have a jquery mobile website with it working so i can see how it looks. Still cant get it to work.
thanks
Checkout the new source i has a fix since google changed admob. Example is working in source
This will work in mobile web pages not just apps?
Sure will! Its web based so the term web app is used.
Thanks for the link..
Is it just me or is this not working?
Maybe Google considers this as a TOS violation?
I have tried your code and nothing gives.
Is there maybe another bug fix?
Well google keeps changing the way it works. Have you downloaded the git source? Last I checked that was correct, perhaps I’ll have to find another work around for the 3rd time.
The source is updated.