{"id":1464,"date":"2024-04-06T11:01:04","date_gmt":"2024-04-06T05:31:04","guid":{"rendered":"http:\/\/codetheory.in\/?p=1464---3af4a8f4-82c2-491b-9ce0-66ef09690bcd"},"modified":"2024-04-06T11:01:04","modified_gmt":"2024-04-06T05:31:04","slug":"admob-native-android-sdk-integration-with-phonegap-cordova-without-plugins","status":"publish","type":"post","link":"https:\/\/codetheory.in\/admob-native-android-sdk-integration-with-phonegap-cordova-without-plugins\/","title":{"rendered":"Admob Native Android SDK Integration with Phonegap\/Cordova without Plugins"},"content":{"rendered":"

Just like we’ve Google’s AdSense<\/a> program for all web publishers to generate revenue off their content, for mobile app developers there’s Google’s AdMob<\/a> ads platform to monetize and promote their web app. PhoneGap is a great tool to convert JavaScript rich web apps to native mobile app. But when it comes to monetizing via ads, just putting Adsense code is not the solution as its meant for web usage only and is against Google’s terms and conditions. We’ll go through a simple process that I came across to integrate the native admob android sdk to our cordova apps and games without using any phonegap plugins.<\/p>\n

<\/p>\n

Let’s just follow these few steps.<\/p>\n

Install the Native Android SDK<\/h2>\n

Download the Android Admob SDK<\/a>, extract it and copy GoogleAdMobAdsSdk-*.*.*.jar<\/code> to the PhoneGap project’s libs<\/code> directory.<\/p>\n

\"Admob<\/p>\n

Now refresh your project directory in Eclipse and add the newly downloaded SDK’s jar file to the project’s build path. You can do this by following these simple steps:<\/p>\n