Home > Blog > Adding Mobile Advertising Platform into Your Ionic Mobile App

adding-mobile-advertising-platform-into-your-ionic-mobile-app

11 Jan 2018

Adding Mobile Advertising Platform into Your Ionic Mobile App

Posted By : Admin Blog, M-Commerce,

Scenario: When your mobile app becomes a global or a domestic hit, you can monetize users quickly with AdMob, by showing ads to users in more than 200 markets.

Detailed Description: AdMob by Google helps you monetize your mobile application through in-app advertising. Ads can be displayed as banner ads, interstitial ads, video ads, or native ads—which are seamlessly added to platform native UI components. On Android, you can additionally display in-app purchase ads, which allow users to purchase advertised products from within your app. This Cordova plugin enables displaying mobile Ads with a single line of javascript code. Designed for the use of HTML5-based cross-platform hybrid games and other applications.

Solution

Step -1: Install Cordova Plugin for Google AdMob.

cordova plugin add cordova-plugin-admobpro

Step -2: Create account in AdMob and get APPID using the below URL

https://support.google.com/admob/answer/7356219?hl=en

Step -3: Now the rules will be applied in the form validation related to this model in both client side and server side.

1. AdMob.createBanner({ 1. adId:'ca-app-pub-xxxxxxxxxxxxxxx/xxxxxxxxxx', 1. position:AdMob.AD_POSITION.BOTTOM_CENTER, 1. autoShow:true, 1. isTesting: true, 1. });

Share this Article on

Tags: admob, ionic, mobile advertising platform, mobile app development,

© 2007 - Synamen Thinklabs Pvt Ltd. All rights reserved Privacy Policy