admob external workaround not working???

I know this is not an officially supported corona feature, but others have gotten it working and for some reason using the exact same code it won’t work for me. I have an admob account, created an iphone web based ad, but when i view the ad through a browser (safari with developer extensions enabled) or through webpopup on ipad/iphone it comes up as blank white, no javascript errors or anything, just blank page. Anyone else get this working or run into this problem and found a fix? thanks!

my ad code is hosted at

ws.unicornlabs.com/ad3.html
[import]uid: 6317 topic_id: 1366 reply_id: 301366[/import]

mine was working. Didn’t test it for a while now. [import]uid: 5712 topic_id: 1366 reply_id: 3775[/import]

Btw. I did not store the html file on the web. It is the project folder. [import]uid: 5712 topic_id: 1366 reply_id: 3776[/import]

It works for me… but the activity indicator shows in a total weird place (using Beta5)… [import]uid: 6928 topic_id: 1366 reply_id: 3778[/import]

Do you have the ad HTML file hosted locally in the folder with the app? or is it on an external web server? do you think you could copy/paste the contents of your file? Thanks! [import]uid: 6317 topic_id: 1366 reply_id: 3786[/import]

I have it local and its contents is

br\> "http://www.w3.org/TR/html4/loose.dtd"\>  
  
  
  
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>ad</title>
  
<meta name="author" content="Your Name">
  
<!-- 2010-06-12 viewport meta tag required to make this work with beta 5 of Corona SDK<br> Thanks to Matt Pringle for bringing this to my attention -->  
<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
  
<!-- Date: 2010-06-02 -->  
  
  
<script type="text/javascript"><br>	var admob_vars = {<br> pubid: 'XXXXX', // publisher id<br> bgcolor: '000000', // background color (hex)<br> text: 'FFFFFF', // font-color (hex)<br> ama: false, // set to true and retain comma for the AdMob Adaptive Ad Unit, a special ad type designed for PC sites accessed from the iPhone. More info: http://developer.admob.com/wiki/IPhone#Web_Integration<br> test: true // test mode, set to false to receive live ads<br>	};<br>	</script>  
<script type="text/javascript" src="http://mmv.admob.com/static/iphone/iadmob.js"></script>  
  
[/html]  

I got that from somebody who posted how it works here… [import]uid: 6928 topic_id: 1366 reply_id: 3791[/import]

thanks! something about that code works while mine didnt. could be the language=“en”? who knows. Now if only corona could get iAd support going! [import]uid: 6317 topic_id: 1366 reply_id: 3793[/import]

Hello Friends;
While doing this AdMob workaround, I noticed that half of my game screen is obscured while the html is loading. Is there another “workaround” for this? Thanks! [import]uid: 3686 topic_id: 1366 reply_id: 4951[/import]

Fixed in official release of Corona… THANKS! :slight_smile: [import]uid: 3686 topic_id: 1366 reply_id: 6172[/import]

I’m still evaluating the Corona sdk (currently in demo mode), and testing the admob workaround I’ve some problems.
I used the code above (I guess from http://www.ludicroussoftware.com/corona/admob-ad-support-in-corona/) and I’ve found that the ads “sometimes” show up, but just sometimes… let’s say 30% of the time… the 70% of the time, after loading, the web area shows just a gray page, with no ads.

I’ve also download Knight’s Puzzle Free from the Appstore, that should be using the workaroud… and also in that case, the ads sometimes work… but most of the time they don’t show up.

Anyone has this problems? And solutions?
I really love Corona SDK (I’m a flash developer, I’ve tested the Flash iPhone packager but it’s too damn slow… LUA is pretty easy to learn and the performance of Corona are great), and I’m definitely considering purchasing a license… however I need to have a reliable admob on my app…

Also, I’d like to hear from the anscamobile developers… are you still working on admob integration on Corona SDK? (I’d much prefer admob than iAd honestly)…
Thanks a lot for your answer :wink:
[import]uid: 9158 topic_id: 1366 reply_id: 6764[/import]

The gray page generally means it had a problem loading the ads which could mean an internet connection issue. This problem is different from what others are reporting (and hopefully fixed).

-Tom [import]uid: 7559 topic_id: 1366 reply_id: 7032[/import]

What I see with this method is that on my Android HTC Dream (G1) the ad takes much longer to load( means a grey area for a while) and on the Ipod Touch it is almost instantly there.
Is there a way where we can check if the loading process is done of the underlying HTML code? [import]uid: 5712 topic_id: 1366 reply_id: 7076[/import]

I solved that problem in my Corona game Conga Replay
by adding a game title banner in the html’s body tag background image attribute, so there’s no ugly gray area if no ad is pushed. [import]uid: 3686 topic_id: 1366 reply_id: 7107[/import]

Was it just

Good solution.
Thanks
[import]uid: 2735 topic_id: 1366 reply_id: 7556[/import]

Can anyone else verify that webpopups for the admob hack are no longer working in the new version of Game Edition? I can’t get my ads to display - though they DO display on the Android side.
[import]uid: 9046 topic_id: 1366 reply_id: 11134[/import]

I am using Corona Trial to test the AdMob, it works in test mode, but nothing shown if it receive live ads.

In ad.html

var admob\_vars = {  
 test: false // test mode, set to false to receive live ads  
 };  

anyone encounter the same problem ? [import]uid: 12088 topic_id: 1366 reply_id: 15489[/import]

It is working for me, though sometimes intermittently. [import]uid: 1560 topic_id: 1366 reply_id: 15497[/import]

Native add support should be a high priority. The workaround is a bit sketchy in terms of execution and violating the TOS of AdMob. Ad’s in free versions of a game or app can provide a decent stream of revenue to offset costs of the app development. [import]uid: 13727 topic_id: 1366 reply_id: 26766[/import]

I 110% agree -
[import]uid: 9046 topic_id: 1366 reply_id: 26768[/import]