Skip to content

admob/admob_js.php not working in emulator #1

@i-vision

Description

@i-vision

Hello,
Your code is working in Ripple emulator fine, but on device or emulator not show any ads.

Permission is set to:

I dont know, what can be wrong:

Here is the sampe of usage..

<div data-role="content"  style="height:100%;" >
 <div id="admob_ad" style="text-align:center;margin:0 auto;height: 55px;width:100px;" class="admob" ></div>
<script type="text/javascript"> var admob_vars = { pubid: 'myid', // publisher id bgcolor: '000000', // background color (hex) text: 'FFFFFF', manual_mode: true, // font-color (hex) test: false // test mode, set to false to receive live ads }; </script> <script type="text/javascript" src="http://mmv.admob.com/static/iphone/iadmob.js"></script> <script type="text/javascript"> var fnFoo = function(){ var ad = $('#admob_ad',this)[0]; if (typeof ad != 'undefined') { ad.innerHTML = ''; //request an add we can do this because <script> is called iadmob.js _admob.fetchAd(ad); ``` } $('div[data-role=page]').die('pageshow', fnFoo); }; $('div[data-role=page]').live('pageshow', fnFoo); </script>
...etc

Regards

Jiri

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions