2019-ebook-3d-onblue4
Everything you need to know about building mobile apps

Learn what a mobile app can do for your business, how to build a great mobile app, and much more. Enter your email below for our free ebook.

Monetize Your App with AdMob

Note: The content in this post is related to AppPresser 2. AppPresser 3 does not use the AppAds plugin, instead it has admob built in. For more information, please check out our documentation

Now you can make money from your AppPresser apps by showing ads from Google’s AdMob ad network.

Our new AppAds extension allows you to easily show banner or popup ads in your apps. You can choose where your ads are displayed, and earn money when your ads are clicked.

appads-banner

AppAds allows you to show a persistent banner ad on the top or bottom of your app.

appads-interstitial

You can also show a popup ad (called an interstitial).

Interstitials take up the full screen, and can be dismissed by the user. To make interstitials work, you need to ad some custom code that tells the app when to display the ad. For example, you could show the ad when a certain page is loaded, or when a button is clicked.

After you add your AdMob ad codes to AppAds, Interstitials are shown with this piece of Javascript:

<script>
parent.postMessage('show_admob_interstitial', '*');
</script>

You can add that to a page load event, a click event, or anything else. For example, let’s show the ad when a button is clicked. (You can add this code to a child theme or plugin javascript file)

jQuery(document).ready(function($) {

$('.show-admob').on('click', function(event) {
	parent.postMessage('show_admob_interstitial', '*');
});

});

That shows the ad when we click a button with a class of ‘show-admob’. Now we just need to add that button to one of our WordPress pages:

<a href="#" class="show-admob">Show Interstitial Ad</a>

There are more code examples in our documentation. Please note you must rebuild your app with ads enabled, consult our documentation for more.

Start making money in your apps today using Google’s free AdMob ad network and our AppAds extension!

View pricing and purchase options for AppAds here.

1 Comment

  1. Where can I sell my app on June 12, 2017 at 4:09 am

    One of the best way to monetize an app is to just sell it off. There are a bunch of websites that do this, but the most reliable and offers the most money is http://wepurchaseapps.com
    I’ve got an offer for over 2 years of ad revenue. Hope this helps. Good luck!

Leave a Comment





Scott Bolinger