Re: How to put admob into my game in AppMobi Impact XDK and directcanvas?

137 views
Skip to first unread message

Eric Leichtenschlag

unread,
Jan 24, 2013, 10:47:33 PM1/24/13
to google-adm...@googlegroups.com
AdMob smartphone web is no longer supported (per the note at the top of that tutorial). If your game is on a mobile website, you'll have to use AdSense. If it compiles to a native app, you need to use the native AdMob SDK.

Thanks,
Eric


On Mon, Jan 21, 2013 at 9:09 PM, Tek Min Ewe <aries.xi...@gmail.com> wrote:
Hi all,

I have tried to put admob in my game developed with AppMobi Impact XDK and directCanvas.

I have follow the tutorial in http://support.google.com/admob/bin/answer.py?hl=en&answer=1704625&ctx=cb&src=cb&cbid=-kd5eir1zy3v1

but admob is not shown and admob is not receiving any ads request.

following is my code fragment:

<script type="text/javascript">
var admob_vars = {
pubid: 'a150fd5fd022cbd', // publisher id
test: true, // test mode, set to false if non-test mode
manual_mode: true
};
</script>
<script type="text/javascript" src="http://mmv.admob.com/static/iphone/iadmob.js"></script>
<script type="text/javascript">
...//// other code
_admob.fetchAd = function( el ) {
return {
adEl: adFrame   
};
};
_admob.fetchAd( document.getElementById( 'admob_ad' ) );
</script>

can anyone show me the tutorial about this?

thank you very much

--
 
 
  

Rjfun Mobile

unread,
Aug 27, 2014, 11:34:08 PM8/27/14
to google-adm...@googlegroups.com
you need use some cordova/phonegap/xdk plugins.

here is the article from Intel XDK, hope it helps.

and here is the github home of the plugin:

it's based on the admob sdk or google-play-services.

BTW, admob is the best ad service, fast, stable, and plenty of ad resource.
Reply all
Reply to author
Forward
0 new messages