Cordova application display banner ads in the relative position

The preparation for coding

Before reading this tutorial, please read the getting started with cordova tutorial to learn how to download management library, how to install AD management library

Add advertising related Js code

1. Initialization Keymob
Initialization Keymob library management is the prerequisite to call other advertising functions, the following initialization method is to use the service
keymob.initFromKeymobService("1", true);
2.Display advertising
Show banner ads in the relative position location at the center bottom of the app

Processing for each platform

After add the code, in accordance with the previous tutorial, processing for android and ios

More tutorial of add ad in app   qq group 310513042   home