- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am following steps as on https://udinra.com/blog/admob-ads-intel-xdk-mobile-app
I have done up to step 6.
I am unsure where the code in this step should be posted. Does it go on the intex.html page?
I'm totally new to this stuff, any help greatly appreciated,
Thanks,
Sara.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bump.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bump.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes! It will go inside index.html file. And for future you can always refer to existing samples.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can either place it within script tags in index.html or specify it in .js files and reference them in index.html. Eg:
<script type='text/javascript' src="js/admob.js"></script>
There is a sample illustrating Admob use that ships with the XDK.
Start new project -> Samples and Demos -> General -> HTML5+Cordova -> Hello Admob.
You can refer to that code for better understanding.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the reply. and where it says 'your code here' on https://udinra.com/blog/admob-ads-intel-xdk-mobile-app step 6,
what code is that referring to?
E.g, say if I insert a grid , would the code corresponding to this go here or elsewhere?
Many thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It depends when you wish to trigger particular event before or after or at the time of initialization. It is totally your choice. To experiment you can include piece of code at different places to watch the emulation behavior.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Typically the onDeviceReady() event is fired when Cordova is fully loaded. It signals that Cordova's device APIs have loaded and are ready to access and now you can safely make call to Cordova APIs.
You can ready more about it here: https://cordova.apache.org/docs/en/4.0.0/cordova_events_events.md.html
![](/skins/images/7B0AB6865064EAE32B30EC9A4E94B48A/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page